~cosmos-door/ubuntu/oneiric/nautilus-share/fix-840292

1 by Sebastien Bacher
Import upstream version 0.7.1
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
3
# Generated by GNU Autoconf 2.61 for nautilus-share 0.7.2.
1 by Sebastien Bacher
Import upstream version 0.7.1
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
1 by Sebastien Bacher
Import upstream version 0.7.1
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
1 by Sebastien Bacher
Import upstream version 0.7.1
27
fi
1.1.1 by Michael Vogt
Import upstream version 0.7.2
28
29
1 by Sebastien Bacher
Import upstream version 0.7.1
30
31
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
  echo "#! /bin/sh" >conf$$.sh
43
  echo  "exit 0"   >>conf$$.sh
44
  chmod +x conf$$.sh
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46
    PATH_SEPARATOR=';'
47
  else
48
    PATH_SEPARATOR=:
49
  fi
50
  rm -f conf$$.sh
51
fi
52
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55
  as_unset=unset
56
else
57
  as_unset=false
58
fi
59
60
61
# IFS
62
# We need space, tab and new line, in precisely that order.  Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
66
as_nl='
67
'
68
IFS=" ""	$as_nl"
69
70
# Find who we are.  Look in the path if we contain no directory separator.
71
case $0 in
72
  *[\\/]* ) as_myself=$0 ;;
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74
for as_dir in $PATH
75
do
76
  IFS=$as_save_IFS
77
  test -z "$as_dir" && as_dir=.
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79
done
80
IFS=$as_save_IFS
81
82
     ;;
83
esac
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
87
  as_myself=$0
88
fi
89
if test ! -f "$as_myself"; then
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91
  { (exit 1); exit 1; }
92
fi
93
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97
done
98
PS1='$ '
99
PS2='> '
100
PS4='+ '
101
102
# NLS nuisances.
103
for as_var in \
104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106
  LC_TELEPHONE LC_TIME
107
do
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
    eval $as_var=C; export $as_var
110
  else
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112
  fi
113
done
114
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118
  as_expr=expr
119
else
120
  as_expr=false
121
fi
122
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124
  as_basename=basename
125
else
126
  as_basename=false
127
fi
128
129
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
	 X"$0" : 'X\(//\)$' \| \
134
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135
echo X/"$0" |
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
137
	    s//\1/
138
	    q
139
	  }
140
	  /^X\/\(\/\/\)$/{
141
	    s//\1/
142
	    q
143
	  }
144
	  /^X\/\(\/\).*/{
145
	    s//\1/
146
	    q
147
	  }
148
	  s/.*/./; q'`
149
150
# CDPATH.
151
$as_unset CDPATH
152
153
154
if test "x$CONFIG_SHELL" = x; then
155
  if (eval ":") 2>/dev/null; then
156
  as_have_required=yes
157
else
158
  as_have_required=no
159
fi
160
161
  if test $as_have_required = yes && 	 (eval ":
162
(as_func_return () {
163
  (exit \$1)
164
}
165
as_func_success () {
166
  as_func_return 0
167
}
168
as_func_failure () {
169
  as_func_return 1
170
}
171
as_func_ret_success () {
172
  return 0
173
}
174
as_func_ret_failure () {
175
  return 1
176
}
177
178
exitcode=0
179
if as_func_success; then
180
  :
181
else
182
  exitcode=1
183
  echo as_func_success failed.
184
fi
185
186
if as_func_failure; then
187
  exitcode=1
188
  echo as_func_failure succeeded.
189
fi
190
191
if as_func_ret_success; then
192
  :
193
else
194
  exitcode=1
195
  echo as_func_ret_success failed.
196
fi
197
198
if as_func_ret_failure; then
199
  exitcode=1
200
  echo as_func_ret_failure succeeded.
201
fi
202
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204
  :
205
else
206
  exitcode=1
207
  echo positional parameters were not saved.
208
fi
209
210
test \$exitcode = 0) || { (exit 1); exit 1; }
211
212
(
213
  as_lineno_1=\$LINENO
214
  as_lineno_2=\$LINENO
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
218
  :
219
else
220
  as_candidate_shells=
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1.1 by Michael Vogt
Import upstream version 0.7.2
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1 by Sebastien Bacher
Import upstream version 0.7.1
223
do
224
  IFS=$as_save_IFS
225
  test -z "$as_dir" && as_dir=.
226
  case $as_dir in
227
	 /*)
228
	   for as_base in sh bash ksh sh5; do
229
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230
	   done;;
231
       esac
232
done
233
IFS=$as_save_IFS
234
235
236
      for as_shell in $as_candidate_shells $SHELL; do
237
	 # Try only shells that exist, to save several forks.
238
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241
  emulate sh
242
  NULLCMD=:
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
  # is contrary to our usage.  Disable this feature.
245
  alias -g '${1+"$@"}'='"$@"'
246
  setopt NO_GLOB_SUBST
247
else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
248
  case `(set -o) 2>/dev/null` in
249
  *posix*) set -o posix ;;
250
esac
251
1 by Sebastien Bacher
Import upstream version 0.7.1
252
fi
1.1.1 by Michael Vogt
Import upstream version 0.7.2
253
1 by Sebastien Bacher
Import upstream version 0.7.1
254
255
:
256
_ASEOF
257
}; then
258
  CONFIG_SHELL=$as_shell
259
	       as_have_required=yes
260
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
  emulate sh
263
  NULLCMD=:
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
  # is contrary to our usage.  Disable this feature.
266
  alias -g '${1+"$@"}'='"$@"'
267
  setopt NO_GLOB_SUBST
268
else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
269
  case `(set -o) 2>/dev/null` in
270
  *posix*) set -o posix ;;
271
esac
272
1 by Sebastien Bacher
Import upstream version 0.7.1
273
fi
1.1.1 by Michael Vogt
Import upstream version 0.7.2
274
1 by Sebastien Bacher
Import upstream version 0.7.1
275
276
:
277
(as_func_return () {
278
  (exit $1)
279
}
280
as_func_success () {
281
  as_func_return 0
282
}
283
as_func_failure () {
284
  as_func_return 1
285
}
286
as_func_ret_success () {
287
  return 0
288
}
289
as_func_ret_failure () {
290
  return 1
291
}
292
293
exitcode=0
294
if as_func_success; then
295
  :
296
else
297
  exitcode=1
298
  echo as_func_success failed.
299
fi
300
301
if as_func_failure; then
302
  exitcode=1
303
  echo as_func_failure succeeded.
304
fi
305
306
if as_func_ret_success; then
307
  :
308
else
309
  exitcode=1
310
  echo as_func_ret_success failed.
311
fi
312
313
if as_func_ret_failure; then
314
  exitcode=1
315
  echo as_func_ret_failure succeeded.
316
fi
317
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
319
  :
320
else
321
  exitcode=1
322
  echo positional parameters were not saved.
323
fi
324
325
test $exitcode = 0) || { (exit 1); exit 1; }
326
327
(
328
  as_lineno_1=$LINENO
329
  as_lineno_2=$LINENO
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333
_ASEOF
334
}; then
335
  break
336
fi
337
338
fi
339
340
      done
341
342
      if test "x$CONFIG_SHELL" != x; then
343
  for as_var in BASH_ENV ENV
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345
        done
346
        export CONFIG_SHELL
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348
fi
349
350
351
    if test $as_have_required = no; then
352
  echo This script requires a shell more modern than all the
353
      echo shells that I found on your system.  Please install a
354
      echo modern shell, or manually run the script under such a
355
      echo shell if you do have one.
356
      { (exit 1); exit 1; }
357
fi
358
359
360
fi
361
362
fi
363
364
365
366
(eval "as_func_return () {
367
  (exit \$1)
368
}
369
as_func_success () {
370
  as_func_return 0
371
}
372
as_func_failure () {
373
  as_func_return 1
374
}
375
as_func_ret_success () {
376
  return 0
377
}
378
as_func_ret_failure () {
379
  return 1
380
}
381
382
exitcode=0
383
if as_func_success; then
384
  :
385
else
386
  exitcode=1
387
  echo as_func_success failed.
388
fi
389
390
if as_func_failure; then
391
  exitcode=1
392
  echo as_func_failure succeeded.
393
fi
394
395
if as_func_ret_success; then
396
  :
397
else
398
  exitcode=1
399
  echo as_func_ret_success failed.
400
fi
401
402
if as_func_ret_failure; then
403
  exitcode=1
404
  echo as_func_ret_failure succeeded.
405
fi
406
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408
  :
409
else
410
  exitcode=1
411
  echo positional parameters were not saved.
412
fi
413
414
test \$exitcode = 0") || {
415
  echo No shell found that supports shell functions.
416
  echo Please tell autoconf@gnu.org about your system,
417
  echo including any error possibly output before this
418
  echo message
419
}
420
421
422
423
  as_lineno_1=$LINENO
424
  as_lineno_2=$LINENO
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
430
  # line-number line after each line using $LINENO; the second 'sed'
431
  # does the real work.  The second script uses 'N' to pair each
432
  # line-number line with the line containing $LINENO, and appends
433
  # trailing '-' during substitution so that $LINENO is not a special
434
  # case at line end.
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
438
  sed -n '
439
    p
440
    /[$]LINENO/=
441
  ' <$as_myself |
442
    sed '
443
      s/[$]LINENO.*/&-/
444
      t lineno
445
      b
446
      :lineno
447
      N
448
      :loop
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450
      t loop
451
      s/-\n.*//
452
    ' >$as_me.lineno &&
453
  chmod +x "$as_me.lineno" ||
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
   { (exit 1); exit 1; }; }
456
457
  # Don't try to exec as it changes $[0], causing all sort of problems
458
  # (the dirname of $[0] is not the place where we might find the
459
  # original and so on.  Autoconf is especially sensitive to this).
460
  . "./$as_me.lineno"
461
  # Exit status is that of the last command.
462
  exit
463
}
464
465
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467
  as_dirname=dirname
468
else
469
  as_dirname=false
470
fi
471
472
ECHO_C= ECHO_N= ECHO_T=
473
case `echo -n x` in
474
-n*)
475
  case `echo 'x\c'` in
476
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477
  *)   ECHO_C='\c';;
478
  esac;;
479
*)
480
  ECHO_N='-n';;
481
esac
482
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485
  as_expr=expr
486
else
487
  as_expr=false
488
fi
489
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
  rm -f conf$$.dir/conf$$.file
493
else
494
  rm -f conf$$.dir
495
  mkdir conf$$.dir
496
fi
497
echo >conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
499
  as_ln_s='ln -s'
500
  # ... but there are two gotchas:
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
  # In both cases, we have to default to `cp -p'.
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505
    as_ln_s='cp -p'
506
elif ln conf$$.file conf$$ 2>/dev/null; then
507
  as_ln_s=ln
508
else
509
  as_ln_s='cp -p'
510
fi
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
513
514
if mkdir -p . 2>/dev/null; then
515
  as_mkdir_p=:
516
else
517
  test -d ./-p && rmdir ./-p
518
  as_mkdir_p=false
519
fi
520
1.1.1 by Michael Vogt
Import upstream version 0.7.2
521
if test -x / >/dev/null 2>&1; then
522
  as_test_x='test -x'
1 by Sebastien Bacher
Import upstream version 0.7.1
523
else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
524
  if ls -dL / >/dev/null 2>&1; then
525
    as_ls_L_option=L
526
  else
527
    as_ls_L_option=
528
  fi
529
  as_test_x='
530
    eval sh -c '\''
531
      if test -d "$1"; then
532
        test -d "$1/.";
533
      else
534
	case $1 in
535
        -*)set "./$1";;
536
	esac;
537
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
	???[sx]*):;;*)false;;esac;fi
539
    '\'' sh
540
  '
1 by Sebastien Bacher
Import upstream version 0.7.1
541
fi
1.1.1 by Michael Vogt
Import upstream version 0.7.2
542
as_executable_p=$as_test_x
1 by Sebastien Bacher
Import upstream version 0.7.1
543
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
555
556
case X$ECHO in
557
X*--fallback-echo)
558
  # Remove one level of quotation (which was required for Make).
559
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560
  ;;
561
esac
562
563
echo=${ECHO-echo}
564
if test "X$1" = X--no-reexec; then
565
  # Discard the --no-reexec flag, and continue.
566
  shift
567
elif test "X$1" = X--fallback-echo; then
568
  # Avoid inline document here, it may be left over
569
  :
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
  # Yippee, $echo works!
572
  :
573
else
574
  # Restart under the correct shell.
575
  exec $SHELL "$0" --no-reexec ${1+"$@"}
576
fi
577
578
if test "X$1" = X--fallback-echo; then
579
  # used as fallback echo
580
  shift
581
  cat <<EOF
582
$*
583
EOF
584
  exit 0
585
fi
586
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
588
# if CDPATH is set.
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
       echo_test_string=`eval $cmd` &&
598
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599
    then
600
      break
601
    fi
602
  done
603
fi
604
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
   test "X$echo_testing_string" = "X$echo_test_string"; then
608
  :
609
else
610
  # The Solaris, AIX, and Digital Unix default echo programs unquote
611
  # backslashes.  This makes it impossible to quote backslashes using
612
  #   echo "$something" | sed 's/\\/\\\\/g'
613
  #
614
  # So, first we look for a working echo in the user's PATH.
615
616
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
  for dir in $PATH /usr/ucb; do
618
    IFS="$lt_save_ifs"
619
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
       test "X$echo_testing_string" = "X$echo_test_string"; then
623
      echo="$dir/echo"
624
      break
625
    fi
626
  done
627
  IFS="$lt_save_ifs"
628
629
  if test "X$echo" = Xecho; then
630
    # We didn't find a better echo, so look for alternatives.
631
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
       test "X$echo_testing_string" = "X$echo_test_string"; then
634
      # This shell has a builtin print -r that does the trick.
635
      echo='print -r'
636
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638
      # If we have ksh, try running configure again with it.
639
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
      export ORIGINAL_CONFIG_SHELL
641
      CONFIG_SHELL=/bin/ksh
642
      export CONFIG_SHELL
643
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644
    else
645
      # Try using printf.
646
      echo='printf %s\n'
647
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
	 test "X$echo_testing_string" = "X$echo_test_string"; then
650
	# Cool, printf works
651
	:
652
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
	   test "X$echo_testing_string" = 'X\t' &&
654
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
	   test "X$echo_testing_string" = "X$echo_test_string"; then
656
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657
	export CONFIG_SHELL
658
	SHELL="$CONFIG_SHELL"
659
	export SHELL
660
	echo="$CONFIG_SHELL $0 --fallback-echo"
661
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
	   test "X$echo_testing_string" = 'X\t' &&
663
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
	   test "X$echo_testing_string" = "X$echo_test_string"; then
665
	echo="$CONFIG_SHELL $0 --fallback-echo"
666
      else
667
	# maybe with a smaller string...
668
	prev=:
669
670
	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672
	  then
673
	    break
674
	  fi
675
	  prev="$cmd"
676
	done
677
678
	if test "$prev" != 'sed 50q "$0"'; then
679
	  echo_test_string=`eval $prev`
680
	  export echo_test_string
681
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682
	else
683
	  # Oops.  We lost completely, so just stick with echo.
684
	  echo=echo
685
	fi
686
      fi
687
    fi
688
  fi
689
fi
690
fi
691
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
694
ECHO=$echo
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697
fi
698
699
700
701
702
tagnames=${tagnames+${tagnames},}CXX
703
704
tagnames=${tagnames+${tagnames},}F77
705
706
exec 7<&0 </dev/null 6>&1
707
708
# Name of the host.
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710
# so uname gets run too.
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713
#
714
# Initializations.
715
#
716
ac_default_prefix=/usr/local
717
ac_clean_files=
718
ac_config_libobj_dir=.
719
LIBOBJS=
720
cross_compiling=no
721
subdirs=
722
MFLAGS=
723
MAKEFLAGS=
724
SHELL=${CONFIG_SHELL-/bin/sh}
725
726
# Identity of this package.
727
PACKAGE_NAME='nautilus-share'
728
PACKAGE_TARNAME='nautilus-share'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
729
PACKAGE_VERSION='0.7.2'
730
PACKAGE_STRING='nautilus-share 0.7.2'
1 by Sebastien Bacher
Import upstream version 0.7.1
731
PACKAGE_BUGREPORT=''
732
733
ac_unique_file="src/nautilus-share.c"
734
# Factoring default headers for most tests.
735
ac_includes_default="\
736
#include <stdio.h>
1.1.1 by Michael Vogt
Import upstream version 0.7.2
737
#ifdef HAVE_SYS_TYPES_H
1 by Sebastien Bacher
Import upstream version 0.7.1
738
# include <sys/types.h>
739
#endif
1.1.1 by Michael Vogt
Import upstream version 0.7.2
740
#ifdef HAVE_SYS_STAT_H
1 by Sebastien Bacher
Import upstream version 0.7.1
741
# include <sys/stat.h>
742
#endif
1.1.1 by Michael Vogt
Import upstream version 0.7.2
743
#ifdef STDC_HEADERS
1 by Sebastien Bacher
Import upstream version 0.7.1
744
# include <stdlib.h>
745
# include <stddef.h>
746
#else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
747
# ifdef HAVE_STDLIB_H
1 by Sebastien Bacher
Import upstream version 0.7.1
748
#  include <stdlib.h>
749
# endif
750
#endif
1.1.1 by Michael Vogt
Import upstream version 0.7.2
751
#ifdef HAVE_STRING_H
752
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1 by Sebastien Bacher
Import upstream version 0.7.1
753
#  include <memory.h>
754
# endif
755
# include <string.h>
756
#endif
1.1.1 by Michael Vogt
Import upstream version 0.7.2
757
#ifdef HAVE_STRINGS_H
1 by Sebastien Bacher
Import upstream version 0.7.1
758
# include <strings.h>
759
#endif
1.1.1 by Michael Vogt
Import upstream version 0.7.2
760
#ifdef HAVE_INTTYPES_H
1 by Sebastien Bacher
Import upstream version 0.7.1
761
# include <inttypes.h>
762
#endif
1.1.1 by Michael Vogt
Import upstream version 0.7.2
763
#ifdef HAVE_STDINT_H
1 by Sebastien Bacher
Import upstream version 0.7.1
764
# include <stdint.h>
765
#endif
1.1.1 by Michael Vogt
Import upstream version 0.7.2
766
#ifdef HAVE_UNISTD_H
1 by Sebastien Bacher
Import upstream version 0.7.1
767
# include <unistd.h>
768
#endif"
769
770
ac_subst_vars='SHELL
771
PATH_SEPARATOR
772
PACKAGE_NAME
773
PACKAGE_TARNAME
774
PACKAGE_VERSION
775
PACKAGE_STRING
776
PACKAGE_BUGREPORT
777
exec_prefix
778
prefix
779
program_transform_name
780
bindir
781
sbindir
782
libexecdir
783
datarootdir
784
datadir
785
sysconfdir
786
sharedstatedir
787
localstatedir
788
includedir
789
oldincludedir
790
docdir
791
infodir
792
htmldir
793
dvidir
794
pdfdir
795
psdir
796
libdir
797
localedir
798
mandir
799
DEFS
800
ECHO_C
801
ECHO_N
802
ECHO_T
803
LIBS
804
build_alias
805
host_alias
806
target_alias
807
INSTALL_PROGRAM
808
INSTALL_SCRIPT
809
INSTALL_DATA
810
CYGPATH_W
811
PACKAGE
812
VERSION
813
ACLOCAL
814
AUTOCONF
815
AUTOMAKE
816
AUTOHEADER
817
MAKEINFO
818
install_sh
819
STRIP
820
INSTALL_STRIP_PROGRAM
821
mkdir_p
822
AWK
823
SET_MAKE
824
am__leading_dot
825
AMTAR
826
am__tar
827
am__untar
828
INTLTOOL_DESKTOP_RULE
829
INTLTOOL_DIRECTORY_RULE
830
INTLTOOL_KEYS_RULE
831
INTLTOOL_PROP_RULE
832
INTLTOOL_OAF_RULE
833
INTLTOOL_PONG_RULE
834
INTLTOOL_SERVER_RULE
835
INTLTOOL_SHEET_RULE
836
INTLTOOL_SOUNDLIST_RULE
837
INTLTOOL_UI_RULE
838
INTLTOOL_XAM_RULE
839
INTLTOOL_KBD_RULE
840
INTLTOOL_XML_RULE
841
INTLTOOL_XML_NOMERGE_RULE
842
INTLTOOL_CAVES_RULE
843
INTLTOOL_SCHEMAS_RULE
844
INTLTOOL_THEME_RULE
845
INTLTOOL_SERVICE_RULE
1.1.1 by Michael Vogt
Import upstream version 0.7.2
846
INTLTOOL_POLICY_RULE
1 by Sebastien Bacher
Import upstream version 0.7.1
847
INTLTOOL_EXTRACT
848
INTLTOOL_MERGE
849
INTLTOOL_UPDATE
850
INTLTOOL_PERL
851
ALL_LINGUAS
852
CC
853
CFLAGS
854
LDFLAGS
855
CPPFLAGS
856
ac_ct_CC
857
EXEEXT
858
OBJEXT
859
DEPDIR
860
am__include
861
am__quote
862
AMDEP_TRUE
863
AMDEP_FALSE
864
AMDEPBACKSLASH
865
CCDEPMODE
866
am__fastdepCC_TRUE
867
am__fastdepCC_FALSE
1.1.1 by Michael Vogt
Import upstream version 0.7.2
868
DATADIRNAME
1 by Sebastien Bacher
Import upstream version 0.7.1
869
build
870
build_cpu
871
build_vendor
872
build_os
873
host
874
host_cpu
875
host_vendor
876
host_os
1.1.1 by Michael Vogt
Import upstream version 0.7.2
877
SED
1 by Sebastien Bacher
Import upstream version 0.7.1
878
GREP
879
EGREP
880
LN_S
881
ECHO
882
AR
883
RANLIB
884
CPP
885
CXX
886
CXXFLAGS
887
ac_ct_CXX
888
CXXDEPMODE
889
am__fastdepCXX_TRUE
890
am__fastdepCXX_FALSE
891
CXXCPP
892
F77
893
FFLAGS
894
ac_ct_F77
895
LIBTOOL
896
HAVE_PKGCONFIG
897
PKG_CONFIG
898
NAUTILUS_CFLAGS
899
NAUTILUS_LIBS
900
GLIB_CFLAGS
901
GLIB_LIBS
902
pixmapsdir
903
interfacesdir
904
GETTEXT_PACKAGE
905
USE_NLS
906
MSGFMT
1.1.1 by Michael Vogt
Import upstream version 0.7.2
907
MSGFMT_OPTS
1 by Sebastien Bacher
Import upstream version 0.7.1
908
GMSGFMT
909
XGETTEXT
910
CATALOGS
911
CATOBJEXT
912
GMOFILES
913
INSTOBJEXT
914
INTLLIBS
915
PO_IN_DATADIR_TRUE
916
PO_IN_DATADIR_FALSE
917
POFILES
918
POSUB
919
MKINSTALLDIRS
920
gnomelocaledir
921
LIBOBJS
922
LTLIBOBJS'
923
ac_subst_files=''
924
      ac_precious_vars='build_alias
925
host_alias
926
target_alias
927
CC
928
CFLAGS
929
LDFLAGS
1.1.1 by Michael Vogt
Import upstream version 0.7.2
930
LIBS
1 by Sebastien Bacher
Import upstream version 0.7.1
931
CPPFLAGS
932
CPP
933
CXX
934
CXXFLAGS
935
CCC
936
CXXCPP
937
F77
938
FFLAGS
939
PKG_CONFIG
940
NAUTILUS_CFLAGS
941
NAUTILUS_LIBS
942
GLIB_CFLAGS
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
943
GLIB_LIBS'
1 by Sebastien Bacher
Import upstream version 0.7.1
944
945
946
# Initialize some variables set by options.
947
ac_init_help=
948
ac_init_version=false
949
# The variables have the same names as the options, with
950
# dashes changed to underlines.
951
cache_file=/dev/null
952
exec_prefix=NONE
953
no_create=
954
no_recursion=
955
prefix=NONE
956
program_prefix=NONE
957
program_suffix=NONE
958
program_transform_name=s,x,x,
959
silent=
960
site=
961
srcdir=
962
verbose=
963
x_includes=NONE
964
x_libraries=NONE
965
966
# Installation directory options.
967
# These are left unexpanded so users can "make install exec_prefix=/foo"
968
# and all the variables that are supposed to be based on exec_prefix
969
# by default will actually change.
970
# Use braces instead of parens because sh, perl, etc. also accept them.
971
# (The list follows the same order as the GNU Coding Standards.)
972
bindir='${exec_prefix}/bin'
973
sbindir='${exec_prefix}/sbin'
974
libexecdir='${exec_prefix}/libexec'
975
datarootdir='${prefix}/share'
976
datadir='${datarootdir}'
977
sysconfdir='${prefix}/etc'
978
sharedstatedir='${prefix}/com'
979
localstatedir='${prefix}/var'
980
includedir='${prefix}/include'
981
oldincludedir='/usr/include'
982
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983
infodir='${datarootdir}/info'
984
htmldir='${docdir}'
985
dvidir='${docdir}'
986
pdfdir='${docdir}'
987
psdir='${docdir}'
988
libdir='${exec_prefix}/lib'
989
localedir='${datarootdir}/locale'
990
mandir='${datarootdir}/man'
991
992
ac_prev=
993
ac_dashdash=
994
for ac_option
995
do
996
  # If the previous option needs an argument, assign it.
997
  if test -n "$ac_prev"; then
998
    eval $ac_prev=\$ac_option
999
    ac_prev=
1000
    continue
1001
  fi
1002
1003
  case $ac_option in
1004
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005
  *)	ac_optarg=yes ;;
1006
  esac
1007
1008
  # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010
  case $ac_dashdash$ac_option in
1011
  --)
1012
    ac_dashdash=yes ;;
1013
1014
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015
    ac_prev=bindir ;;
1016
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017
    bindir=$ac_optarg ;;
1018
1019
  -build | --build | --buil | --bui | --bu)
1020
    ac_prev=build_alias ;;
1021
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022
    build_alias=$ac_optarg ;;
1023
1024
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1025
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026
    ac_prev=cache_file ;;
1027
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029
    cache_file=$ac_optarg ;;
1030
1031
  --config-cache | -C)
1032
    cache_file=config.cache ;;
1033
1034
  -datadir | --datadir | --datadi | --datad)
1035
    ac_prev=datadir ;;
1036
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037
    datadir=$ac_optarg ;;
1038
1039
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040
  | --dataroo | --dataro | --datar)
1041
    ac_prev=datarootdir ;;
1042
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044
    datarootdir=$ac_optarg ;;
1045
1046
  -disable-* | --disable-*)
1047
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048
    # Reject names that are not valid shell variable names.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1049
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1 by Sebastien Bacher
Import upstream version 0.7.1
1050
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1051
   { (exit 1); exit 1; }; }
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1052
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1 by Sebastien Bacher
Import upstream version 0.7.1
1053
    eval enable_$ac_feature=no ;;
1054
1055
  -docdir | --docdir | --docdi | --doc | --do)
1056
    ac_prev=docdir ;;
1057
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058
    docdir=$ac_optarg ;;
1059
1060
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061
    ac_prev=dvidir ;;
1062
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063
    dvidir=$ac_optarg ;;
1064
1065
  -enable-* | --enable-*)
1066
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067
    # Reject names that are not valid shell variable names.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1068
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1 by Sebastien Bacher
Import upstream version 0.7.1
1069
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070
   { (exit 1); exit 1; }; }
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1071
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1 by Sebastien Bacher
Import upstream version 0.7.1
1072
    eval enable_$ac_feature=\$ac_optarg ;;
1073
1074
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076
  | --exec | --exe | --ex)
1077
    ac_prev=exec_prefix ;;
1078
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080
  | --exec=* | --exe=* | --ex=*)
1081
    exec_prefix=$ac_optarg ;;
1082
1083
  -gas | --gas | --ga | --g)
1084
    # Obsolete; use --with-gas.
1085
    with_gas=yes ;;
1086
1087
  -help | --help | --hel | --he | -h)
1088
    ac_init_help=long ;;
1089
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090
    ac_init_help=recursive ;;
1091
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092
    ac_init_help=short ;;
1093
1094
  -host | --host | --hos | --ho)
1095
    ac_prev=host_alias ;;
1096
  -host=* | --host=* | --hos=* | --ho=*)
1097
    host_alias=$ac_optarg ;;
1098
1099
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100
    ac_prev=htmldir ;;
1101
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102
  | --ht=*)
1103
    htmldir=$ac_optarg ;;
1104
1105
  -includedir | --includedir | --includedi | --included | --include \
1106
  | --includ | --inclu | --incl | --inc)
1107
    ac_prev=includedir ;;
1108
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1110
    includedir=$ac_optarg ;;
1111
1112
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1113
    ac_prev=infodir ;;
1114
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115
    infodir=$ac_optarg ;;
1116
1117
  -libdir | --libdir | --libdi | --libd)
1118
    ac_prev=libdir ;;
1119
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120
    libdir=$ac_optarg ;;
1121
1122
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123
  | --libexe | --libex | --libe)
1124
    ac_prev=libexecdir ;;
1125
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126
  | --libexe=* | --libex=* | --libe=*)
1127
    libexecdir=$ac_optarg ;;
1128
1129
  -localedir | --localedir | --localedi | --localed | --locale)
1130
    ac_prev=localedir ;;
1131
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132
    localedir=$ac_optarg ;;
1133
1134
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1135
  | --localstate | --localstat | --localsta | --localst | --locals)
1136
    ac_prev=localstatedir ;;
1137
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1139
    localstatedir=$ac_optarg ;;
1140
1141
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142
    ac_prev=mandir ;;
1143
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144
    mandir=$ac_optarg ;;
1145
1146
  -nfp | --nfp | --nf)
1147
    # Obsolete; use --without-fp.
1148
    with_fp=no ;;
1149
1150
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151
  | --no-cr | --no-c | -n)
1152
    no_create=yes ;;
1153
1154
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156
    no_recursion=yes ;;
1157
1158
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160
  | --oldin | --oldi | --old | --ol | --o)
1161
    ac_prev=oldincludedir ;;
1162
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165
    oldincludedir=$ac_optarg ;;
1166
1167
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168
    ac_prev=prefix ;;
1169
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170
    prefix=$ac_optarg ;;
1171
1172
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173
  | --program-pre | --program-pr | --program-p)
1174
    ac_prev=program_prefix ;;
1175
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177
    program_prefix=$ac_optarg ;;
1178
1179
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180
  | --program-suf | --program-su | --program-s)
1181
    ac_prev=program_suffix ;;
1182
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184
    program_suffix=$ac_optarg ;;
1185
1186
  -program-transform-name | --program-transform-name \
1187
  | --program-transform-nam | --program-transform-na \
1188
  | --program-transform-n | --program-transform- \
1189
  | --program-transform | --program-transfor \
1190
  | --program-transfo | --program-transf \
1191
  | --program-trans | --program-tran \
1192
  | --progr-tra | --program-tr | --program-t)
1193
    ac_prev=program_transform_name ;;
1194
  -program-transform-name=* | --program-transform-name=* \
1195
  | --program-transform-nam=* | --program-transform-na=* \
1196
  | --program-transform-n=* | --program-transform-=* \
1197
  | --program-transform=* | --program-transfor=* \
1198
  | --program-transfo=* | --program-transf=* \
1199
  | --program-trans=* | --program-tran=* \
1200
  | --progr-tra=* | --program-tr=* | --program-t=*)
1201
    program_transform_name=$ac_optarg ;;
1202
1203
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204
    ac_prev=pdfdir ;;
1205
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206
    pdfdir=$ac_optarg ;;
1207
1208
  -psdir | --psdir | --psdi | --psd | --ps)
1209
    ac_prev=psdir ;;
1210
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211
    psdir=$ac_optarg ;;
1212
1213
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214
  | -silent | --silent | --silen | --sile | --sil)
1215
    silent=yes ;;
1216
1217
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218
    ac_prev=sbindir ;;
1219
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220
  | --sbi=* | --sb=*)
1221
    sbindir=$ac_optarg ;;
1222
1223
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225
  | --sharedst | --shareds | --shared | --share | --shar \
1226
  | --sha | --sh)
1227
    ac_prev=sharedstatedir ;;
1228
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231
  | --sha=* | --sh=*)
1232
    sharedstatedir=$ac_optarg ;;
1233
1234
  -site | --site | --sit)
1235
    ac_prev=site ;;
1236
  -site=* | --site=* | --sit=*)
1237
    site=$ac_optarg ;;
1238
1239
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240
    ac_prev=srcdir ;;
1241
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242
    srcdir=$ac_optarg ;;
1243
1244
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245
  | --syscon | --sysco | --sysc | --sys | --sy)
1246
    ac_prev=sysconfdir ;;
1247
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249
    sysconfdir=$ac_optarg ;;
1250
1251
  -target | --target | --targe | --targ | --tar | --ta | --t)
1252
    ac_prev=target_alias ;;
1253
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254
    target_alias=$ac_optarg ;;
1255
1256
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257
    verbose=yes ;;
1258
1259
  -version | --version | --versio | --versi | --vers | -V)
1260
    ac_init_version=: ;;
1261
1262
  -with-* | --with-*)
1263
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264
    # Reject names that are not valid shell variable names.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1265
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1 by Sebastien Bacher
Import upstream version 0.7.1
1266
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1267
   { (exit 1); exit 1; }; }
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1268
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1 by Sebastien Bacher
Import upstream version 0.7.1
1269
    eval with_$ac_package=\$ac_optarg ;;
1270
1271
  -without-* | --without-*)
1272
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273
    # Reject names that are not valid shell variable names.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1274
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1 by Sebastien Bacher
Import upstream version 0.7.1
1275
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1276
   { (exit 1); exit 1; }; }
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1277
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1 by Sebastien Bacher
Import upstream version 0.7.1
1278
    eval with_$ac_package=no ;;
1279
1280
  --x)
1281
    # Obsolete; use --with-x.
1282
    with_x=yes ;;
1283
1284
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285
  | --x-incl | --x-inc | --x-in | --x-i)
1286
    ac_prev=x_includes ;;
1287
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289
    x_includes=$ac_optarg ;;
1290
1291
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293
    ac_prev=x_libraries ;;
1294
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296
    x_libraries=$ac_optarg ;;
1297
1298
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1299
Try \`$0 --help' for more information." >&2
1300
   { (exit 1); exit 1; }; }
1301
    ;;
1302
1303
  *=*)
1304
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305
    # Reject names that are not valid shell variable names.
1306
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1307
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1308
   { (exit 1); exit 1; }; }
1309
    eval $ac_envvar=\$ac_optarg
1310
    export $ac_envvar ;;
1311
1312
  *)
1313
    # FIXME: should be removed in autoconf 3.0.
1314
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1318
    ;;
1319
1320
  esac
1321
done
1322
1323
if test -n "$ac_prev"; then
1324
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325
  { echo "$as_me: error: missing argument to $ac_option" >&2
1326
   { (exit 1); exit 1; }; }
1327
fi
1328
1329
# Be sure to have absolute directory names.
1330
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331
		datadir sysconfdir sharedstatedir localstatedir includedir \
1332
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333
		libdir localedir mandir
1334
do
1335
  eval ac_val=\$$ac_var
1336
  case $ac_val in
1337
    [\\/$]* | ?:[\\/]* )  continue;;
1338
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339
  esac
1340
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1341
   { (exit 1); exit 1; }; }
1342
done
1343
1344
# There might be people who depend on the old broken behavior: `$host'
1345
# used to hold the argument of --host etc.
1346
# FIXME: To remove some day.
1347
build=$build_alias
1348
host=$host_alias
1349
target=$target_alias
1350
1351
# FIXME: To remove some day.
1352
if test "x$host_alias" != x; then
1353
  if test "x$build_alias" = x; then
1354
    cross_compiling=maybe
1355
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1356
    If a cross compiler is detected then cross compile mode will be used." >&2
1357
  elif test "x$build_alias" != "x$host_alias"; then
1358
    cross_compiling=yes
1359
  fi
1360
fi
1361
1362
ac_tool_prefix=
1363
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365
test "$silent" = yes && exec 6>/dev/null
1366
1367
1368
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369
ac_ls_di=`ls -di .` &&
1370
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371
  { echo "$as_me: error: Working directory cannot be determined" >&2
1372
   { (exit 1); exit 1; }; }
1373
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1375
   { (exit 1); exit 1; }; }
1376
1377
1378
# Find the source files, if location was not specified.
1379
if test -z "$srcdir"; then
1380
  ac_srcdir_defaulted=yes
1381
  # Try the directory containing this script, then the parent directory.
1382
  ac_confdir=`$as_dirname -- "$0" ||
1383
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384
	 X"$0" : 'X\(//\)[^/]' \| \
1385
	 X"$0" : 'X\(//\)$' \| \
1386
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1387
echo X"$0" |
1388
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389
	    s//\1/
1390
	    q
1391
	  }
1392
	  /^X\(\/\/\)[^/].*/{
1393
	    s//\1/
1394
	    q
1395
	  }
1396
	  /^X\(\/\/\)$/{
1397
	    s//\1/
1398
	    q
1399
	  }
1400
	  /^X\(\/\).*/{
1401
	    s//\1/
1402
	    q
1403
	  }
1404
	  s/.*/./; q'`
1405
  srcdir=$ac_confdir
1406
  if test ! -r "$srcdir/$ac_unique_file"; then
1407
    srcdir=..
1408
  fi
1409
else
1410
  ac_srcdir_defaulted=no
1411
fi
1412
if test ! -r "$srcdir/$ac_unique_file"; then
1413
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1415
   { (exit 1); exit 1; }; }
1416
fi
1417
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418
ac_abs_confdir=`(
1419
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1420
   { (exit 1); exit 1; }; }
1421
	pwd)`
1422
# When building in place, set srcdir=.
1423
if test "$ac_abs_confdir" = "$ac_pwd"; then
1424
  srcdir=.
1425
fi
1426
# Remove unnecessary trailing slashes from srcdir.
1427
# Double slashes in file names in object file debugging info
1428
# mess up M-x gdb in Emacs.
1429
case $srcdir in
1430
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431
esac
1432
for ac_var in $ac_precious_vars; do
1433
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434
  eval ac_env_${ac_var}_value=\$${ac_var}
1435
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437
done
1438
1439
#
1440
# Report the --help message.
1441
#
1442
if test "$ac_init_help" = "long"; then
1443
  # Omit some internal or obsolete options to make the list less imposing.
1444
  # This message is too long to be a string in the A/UX 3.1 sh.
1445
  cat <<_ACEOF
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1446
\`configure' configures nautilus-share 0.7.2 to adapt to many kinds of systems.
1 by Sebastien Bacher
Import upstream version 0.7.1
1447
1448
Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451
VAR=VALUE.  See below for descriptions of some of the useful variables.
1452
1453
Defaults for the options are specified in brackets.
1454
1455
Configuration:
1456
  -h, --help              display this help and exit
1457
      --help=short        display options specific to this package
1458
      --help=recursive    display the short help of all the included packages
1459
  -V, --version           display version information and exit
1460
  -q, --quiet, --silent   do not print \`checking...' messages
1461
      --cache-file=FILE   cache test results in FILE [disabled]
1462
  -C, --config-cache      alias for \`--cache-file=config.cache'
1463
  -n, --no-create         do not create output files
1464
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1465
1466
Installation directories:
1467
  --prefix=PREFIX         install architecture-independent files in PREFIX
1468
			  [$ac_default_prefix]
1469
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1470
			  [PREFIX]
1471
1472
By default, \`make install' will install all the files in
1473
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1474
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475
for instance \`--prefix=\$HOME'.
1476
1477
For better control, use the options below.
1478
1479
Fine tuning of the installation directories:
1480
  --bindir=DIR           user executables [EPREFIX/bin]
1481
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1482
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1483
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1484
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1485
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1486
  --libdir=DIR           object code libraries [EPREFIX/lib]
1487
  --includedir=DIR       C header files [PREFIX/include]
1488
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1489
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1490
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1491
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1492
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1493
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1494
  --docdir=DIR           documentation root [DATAROOTDIR/doc/nautilus-share]
1495
  --htmldir=DIR          html documentation [DOCDIR]
1496
  --dvidir=DIR           dvi documentation [DOCDIR]
1497
  --pdfdir=DIR           pdf documentation [DOCDIR]
1498
  --psdir=DIR            ps documentation [DOCDIR]
1499
_ACEOF
1500
1501
  cat <<\_ACEOF
1502
1503
Program names:
1504
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1505
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1506
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1507
1508
System types:
1509
  --build=BUILD     configure for building on BUILD [guessed]
1510
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1511
_ACEOF
1512
fi
1513
1514
if test -n "$ac_init_help"; then
1515
  case $ac_init_help in
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1516
     short | recursive ) echo "Configuration of nautilus-share 0.7.2:";;
1 by Sebastien Bacher
Import upstream version 0.7.1
1517
   esac
1518
  cat <<\_ACEOF
1519
1520
Optional Features:
1521
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523
  --disable-dependency-tracking  speeds up one-time build
1524
  --enable-dependency-tracking   do not reject slow dependency extractors
1525
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1526
  --enable-static[=PKGS]  build static libraries [default=yes]
1527
  --enable-fast-install[=PKGS]
1528
                          optimize for fast installation [default=yes]
1529
  --disable-libtool-lock  avoid locking (might break parallel builds)
1530
1531
Optional Packages:
1532
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1533
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1534
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1535
  --with-pic              try to use only PIC/non-PIC objects [default=use
1536
                          both]
1537
  --with-tags[=TAGS]      include additional configurations [automatic]
1538
1539
Some influential environment variables:
1540
  CC          C compiler command
1541
  CFLAGS      C compiler flags
1542
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543
              nonstandard directory <lib dir>
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1544
  LIBS        libraries to pass to the linker, e.g. -l<library>
1 by Sebastien Bacher
Import upstream version 0.7.1
1545
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1546
              you have headers in a nonstandard directory <include dir>
1547
  CPP         C preprocessor
1548
  CXX         C++ compiler command
1549
  CXXFLAGS    C++ compiler flags
1550
  CXXCPP      C++ preprocessor
1551
  F77         Fortran 77 compiler command
1552
  FFLAGS      Fortran 77 compiler flags
1553
  PKG_CONFIG  path to pkg-config utility
1554
  NAUTILUS_CFLAGS
1555
              C compiler flags for NAUTILUS, overriding pkg-config
1556
  NAUTILUS_LIBS
1557
              linker flags for NAUTILUS, overriding pkg-config
1558
  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1559
  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1560
1561
Use these variables to override the choices made by `configure' or to help
1562
it to find libraries and programs with nonstandard names/locations.
1563
1564
_ACEOF
1565
ac_status=$?
1566
fi
1567
1568
if test "$ac_init_help" = "recursive"; then
1569
  # If there are subdirs, report their specific --help.
1570
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571
    test -d "$ac_dir" || continue
1572
    ac_builddir=.
1573
1574
case "$ac_dir" in
1575
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576
*)
1577
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1578
  # A ".." for each directory in $ac_dir_suffix.
1579
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1580
  case $ac_top_builddir_sub in
1581
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583
  esac ;;
1584
esac
1585
ac_abs_top_builddir=$ac_pwd
1586
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587
# for backward compatibility:
1588
ac_top_builddir=$ac_top_build_prefix
1589
1590
case $srcdir in
1591
  .)  # We are building in place.
1592
    ac_srcdir=.
1593
    ac_top_srcdir=$ac_top_builddir_sub
1594
    ac_abs_top_srcdir=$ac_pwd ;;
1595
  [\\/]* | ?:[\\/]* )  # Absolute name.
1596
    ac_srcdir=$srcdir$ac_dir_suffix;
1597
    ac_top_srcdir=$srcdir
1598
    ac_abs_top_srcdir=$srcdir ;;
1599
  *) # Relative name.
1600
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1602
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603
esac
1604
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606
    cd "$ac_dir" || { ac_status=$?; continue; }
1607
    # Check for guested configure.
1608
    if test -f "$ac_srcdir/configure.gnu"; then
1609
      echo &&
1610
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611
    elif test -f "$ac_srcdir/configure"; then
1612
      echo &&
1613
      $SHELL "$ac_srcdir/configure" --help=recursive
1614
    else
1615
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616
    fi || ac_status=$?
1617
    cd "$ac_pwd" || { ac_status=$?; break; }
1618
  done
1619
fi
1620
1621
test -n "$ac_init_help" && exit $ac_status
1622
if $ac_init_version; then
1623
  cat <<\_ACEOF
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1624
nautilus-share configure 0.7.2
1625
generated by GNU Autoconf 2.61
1 by Sebastien Bacher
Import upstream version 0.7.1
1626
1627
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1629
This configure script is free software; the Free Software Foundation
1630
gives unlimited permission to copy, distribute and modify it.
1631
_ACEOF
1632
  exit
1633
fi
1634
cat >config.log <<_ACEOF
1635
This file contains any messages produced by compilers while
1636
running configure, to aid debugging if configure makes a mistake.
1637
1.1.1 by Michael Vogt
Import upstream version 0.7.2
1638
It was created by nautilus-share $as_me 0.7.2, which was
1639
generated by GNU Autoconf 2.61.  Invocation command line was
1 by Sebastien Bacher
Import upstream version 0.7.1
1640
1641
  $ $0 $@
1642
1643
_ACEOF
1644
exec 5>>config.log
1645
{
1646
cat <<_ASUNAME
1647
## --------- ##
1648
## Platform. ##
1649
## --------- ##
1650
1651
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656
1657
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1659
1660
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1661
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1662
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1664
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1665
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1666
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1667
1668
_ASUNAME
1669
1670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671
for as_dir in $PATH
1672
do
1673
  IFS=$as_save_IFS
1674
  test -z "$as_dir" && as_dir=.
1675
  echo "PATH: $as_dir"
1676
done
1677
IFS=$as_save_IFS
1678
1679
} >&5
1680
1681
cat >&5 <<_ACEOF
1682
1683
1684
## ----------- ##
1685
## Core tests. ##
1686
## ----------- ##
1687
1688
_ACEOF
1689
1690
1691
# Keep a trace of the command line.
1692
# Strip out --no-create and --no-recursion so they do not pile up.
1693
# Strip out --silent because we don't want to record it for future runs.
1694
# Also quote any args containing shell meta-characters.
1695
# Make two passes to allow for proper duplicate-argument suppression.
1696
ac_configure_args=
1697
ac_configure_args0=
1698
ac_configure_args1=
1699
ac_must_keep_next=false
1700
for ac_pass in 1 2
1701
do
1702
  for ac_arg
1703
  do
1704
    case $ac_arg in
1705
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1706
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1707
    | -silent | --silent | --silen | --sile | --sil)
1708
      continue ;;
1709
    *\'*)
1710
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711
    esac
1712
    case $ac_pass in
1713
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714
    2)
1715
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1716
      if test $ac_must_keep_next = true; then
1717
	ac_must_keep_next=false # Got value, back to normal.
1718
      else
1719
	case $ac_arg in
1720
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1721
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1722
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1723
	  | -with-* | --with-* | -without-* | --without-* | --x)
1724
	    case "$ac_configure_args0 " in
1725
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726
	    esac
1727
	    ;;
1728
	  -* ) ac_must_keep_next=true ;;
1729
	esac
1730
      fi
1731
      ac_configure_args="$ac_configure_args '$ac_arg'"
1732
      ;;
1733
    esac
1734
  done
1735
done
1736
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1737
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738
1739
# When interrupted or exit'd, cleanup temporary files, and complete
1740
# config.log.  We remove comments because anyway the quotes in there
1741
# would cause problems or look ugly.
1742
# WARNING: Use '\'' to represent an apostrophe within the trap.
1743
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744
trap 'exit_status=$?
1745
  # Save into config.log some information that might help in debugging.
1746
  {
1747
    echo
1748
1749
    cat <<\_ASBOX
1750
## ---------------- ##
1751
## Cache variables. ##
1752
## ---------------- ##
1753
_ASBOX
1754
    echo
1755
    # The following way of writing the cache mishandles newlines in values,
1756
(
1757
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758
    eval ac_val=\$$ac_var
1759
    case $ac_val in #(
1760
    *${as_nl}*)
1761
      case $ac_var in #(
1762
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1763
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1764
      esac
1765
      case $ac_var in #(
1766
      _ | IFS | as_nl) ;; #(
1767
      *) $as_unset $ac_var ;;
1768
      esac ;;
1769
    esac
1770
  done
1771
  (set) 2>&1 |
1772
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1773
    *${as_nl}ac_space=\ *)
1774
      sed -n \
1775
	"s/'\''/'\''\\\\'\'''\''/g;
1776
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1777
      ;; #(
1778
    *)
1779
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1780
      ;;
1781
    esac |
1782
    sort
1783
)
1784
    echo
1785
1786
    cat <<\_ASBOX
1787
## ----------------- ##
1788
## Output variables. ##
1789
## ----------------- ##
1790
_ASBOX
1791
    echo
1792
    for ac_var in $ac_subst_vars
1793
    do
1794
      eval ac_val=\$$ac_var
1795
      case $ac_val in
1796
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797
      esac
1798
      echo "$ac_var='\''$ac_val'\''"
1799
    done | sort
1800
    echo
1801
1802
    if test -n "$ac_subst_files"; then
1803
      cat <<\_ASBOX
1804
## ------------------- ##
1805
## File substitutions. ##
1806
## ------------------- ##
1807
_ASBOX
1808
      echo
1809
      for ac_var in $ac_subst_files
1810
      do
1811
	eval ac_val=\$$ac_var
1812
	case $ac_val in
1813
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814
	esac
1815
	echo "$ac_var='\''$ac_val'\''"
1816
      done | sort
1817
      echo
1818
    fi
1819
1820
    if test -s confdefs.h; then
1821
      cat <<\_ASBOX
1822
## ----------- ##
1823
## confdefs.h. ##
1824
## ----------- ##
1825
_ASBOX
1826
      echo
1827
      cat confdefs.h
1828
      echo
1829
    fi
1830
    test "$ac_signal" != 0 &&
1831
      echo "$as_me: caught signal $ac_signal"
1832
    echo "$as_me: exit $exit_status"
1833
  } >&5
1834
  rm -f core *.core core.conftest.* &&
1835
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836
    exit $exit_status
1837
' 0
1838
for ac_signal in 1 2 13 15; do
1839
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1840
done
1841
ac_signal=0
1842
1843
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1844
rm -f -r conftest* confdefs.h
1845
1846
# Predefined preprocessor variables.
1847
1848
cat >>confdefs.h <<_ACEOF
1849
#define PACKAGE_NAME "$PACKAGE_NAME"
1850
_ACEOF
1851
1852
1853
cat >>confdefs.h <<_ACEOF
1854
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1855
_ACEOF
1856
1857
1858
cat >>confdefs.h <<_ACEOF
1859
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1860
_ACEOF
1861
1862
1863
cat >>confdefs.h <<_ACEOF
1864
#define PACKAGE_STRING "$PACKAGE_STRING"
1865
_ACEOF
1866
1867
1868
cat >>confdefs.h <<_ACEOF
1869
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1870
_ACEOF
1871
1872
1873
# Let the site file select an alternate cache file if it wants to.
1874
# Prefer explicitly selected file to automatically selected ones.
1875
if test -n "$CONFIG_SITE"; then
1876
  set x "$CONFIG_SITE"
1877
elif test "x$prefix" != xNONE; then
1878
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1879
else
1880
  set x "$ac_default_prefix/share/config.site" \
1881
	"$ac_default_prefix/etc/config.site"
1882
fi
1883
shift
1884
for ac_site_file
1885
do
1886
  if test -r "$ac_site_file"; then
1887
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888
echo "$as_me: loading site script $ac_site_file" >&6;}
1889
    sed 's/^/| /' "$ac_site_file" >&5
1890
    . "$ac_site_file"
1891
  fi
1892
done
1893
1894
if test -r "$cache_file"; then
1895
  # Some versions of bash will fail to source /dev/null (special
1896
  # files actually), so we avoid doing that.
1897
  if test -f "$cache_file"; then
1898
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899
echo "$as_me: loading cache $cache_file" >&6;}
1900
    case $cache_file in
1901
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902
      *)                      . "./$cache_file";;
1903
    esac
1904
  fi
1905
else
1906
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907
echo "$as_me: creating cache $cache_file" >&6;}
1908
  >$cache_file
1909
fi
1910
1911
# Check that the precious variables saved in the cache have kept the same
1912
# value.
1913
ac_cache_corrupted=false
1914
for ac_var in $ac_precious_vars; do
1915
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1916
  eval ac_new_set=\$ac_env_${ac_var}_set
1917
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1918
  eval ac_new_val=\$ac_env_${ac_var}_value
1919
  case $ac_old_set,$ac_new_set in
1920
    set,)
1921
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1922
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1923
      ac_cache_corrupted=: ;;
1924
    ,set)
1925
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1926
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1927
      ac_cache_corrupted=: ;;
1928
    ,);;
1929
    *)
1930
      if test "x$ac_old_val" != "x$ac_new_val"; then
1931
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1932
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1933
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1934
echo "$as_me:   former value:  $ac_old_val" >&2;}
1935
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1936
echo "$as_me:   current value: $ac_new_val" >&2;}
1937
	ac_cache_corrupted=:
1938
      fi;;
1939
  esac
1940
  # Pass precious variables to config.status.
1941
  if test "$ac_new_set" = set; then
1942
    case $ac_new_val in
1943
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1944
    *) ac_arg=$ac_var=$ac_new_val ;;
1945
    esac
1946
    case " $ac_configure_args " in
1947
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1948
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1949
    esac
1950
  fi
1951
done
1952
if $ac_cache_corrupted; then
1953
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1954
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1955
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1956
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1957
   { (exit 1); exit 1; }; }
1958
fi
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
ac_ext=c
1985
ac_cpp='$CPP $CPPFLAGS'
1986
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989
1990
1991
1992
ac_config_headers="$ac_config_headers config.h"
1993
1994
am__api_version="1.9"
1995
ac_aux_dir=
1996
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1997
  if test -f "$ac_dir/install-sh"; then
1998
    ac_aux_dir=$ac_dir
1999
    ac_install_sh="$ac_aux_dir/install-sh -c"
2000
    break
2001
  elif test -f "$ac_dir/install.sh"; then
2002
    ac_aux_dir=$ac_dir
2003
    ac_install_sh="$ac_aux_dir/install.sh -c"
2004
    break
2005
  elif test -f "$ac_dir/shtool"; then
2006
    ac_aux_dir=$ac_dir
2007
    ac_install_sh="$ac_aux_dir/shtool install -c"
2008
    break
2009
  fi
2010
done
2011
if test -z "$ac_aux_dir"; then
2012
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2013
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2014
   { (exit 1); exit 1; }; }
2015
fi
2016
2017
# These three variables are undocumented and unsupported,
2018
# and are intended to be withdrawn in a future Autoconf release.
2019
# They can cause serious problems if a builder's source tree is in a directory
2020
# whose full name contains unusual characters.
2021
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2022
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2023
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2024
2025
2026
# Find a good install program.  We prefer a C program (faster),
2027
# so one script is as good as another.  But avoid the broken or
2028
# incompatible versions:
2029
# SysV /etc/install, /usr/sbin/install
2030
# SunOS /usr/etc/install
2031
# IRIX /sbin/install
2032
# AIX /bin/install
2033
# AmigaOS /C/install, which installs bootblocks on floppy discs
2034
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2035
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2036
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2037
# OS/2's system install, which has a completely different semantic
2038
# ./install, which can be erroneously created by make from ./install.sh.
2039
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2040
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2041
if test -z "$INSTALL"; then
2042
if test "${ac_cv_path_install+set}" = set; then
2043
  echo $ECHO_N "(cached) $ECHO_C" >&6
2044
else
2045
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046
for as_dir in $PATH
2047
do
2048
  IFS=$as_save_IFS
2049
  test -z "$as_dir" && as_dir=.
2050
  # Account for people who put trailing slashes in PATH elements.
2051
case $as_dir/ in
2052
  ./ | .// | /cC/* | \
2053
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2054
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2055
  /usr/ucb/* ) ;;
2056
  *)
2057
    # OSF1 and SCO ODT 3.0 have their own names for install.
2058
    # Don't use installbsd from OSF since it installs stuff as root
2059
    # by default.
2060
    for ac_prog in ginstall scoinst install; do
2061
      for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2062
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2063
	  if test $ac_prog = install &&
2064
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2065
	    # AIX install.  It has an incompatible calling convention.
2066
	    :
2067
	  elif test $ac_prog = install &&
2068
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2069
	    # program-specific install script used by HP pwplus--don't use.
2070
	    :
2071
	  else
2072
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2073
	    break 3
2074
	  fi
2075
	fi
2076
      done
2077
    done
2078
    ;;
2079
esac
2080
done
2081
IFS=$as_save_IFS
2082
2083
2084
fi
2085
  if test "${ac_cv_path_install+set}" = set; then
2086
    INSTALL=$ac_cv_path_install
2087
  else
2088
    # As a last resort, use the slow shell script.  Don't cache a
2089
    # value for INSTALL within a source directory, because that will
2090
    # break other packages using the cache if that directory is
2091
    # removed, or if the value is a relative name.
2092
    INSTALL=$ac_install_sh
2093
  fi
2094
fi
2095
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2096
echo "${ECHO_T}$INSTALL" >&6; }
2097
2098
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2099
# It thinks the first close brace ends the variable substitution.
2100
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2101
2102
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2103
2104
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2105
2106
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2107
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2108
# Just in case
2109
sleep 1
2110
echo timestamp > conftest.file
2111
# Do `set' in a subshell so we don't clobber the current shell's
2112
# arguments.  Must try -L first in case configure is actually a
2113
# symlink; some systems play weird games with the mod time of symlinks
2114
# (eg FreeBSD returns the mod time of the symlink's containing
2115
# directory).
2116
if (
2117
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2118
   if test "$*" = "X"; then
2119
      # -L didn't work.
2120
      set X `ls -t $srcdir/configure conftest.file`
2121
   fi
2122
   rm -f conftest.file
2123
   if test "$*" != "X $srcdir/configure conftest.file" \
2124
      && test "$*" != "X conftest.file $srcdir/configure"; then
2125
2126
      # If neither matched, then we have a broken ls.  This can happen
2127
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2128
      # broken ls alias from the environment.  This has actually
2129
      # happened.  Such a system could not be considered "sane".
2130
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2131
alias in your environment" >&5
2132
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2133
alias in your environment" >&2;}
2134
   { (exit 1); exit 1; }; }
2135
   fi
2136
2137
   test "$2" = conftest.file
2138
   )
2139
then
2140
   # Ok.
2141
   :
2142
else
2143
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2144
Check your system clock" >&5
2145
echo "$as_me: error: newly created file is older than distributed files!
2146
Check your system clock" >&2;}
2147
   { (exit 1); exit 1; }; }
2148
fi
2149
{ echo "$as_me:$LINENO: result: yes" >&5
2150
echo "${ECHO_T}yes" >&6; }
2151
test "$program_prefix" != NONE &&
2152
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2153
# Use a double $ so make ignores it.
2154
test "$program_suffix" != NONE &&
2155
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2156
# Double any \ or $.  echo might interpret backslashes.
2157
# By default was `s,x,x', remove it if useless.
2158
cat <<\_ACEOF >conftest.sed
2159
s/[\\$]/&&/g;s/;s,x,x,$//
2160
_ACEOF
2161
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2162
rm -f conftest.sed
2163
2164
# expand $ac_aux_dir to an absolute path
2165
am_aux_dir=`cd $ac_aux_dir && pwd`
2166
2167
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2168
# Use eval to expand $SHELL
2169
if eval "$MISSING --run true"; then
2170
  am_missing_run="$MISSING --run "
2171
else
2172
  am_missing_run=
2173
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2174
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2175
fi
2176
2177
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2178
  # We used to keeping the `.' as first argument, in order to
2179
  # allow $(mkdir_p) to be used without argument.  As in
2180
  #   $(mkdir_p) $(somedir)
2181
  # where $(somedir) is conditionally defined.  However this is wrong
2182
  # for two reasons:
2183
  #  1. if the package is installed by a user who cannot write `.'
2184
  #     make install will fail,
2185
  #  2. the above comment should most certainly read
2186
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2187
  #     so it does not work when $(somedir) is undefined and
2188
  #     $(DESTDIR) is not.
2189
  #  To support the latter case, we have to write
2190
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2191
  #  so the `.' trick is pointless.
2192
  mkdir_p='mkdir -p --'
2193
else
2194
  # On NextStep and OpenStep, the `mkdir' command does not
2195
  # recognize any option.  It will interpret all options as
2196
  # directories to create, and then abort because `.' already
2197
  # exists.
2198
  for d in ./-p ./--version;
2199
  do
2200
    test -d $d && rmdir $d
2201
  done
2202
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2203
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2204
    mkdir_p='$(mkinstalldirs)'
2205
  else
2206
    mkdir_p='$(install_sh) -d'
2207
  fi
2208
fi
2209
2210
for ac_prog in gawk mawk nawk awk
2211
do
2212
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2213
set dummy $ac_prog; ac_word=$2
2214
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2216
if test "${ac_cv_prog_AWK+set}" = set; then
2217
  echo $ECHO_N "(cached) $ECHO_C" >&6
2218
else
2219
  if test -n "$AWK"; then
2220
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2221
else
2222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223
for as_dir in $PATH
2224
do
2225
  IFS=$as_save_IFS
2226
  test -z "$as_dir" && as_dir=.
2227
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2228
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2229
    ac_cv_prog_AWK="$ac_prog"
2230
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231
    break 2
2232
  fi
2233
done
2234
done
2235
IFS=$as_save_IFS
2236
2237
fi
2238
fi
2239
AWK=$ac_cv_prog_AWK
2240
if test -n "$AWK"; then
2241
  { echo "$as_me:$LINENO: result: $AWK" >&5
2242
echo "${ECHO_T}$AWK" >&6; }
2243
else
2244
  { echo "$as_me:$LINENO: result: no" >&5
2245
echo "${ECHO_T}no" >&6; }
2246
fi
2247
2248
2249
  test -n "$AWK" && break
2250
done
2251
2252
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2253
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2254
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2255
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2256
  echo $ECHO_N "(cached) $ECHO_C" >&6
2257
else
2258
  cat >conftest.make <<\_ACEOF
2259
SHELL = /bin/sh
2260
all:
2261
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2262
_ACEOF
2263
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2264
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2265
  *@@@%%%=?*=@@@%%%*)
2266
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2267
  *)
2268
    eval ac_cv_prog_make_${ac_make}_set=no;;
2269
esac
2270
rm -f conftest.make
2271
fi
2272
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2273
  { echo "$as_me:$LINENO: result: yes" >&5
2274
echo "${ECHO_T}yes" >&6; }
2275
  SET_MAKE=
2276
else
2277
  { echo "$as_me:$LINENO: result: no" >&5
2278
echo "${ECHO_T}no" >&6; }
2279
  SET_MAKE="MAKE=${MAKE-make}"
2280
fi
2281
2282
rm -rf .tst 2>/dev/null
2283
mkdir .tst 2>/dev/null
2284
if test -d .tst; then
2285
  am__leading_dot=.
2286
else
2287
  am__leading_dot=_
2288
fi
2289
rmdir .tst 2>/dev/null
2290
2291
# test to see if srcdir already configured
2292
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2293
   test -f $srcdir/config.status; then
2294
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2295
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2296
   { (exit 1); exit 1; }; }
2297
fi
2298
2299
# test whether we have cygpath
2300
if test -z "$CYGPATH_W"; then
2301
  if (cygpath --version) >/dev/null 2>/dev/null; then
2302
    CYGPATH_W='cygpath -w'
2303
  else
2304
    CYGPATH_W=echo
2305
  fi
2306
fi
2307
2308
2309
# Define the identity of the package.
2310
 PACKAGE='nautilus-share'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2311
 VERSION='0.7.2'
1 by Sebastien Bacher
Import upstream version 0.7.1
2312
2313
2314
cat >>confdefs.h <<_ACEOF
2315
#define PACKAGE "$PACKAGE"
2316
_ACEOF
2317
2318
2319
cat >>confdefs.h <<_ACEOF
2320
#define VERSION "$VERSION"
2321
_ACEOF
2322
2323
# Some tools Automake needs.
2324
2325
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2326
2327
2328
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2329
2330
2331
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2332
2333
2334
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2335
2336
2337
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2338
2339
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2340
2341
# Installed binaries are usually stripped using `strip' when the user
2342
# run `make install-strip'.  However `strip' might not be the right
2343
# tool to use in cross-compilation environments, therefore Automake
2344
# will honor the `STRIP' environment variable to overrule this program.
2345
if test "$cross_compiling" != no; then
2346
  if test -n "$ac_tool_prefix"; then
2347
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348
set dummy ${ac_tool_prefix}strip; ac_word=$2
2349
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2350
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351
if test "${ac_cv_prog_STRIP+set}" = set; then
2352
  echo $ECHO_N "(cached) $ECHO_C" >&6
2353
else
2354
  if test -n "$STRIP"; then
2355
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356
else
2357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358
for as_dir in $PATH
2359
do
2360
  IFS=$as_save_IFS
2361
  test -z "$as_dir" && as_dir=.
2362
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2363
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2364
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366
    break 2
2367
  fi
2368
done
2369
done
2370
IFS=$as_save_IFS
2371
2372
fi
2373
fi
2374
STRIP=$ac_cv_prog_STRIP
2375
if test -n "$STRIP"; then
2376
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2377
echo "${ECHO_T}$STRIP" >&6; }
2378
else
2379
  { echo "$as_me:$LINENO: result: no" >&5
2380
echo "${ECHO_T}no" >&6; }
2381
fi
2382
2383
2384
fi
2385
if test -z "$ac_cv_prog_STRIP"; then
2386
  ac_ct_STRIP=$STRIP
2387
  # Extract the first word of "strip", so it can be a program name with args.
2388
set dummy strip; ac_word=$2
2389
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2390
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392
  echo $ECHO_N "(cached) $ECHO_C" >&6
2393
else
2394
  if test -n "$ac_ct_STRIP"; then
2395
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396
else
2397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398
for as_dir in $PATH
2399
do
2400
  IFS=$as_save_IFS
2401
  test -z "$as_dir" && as_dir=.
2402
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2403
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2404
    ac_cv_prog_ac_ct_STRIP="strip"
2405
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406
    break 2
2407
  fi
2408
done
2409
done
2410
IFS=$as_save_IFS
2411
2412
fi
2413
fi
2414
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415
if test -n "$ac_ct_STRIP"; then
2416
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2418
else
2419
  { echo "$as_me:$LINENO: result: no" >&5
2420
echo "${ECHO_T}no" >&6; }
2421
fi
2422
2423
  if test "x$ac_ct_STRIP" = x; then
2424
    STRIP=":"
2425
  else
2426
    case $cross_compiling:$ac_tool_warned in
2427
yes:)
2428
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429
whose name does not start with the host triplet.  If you think this
2430
configuration is useful to you, please write to autoconf@gnu.org." >&5
2431
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432
whose name does not start with the host triplet.  If you think this
2433
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434
ac_tool_warned=yes ;;
2435
esac
2436
    STRIP=$ac_ct_STRIP
2437
  fi
2438
else
2439
  STRIP="$ac_cv_prog_STRIP"
2440
fi
2441
2442
fi
2443
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2444
2445
# We need awk for the "check" target.  The system "awk" is bad on
2446
# some platforms.
2447
# Always define AMTAR for backward compatibility.
2448
2449
AMTAR=${AMTAR-"${am_missing_run}tar"}
2450
2451
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2452
2453
2454
2455
2456
2457
2458
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2459
DEPDIR="${am__leading_dot}deps"
2460
2461
ac_config_commands="$ac_config_commands depfiles"
2462
2463
2464
am_make=${MAKE-make}
2465
cat > confinc << 'END'
2466
am__doit:
2467
	@echo done
2468
.PHONY: am__doit
2469
END
2470
# If we don't find an include directive, just comment out the code.
2471
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2472
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2473
am__include="#"
2474
am__quote=
2475
_am_result=none
2476
# First try GNU make style include.
2477
echo "include confinc" > confmf
2478
# We grep out `Entering directory' and `Leaving directory'
2479
# messages which can occur if `w' ends up in MAKEFLAGS.
2480
# In particular we don't look at `^make:' because GNU make might
2481
# be invoked under some other name (usually "gmake"), in which
2482
# case it prints its new name instead of `make'.
2483
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2484
   am__include=include
2485
   am__quote=
2486
   _am_result=GNU
2487
fi
2488
# Now try BSD make style include.
2489
if test "$am__include" = "#"; then
2490
   echo '.include "confinc"' > confmf
2491
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2492
      am__include=.include
2493
      am__quote="\""
2494
      _am_result=BSD
1 by Sebastien Bacher
Import upstream version 0.7.1
2495
   fi
2496
fi
2497
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2498
2499
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2500
echo "${ECHO_T}$_am_result" >&6; }
2501
rm -f confinc confmf
2502
2503
# Check whether --enable-dependency-tracking was given.
2504
if test "${enable_dependency_tracking+set}" = set; then
2505
  enableval=$enable_dependency_tracking;
2506
fi
2507
2508
if test "x$enable_dependency_tracking" != xno; then
2509
  am_depcomp="$ac_aux_dir/depcomp"
2510
  AMDEPBACKSLASH='\'
2511
fi
2512
2513
2514
if test "x$enable_dependency_tracking" != xno; then
2515
  AMDEP_TRUE=
2516
  AMDEP_FALSE='#'
2517
else
2518
  AMDEP_TRUE='#'
2519
  AMDEP_FALSE=
2520
fi
2521
2522
1 by Sebastien Bacher
Import upstream version 0.7.1
2523
2524
ac_ext=c
2525
ac_cpp='$CPP $CPPFLAGS'
2526
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
if test -n "$ac_tool_prefix"; then
2530
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2531
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2532
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534
if test "${ac_cv_prog_CC+set}" = set; then
2535
  echo $ECHO_N "(cached) $ECHO_C" >&6
2536
else
2537
  if test -n "$CC"; then
2538
  ac_cv_prog_CC="$CC" # Let the user override the test.
2539
else
2540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541
for as_dir in $PATH
2542
do
2543
  IFS=$as_save_IFS
2544
  test -z "$as_dir" && as_dir=.
2545
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2546
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2547
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2548
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549
    break 2
2550
  fi
2551
done
2552
done
2553
IFS=$as_save_IFS
2554
2555
fi
2556
fi
2557
CC=$ac_cv_prog_CC
2558
if test -n "$CC"; then
2559
  { echo "$as_me:$LINENO: result: $CC" >&5
2560
echo "${ECHO_T}$CC" >&6; }
2561
else
2562
  { echo "$as_me:$LINENO: result: no" >&5
2563
echo "${ECHO_T}no" >&6; }
2564
fi
2565
2566
2567
fi
2568
if test -z "$ac_cv_prog_CC"; then
2569
  ac_ct_CC=$CC
2570
  # Extract the first word of "gcc", so it can be a program name with args.
2571
set dummy gcc; ac_word=$2
2572
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575
  echo $ECHO_N "(cached) $ECHO_C" >&6
2576
else
2577
  if test -n "$ac_ct_CC"; then
2578
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579
else
2580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581
for as_dir in $PATH
2582
do
2583
  IFS=$as_save_IFS
2584
  test -z "$as_dir" && as_dir=.
2585
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2586
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2587
    ac_cv_prog_ac_ct_CC="gcc"
2588
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589
    break 2
2590
  fi
2591
done
2592
done
2593
IFS=$as_save_IFS
2594
2595
fi
2596
fi
2597
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598
if test -n "$ac_ct_CC"; then
2599
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600
echo "${ECHO_T}$ac_ct_CC" >&6; }
2601
else
2602
  { echo "$as_me:$LINENO: result: no" >&5
2603
echo "${ECHO_T}no" >&6; }
2604
fi
2605
2606
  if test "x$ac_ct_CC" = x; then
2607
    CC=""
2608
  else
2609
    case $cross_compiling:$ac_tool_warned in
2610
yes:)
2611
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2612
whose name does not start with the host triplet.  If you think this
2613
configuration is useful to you, please write to autoconf@gnu.org." >&5
2614
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2615
whose name does not start with the host triplet.  If you think this
2616
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2617
ac_tool_warned=yes ;;
2618
esac
2619
    CC=$ac_ct_CC
2620
  fi
2621
else
2622
  CC="$ac_cv_prog_CC"
2623
fi
2624
2625
if test -z "$CC"; then
2626
          if test -n "$ac_tool_prefix"; then
2627
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2628
set dummy ${ac_tool_prefix}cc; ac_word=$2
2629
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2630
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631
if test "${ac_cv_prog_CC+set}" = set; then
2632
  echo $ECHO_N "(cached) $ECHO_C" >&6
2633
else
2634
  if test -n "$CC"; then
2635
  ac_cv_prog_CC="$CC" # Let the user override the test.
2636
else
2637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638
for as_dir in $PATH
2639
do
2640
  IFS=$as_save_IFS
2641
  test -z "$as_dir" && as_dir=.
2642
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2643
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2644
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2645
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646
    break 2
2647
  fi
2648
done
2649
done
2650
IFS=$as_save_IFS
2651
2652
fi
2653
fi
2654
CC=$ac_cv_prog_CC
2655
if test -n "$CC"; then
2656
  { echo "$as_me:$LINENO: result: $CC" >&5
2657
echo "${ECHO_T}$CC" >&6; }
2658
else
2659
  { echo "$as_me:$LINENO: result: no" >&5
2660
echo "${ECHO_T}no" >&6; }
2661
fi
2662
2663
2664
  fi
2665
fi
2666
if test -z "$CC"; then
2667
  # Extract the first word of "cc", so it can be a program name with args.
2668
set dummy cc; ac_word=$2
2669
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671
if test "${ac_cv_prog_CC+set}" = set; then
2672
  echo $ECHO_N "(cached) $ECHO_C" >&6
2673
else
2674
  if test -n "$CC"; then
2675
  ac_cv_prog_CC="$CC" # Let the user override the test.
2676
else
2677
  ac_prog_rejected=no
2678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679
for as_dir in $PATH
2680
do
2681
  IFS=$as_save_IFS
2682
  test -z "$as_dir" && as_dir=.
2683
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2684
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2685
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2686
       ac_prog_rejected=yes
2687
       continue
2688
     fi
2689
    ac_cv_prog_CC="cc"
2690
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691
    break 2
2692
  fi
2693
done
2694
done
2695
IFS=$as_save_IFS
2696
2697
if test $ac_prog_rejected = yes; then
2698
  # We found a bogon in the path, so make sure we never use it.
2699
  set dummy $ac_cv_prog_CC
2700
  shift
2701
  if test $# != 0; then
2702
    # We chose a different compiler from the bogus one.
2703
    # However, it has the same basename, so the bogon will be chosen
2704
    # first if we set CC to just the basename; use the full file name.
2705
    shift
2706
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2707
  fi
2708
fi
2709
fi
2710
fi
2711
CC=$ac_cv_prog_CC
2712
if test -n "$CC"; then
2713
  { echo "$as_me:$LINENO: result: $CC" >&5
2714
echo "${ECHO_T}$CC" >&6; }
2715
else
2716
  { echo "$as_me:$LINENO: result: no" >&5
2717
echo "${ECHO_T}no" >&6; }
2718
fi
2719
2720
2721
fi
2722
if test -z "$CC"; then
2723
  if test -n "$ac_tool_prefix"; then
2724
  for ac_prog in cl.exe
2725
  do
2726
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2728
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730
if test "${ac_cv_prog_CC+set}" = set; then
2731
  echo $ECHO_N "(cached) $ECHO_C" >&6
2732
else
2733
  if test -n "$CC"; then
2734
  ac_cv_prog_CC="$CC" # Let the user override the test.
2735
else
2736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737
for as_dir in $PATH
2738
do
2739
  IFS=$as_save_IFS
2740
  test -z "$as_dir" && as_dir=.
2741
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2742
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2743
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2744
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745
    break 2
2746
  fi
2747
done
2748
done
2749
IFS=$as_save_IFS
2750
2751
fi
2752
fi
2753
CC=$ac_cv_prog_CC
2754
if test -n "$CC"; then
2755
  { echo "$as_me:$LINENO: result: $CC" >&5
2756
echo "${ECHO_T}$CC" >&6; }
2757
else
2758
  { echo "$as_me:$LINENO: result: no" >&5
2759
echo "${ECHO_T}no" >&6; }
2760
fi
2761
2762
2763
    test -n "$CC" && break
2764
  done
2765
fi
2766
if test -z "$CC"; then
2767
  ac_ct_CC=$CC
2768
  for ac_prog in cl.exe
2769
do
2770
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2771
set dummy $ac_prog; ac_word=$2
2772
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2775
  echo $ECHO_N "(cached) $ECHO_C" >&6
2776
else
2777
  if test -n "$ac_ct_CC"; then
2778
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779
else
2780
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781
for as_dir in $PATH
2782
do
2783
  IFS=$as_save_IFS
2784
  test -z "$as_dir" && as_dir=.
2785
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2786
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2787
    ac_cv_prog_ac_ct_CC="$ac_prog"
2788
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789
    break 2
2790
  fi
2791
done
2792
done
2793
IFS=$as_save_IFS
2794
2795
fi
2796
fi
2797
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798
if test -n "$ac_ct_CC"; then
2799
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2800
echo "${ECHO_T}$ac_ct_CC" >&6; }
2801
else
2802
  { echo "$as_me:$LINENO: result: no" >&5
2803
echo "${ECHO_T}no" >&6; }
2804
fi
2805
2806
2807
  test -n "$ac_ct_CC" && break
2808
done
2809
2810
  if test "x$ac_ct_CC" = x; then
2811
    CC=""
2812
  else
2813
    case $cross_compiling:$ac_tool_warned in
2814
yes:)
2815
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2816
whose name does not start with the host triplet.  If you think this
2817
configuration is useful to you, please write to autoconf@gnu.org." >&5
2818
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2819
whose name does not start with the host triplet.  If you think this
2820
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2821
ac_tool_warned=yes ;;
2822
esac
2823
    CC=$ac_ct_CC
2824
  fi
2825
fi
2826
2827
fi
2828
2829
2830
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2831
See \`config.log' for more details." >&5
2832
echo "$as_me: error: no acceptable C compiler found in \$PATH
2833
See \`config.log' for more details." >&2;}
2834
   { (exit 1); exit 1; }; }
2835
2836
# Provide some information about the compiler.
2837
echo "$as_me:$LINENO: checking for C compiler version" >&5
2838
ac_compiler=`set X $ac_compile; echo $2`
2839
{ (ac_try="$ac_compiler --version >&5"
2840
case "(($ac_try" in
2841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842
  *) ac_try_echo=$ac_try;;
2843
esac
2844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845
  (eval "$ac_compiler --version >&5") 2>&5
2846
  ac_status=$?
2847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
  (exit $ac_status); }
2849
{ (ac_try="$ac_compiler -v >&5"
2850
case "(($ac_try" in
2851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852
  *) ac_try_echo=$ac_try;;
2853
esac
2854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855
  (eval "$ac_compiler -v >&5") 2>&5
2856
  ac_status=$?
2857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858
  (exit $ac_status); }
2859
{ (ac_try="$ac_compiler -V >&5"
2860
case "(($ac_try" in
2861
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862
  *) ac_try_echo=$ac_try;;
2863
esac
2864
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865
  (eval "$ac_compiler -V >&5") 2>&5
2866
  ac_status=$?
2867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868
  (exit $ac_status); }
2869
2870
cat >conftest.$ac_ext <<_ACEOF
2871
/* confdefs.h.  */
2872
_ACEOF
2873
cat confdefs.h >>conftest.$ac_ext
2874
cat >>conftest.$ac_ext <<_ACEOF
2875
/* end confdefs.h.  */
2876
2877
int
2878
main ()
2879
{
2880
2881
  ;
2882
  return 0;
2883
}
2884
_ACEOF
2885
ac_clean_files_save=$ac_clean_files
2886
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2887
# Try to create an executable without -o first, disregard a.out.
2888
# It will help us diagnose broken compilers, and finding out an intuition
2889
# of exeext.
2890
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2891
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2892
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2893
#
2894
# List of possible output files, starting from the most likely.
2895
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2896
# only as a last resort.  b.out is created by i960 compilers.
2897
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2898
#
2899
# The IRIX 6 linker writes into existing files which may not be
2900
# executable, retaining their permissions.  Remove them first so a
2901
# subsequent execution test works.
2902
ac_rmfiles=
2903
for ac_file in $ac_files
2904
do
2905
  case $ac_file in
2906
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2908
  esac
2909
done
2910
rm -f $ac_rmfiles
2911
2912
if { (ac_try="$ac_link_default"
2913
case "(($ac_try" in
2914
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915
  *) ac_try_echo=$ac_try;;
2916
esac
2917
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918
  (eval "$ac_link_default") 2>&5
2919
  ac_status=$?
2920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921
  (exit $ac_status); }; then
2922
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2923
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2924
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2925
# so that the user can short-circuit this test for compilers unknown to
2926
# Autoconf.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2927
for ac_file in $ac_files ''
1 by Sebastien Bacher
Import upstream version 0.7.1
2928
do
2929
  test -f "$ac_file" || continue
2930
  case $ac_file in
2931
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2932
	;;
2933
    [ab].out )
2934
	# We found the default executable, but exeext='' is most
2935
	# certainly right.
2936
	break;;
2937
    *.* )
2938
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2939
	then :; else
2940
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941
	fi
2942
	# We set ac_cv_exeext here because the later test for it is not
2943
	# safe: cross compilers may not add the suffix if given an `-o'
2944
	# argument, so we may need to know it at that point already.
2945
	# Even if this section looks crufty: it has the advantage of
2946
	# actually working.
2947
	break;;
2948
    * )
2949
	break;;
2950
  esac
2951
done
2952
test "$ac_cv_exeext" = no && ac_cv_exeext=
2953
2954
else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
2955
  ac_file=''
2956
fi
2957
2958
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2959
echo "${ECHO_T}$ac_file" >&6; }
2960
if test -z "$ac_file"; then
1 by Sebastien Bacher
Import upstream version 0.7.1
2961
  echo "$as_me: failed program was:" >&5
2962
sed 's/^/| /' conftest.$ac_ext >&5
2963
2964
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2965
See \`config.log' for more details." >&5
2966
echo "$as_me: error: C compiler cannot create executables
2967
See \`config.log' for more details." >&2;}
2968
   { (exit 77); exit 77; }; }
2969
fi
2970
2971
ac_exeext=$ac_cv_exeext
2972
2973
# Check that the compiler produces executables we can run.  If not, either
2974
# the compiler is broken, or we cross compile.
2975
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2976
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2977
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2978
# If not cross compiling, check that we can run a simple program.
2979
if test "$cross_compiling" != yes; then
2980
  if { ac_try='./$ac_file'
2981
  { (case "(($ac_try" in
2982
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983
  *) ac_try_echo=$ac_try;;
2984
esac
2985
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986
  (eval "$ac_try") 2>&5
2987
  ac_status=$?
2988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989
  (exit $ac_status); }; }; then
2990
    cross_compiling=no
2991
  else
2992
    if test "$cross_compiling" = maybe; then
2993
	cross_compiling=yes
2994
    else
2995
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2996
If you meant to cross compile, use \`--host'.
2997
See \`config.log' for more details." >&5
2998
echo "$as_me: error: cannot run C compiled programs.
2999
If you meant to cross compile, use \`--host'.
3000
See \`config.log' for more details." >&2;}
3001
   { (exit 1); exit 1; }; }
3002
    fi
3003
  fi
3004
fi
3005
{ echo "$as_me:$LINENO: result: yes" >&5
3006
echo "${ECHO_T}yes" >&6; }
3007
3008
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3009
ac_clean_files=$ac_clean_files_save
3010
# Check that the compiler produces executables we can run.  If not, either
3011
# the compiler is broken, or we cross compile.
3012
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3013
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3014
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3015
echo "${ECHO_T}$cross_compiling" >&6; }
3016
3017
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3018
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3019
if { (ac_try="$ac_link"
3020
case "(($ac_try" in
3021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022
  *) ac_try_echo=$ac_try;;
3023
esac
3024
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025
  (eval "$ac_link") 2>&5
3026
  ac_status=$?
3027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028
  (exit $ac_status); }; then
3029
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3030
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3031
# work properly (i.e., refer to `conftest.exe'), while it won't with
3032
# `rm'.
3033
for ac_file in conftest.exe conftest conftest.*; do
3034
  test -f "$ac_file" || continue
3035
  case $ac_file in
3036
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3037
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3038
	  break;;
3039
    * ) break;;
3040
  esac
3041
done
3042
else
3043
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3044
See \`config.log' for more details." >&5
3045
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3046
See \`config.log' for more details." >&2;}
3047
   { (exit 1); exit 1; }; }
3048
fi
3049
3050
rm -f conftest$ac_cv_exeext
3051
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3052
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3053
3054
rm -f conftest.$ac_ext
3055
EXEEXT=$ac_cv_exeext
3056
ac_exeext=$EXEEXT
3057
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3058
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3059
if test "${ac_cv_objext+set}" = set; then
3060
  echo $ECHO_N "(cached) $ECHO_C" >&6
3061
else
3062
  cat >conftest.$ac_ext <<_ACEOF
3063
/* confdefs.h.  */
3064
_ACEOF
3065
cat confdefs.h >>conftest.$ac_ext
3066
cat >>conftest.$ac_ext <<_ACEOF
3067
/* end confdefs.h.  */
3068
3069
int
3070
main ()
3071
{
3072
3073
  ;
3074
  return 0;
3075
}
3076
_ACEOF
3077
rm -f conftest.o conftest.obj
3078
if { (ac_try="$ac_compile"
3079
case "(($ac_try" in
3080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081
  *) ac_try_echo=$ac_try;;
3082
esac
3083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084
  (eval "$ac_compile") 2>&5
3085
  ac_status=$?
3086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087
  (exit $ac_status); }; then
3088
  for ac_file in conftest.o conftest.obj conftest.*; do
3089
  test -f "$ac_file" || continue;
3090
  case $ac_file in
3091
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3092
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3093
       break;;
3094
  esac
3095
done
3096
else
3097
  echo "$as_me: failed program was:" >&5
3098
sed 's/^/| /' conftest.$ac_ext >&5
3099
3100
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3101
See \`config.log' for more details." >&5
3102
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3103
See \`config.log' for more details." >&2;}
3104
   { (exit 1); exit 1; }; }
3105
fi
3106
3107
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3108
fi
3109
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3110
echo "${ECHO_T}$ac_cv_objext" >&6; }
3111
OBJEXT=$ac_cv_objext
3112
ac_objext=$OBJEXT
3113
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3114
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3115
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3116
  echo $ECHO_N "(cached) $ECHO_C" >&6
3117
else
3118
  cat >conftest.$ac_ext <<_ACEOF
3119
/* confdefs.h.  */
3120
_ACEOF
3121
cat confdefs.h >>conftest.$ac_ext
3122
cat >>conftest.$ac_ext <<_ACEOF
3123
/* end confdefs.h.  */
3124
3125
int
3126
main ()
3127
{
3128
#ifndef __GNUC__
3129
       choke me
3130
#endif
3131
3132
  ;
3133
  return 0;
3134
}
3135
_ACEOF
3136
rm -f conftest.$ac_objext
3137
if { (ac_try="$ac_compile"
3138
case "(($ac_try" in
3139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140
  *) ac_try_echo=$ac_try;;
3141
esac
3142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143
  (eval "$ac_compile") 2>conftest.er1
3144
  ac_status=$?
3145
  grep -v '^ *+' conftest.er1 >conftest.err
3146
  rm -f conftest.er1
3147
  cat conftest.err >&5
3148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
3149
  (exit $ac_status); } && {
3150
	 test -z "$ac_c_werror_flag" ||
3151
	 test ! -s conftest.err
3152
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
3153
  ac_compiler_gnu=yes
3154
else
3155
  echo "$as_me: failed program was:" >&5
3156
sed 's/^/| /' conftest.$ac_ext >&5
3157
3158
	ac_compiler_gnu=no
3159
fi
3160
3161
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163
3164
fi
3165
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3166
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3167
GCC=`test $ac_compiler_gnu = yes && echo yes`
3168
ac_test_CFLAGS=${CFLAGS+set}
3169
ac_save_CFLAGS=$CFLAGS
3170
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3171
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3172
if test "${ac_cv_prog_cc_g+set}" = set; then
3173
  echo $ECHO_N "(cached) $ECHO_C" >&6
3174
else
3175
  ac_save_c_werror_flag=$ac_c_werror_flag
3176
   ac_c_werror_flag=yes
3177
   ac_cv_prog_cc_g=no
3178
   CFLAGS="-g"
3179
   cat >conftest.$ac_ext <<_ACEOF
3180
/* confdefs.h.  */
3181
_ACEOF
3182
cat confdefs.h >>conftest.$ac_ext
3183
cat >>conftest.$ac_ext <<_ACEOF
3184
/* end confdefs.h.  */
3185
3186
int
3187
main ()
3188
{
3189
3190
  ;
3191
  return 0;
3192
}
3193
_ACEOF
3194
rm -f conftest.$ac_objext
3195
if { (ac_try="$ac_compile"
3196
case "(($ac_try" in
3197
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198
  *) ac_try_echo=$ac_try;;
3199
esac
3200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201
  (eval "$ac_compile") 2>conftest.er1
3202
  ac_status=$?
3203
  grep -v '^ *+' conftest.er1 >conftest.err
3204
  rm -f conftest.er1
3205
  cat conftest.err >&5
3206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
3207
  (exit $ac_status); } && {
3208
	 test -z "$ac_c_werror_flag" ||
3209
	 test ! -s conftest.err
3210
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
3211
  ac_cv_prog_cc_g=yes
3212
else
3213
  echo "$as_me: failed program was:" >&5
3214
sed 's/^/| /' conftest.$ac_ext >&5
3215
3216
	CFLAGS=""
3217
      cat >conftest.$ac_ext <<_ACEOF
3218
/* confdefs.h.  */
3219
_ACEOF
3220
cat confdefs.h >>conftest.$ac_ext
3221
cat >>conftest.$ac_ext <<_ACEOF
3222
/* end confdefs.h.  */
3223
3224
int
3225
main ()
3226
{
3227
3228
  ;
3229
  return 0;
3230
}
3231
_ACEOF
3232
rm -f conftest.$ac_objext
3233
if { (ac_try="$ac_compile"
3234
case "(($ac_try" in
3235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236
  *) ac_try_echo=$ac_try;;
3237
esac
3238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239
  (eval "$ac_compile") 2>conftest.er1
3240
  ac_status=$?
3241
  grep -v '^ *+' conftest.er1 >conftest.err
3242
  rm -f conftest.er1
3243
  cat conftest.err >&5
3244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
3245
  (exit $ac_status); } && {
3246
	 test -z "$ac_c_werror_flag" ||
3247
	 test ! -s conftest.err
3248
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
3249
  :
3250
else
3251
  echo "$as_me: failed program was:" >&5
3252
sed 's/^/| /' conftest.$ac_ext >&5
3253
3254
	ac_c_werror_flag=$ac_save_c_werror_flag
3255
	 CFLAGS="-g"
3256
	 cat >conftest.$ac_ext <<_ACEOF
3257
/* confdefs.h.  */
3258
_ACEOF
3259
cat confdefs.h >>conftest.$ac_ext
3260
cat >>conftest.$ac_ext <<_ACEOF
3261
/* end confdefs.h.  */
3262
3263
int
3264
main ()
3265
{
3266
3267
  ;
3268
  return 0;
3269
}
3270
_ACEOF
3271
rm -f conftest.$ac_objext
3272
if { (ac_try="$ac_compile"
3273
case "(($ac_try" in
3274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275
  *) ac_try_echo=$ac_try;;
3276
esac
3277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278
  (eval "$ac_compile") 2>conftest.er1
3279
  ac_status=$?
3280
  grep -v '^ *+' conftest.er1 >conftest.err
3281
  rm -f conftest.er1
3282
  cat conftest.err >&5
3283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
3284
  (exit $ac_status); } && {
3285
	 test -z "$ac_c_werror_flag" ||
3286
	 test ! -s conftest.err
3287
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
3288
  ac_cv_prog_cc_g=yes
3289
else
3290
  echo "$as_me: failed program was:" >&5
3291
sed 's/^/| /' conftest.$ac_ext >&5
3292
3293
3294
fi
3295
3296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297
fi
3298
3299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300
fi
3301
3302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303
   ac_c_werror_flag=$ac_save_c_werror_flag
3304
fi
3305
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3306
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3307
if test "$ac_test_CFLAGS" = set; then
3308
  CFLAGS=$ac_save_CFLAGS
3309
elif test $ac_cv_prog_cc_g = yes; then
3310
  if test "$GCC" = yes; then
3311
    CFLAGS="-g -O2"
3312
  else
3313
    CFLAGS="-g"
3314
  fi
3315
else
3316
  if test "$GCC" = yes; then
3317
    CFLAGS="-O2"
3318
  else
3319
    CFLAGS=
3320
  fi
3321
fi
3322
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3323
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3324
if test "${ac_cv_prog_cc_c89+set}" = set; then
3325
  echo $ECHO_N "(cached) $ECHO_C" >&6
3326
else
3327
  ac_cv_prog_cc_c89=no
3328
ac_save_CC=$CC
3329
cat >conftest.$ac_ext <<_ACEOF
3330
/* confdefs.h.  */
3331
_ACEOF
3332
cat confdefs.h >>conftest.$ac_ext
3333
cat >>conftest.$ac_ext <<_ACEOF
3334
/* end confdefs.h.  */
3335
#include <stdarg.h>
3336
#include <stdio.h>
3337
#include <sys/types.h>
3338
#include <sys/stat.h>
3339
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3340
struct buf { int x; };
3341
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3342
static char *e (p, i)
3343
     char **p;
3344
     int i;
3345
{
3346
  return p[i];
3347
}
3348
static char *f (char * (*g) (char **, int), char **p, ...)
3349
{
3350
  char *s;
3351
  va_list v;
3352
  va_start (v,p);
3353
  s = g (p, va_arg (v,int));
3354
  va_end (v);
3355
  return s;
3356
}
3357
3358
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3359
   function prototypes and stuff, but not '\xHH' hex character constants.
3360
   These don't provoke an error unfortunately, instead are silently treated
3361
   as 'x'.  The following induces an error, until -std is added to get
3362
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3363
   array size at least.  It's necessary to write '\x00'==0 to get something
3364
   that's true only with -std.  */
3365
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3366
3367
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3368
   inside strings and character constants.  */
3369
#define FOO(x) 'x'
3370
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3371
3372
int test (int i, double x);
3373
struct s1 {int (*f) (int a);};
3374
struct s2 {int (*f) (double a);};
3375
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376
int argc;
3377
char **argv;
3378
int
3379
main ()
3380
{
3381
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3382
  ;
3383
  return 0;
3384
}
3385
_ACEOF
3386
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3387
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3388
do
3389
  CC="$ac_save_CC $ac_arg"
3390
  rm -f conftest.$ac_objext
3391
if { (ac_try="$ac_compile"
3392
case "(($ac_try" in
3393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394
  *) ac_try_echo=$ac_try;;
3395
esac
3396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397
  (eval "$ac_compile") 2>conftest.er1
3398
  ac_status=$?
3399
  grep -v '^ *+' conftest.er1 >conftest.err
3400
  rm -f conftest.er1
3401
  cat conftest.err >&5
3402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
3403
  (exit $ac_status); } && {
3404
	 test -z "$ac_c_werror_flag" ||
3405
	 test ! -s conftest.err
3406
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
3407
  ac_cv_prog_cc_c89=$ac_arg
3408
else
3409
  echo "$as_me: failed program was:" >&5
3410
sed 's/^/| /' conftest.$ac_ext >&5
3411
3412
3413
fi
3414
3415
rm -f core conftest.err conftest.$ac_objext
3416
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3417
done
3418
rm -f conftest.$ac_ext
3419
CC=$ac_save_CC
3420
3421
fi
3422
# AC_CACHE_VAL
3423
case "x$ac_cv_prog_cc_c89" in
3424
  x)
3425
    { echo "$as_me:$LINENO: result: none needed" >&5
3426
echo "${ECHO_T}none needed" >&6; } ;;
3427
  xno)
3428
    { echo "$as_me:$LINENO: result: unsupported" >&5
3429
echo "${ECHO_T}unsupported" >&6; } ;;
3430
  *)
3431
    CC="$CC $ac_cv_prog_cc_c89"
3432
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3433
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3434
esac
3435
3436
3437
ac_ext=c
3438
ac_cpp='$CPP $CPPFLAGS'
3439
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1 by Michael Vogt
Import upstream version 0.7.2
3442
3443
depcc="$CC"   am_compiler_list=
3444
3445
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3446
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3447
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3448
  echo $ECHO_N "(cached) $ECHO_C" >&6
3449
else
3450
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3451
  # We make a subdir and do the tests there.  Otherwise we can end up
3452
  # making bogus files that we don't know about and never remove.  For
3453
  # instance it was reported that on HP-UX the gcc test will end up
3454
  # making a dummy file named `D' -- because `-MD' means `put the output
3455
  # in D'.
3456
  mkdir conftest.dir
3457
  # Copy depcomp to subdir because otherwise we won't find it if we're
3458
  # using a relative directory.
3459
  cp "$am_depcomp" conftest.dir
3460
  cd conftest.dir
3461
  # We will build objects and dependencies in a subdirectory because
3462
  # it helps to detect inapplicable dependency modes.  For instance
3463
  # both Tru64's cc and ICC support -MD to output dependencies as a
3464
  # side effect of compilation, but ICC will put the dependencies in
3465
  # the current directory while Tru64 will put them in the object
3466
  # directory.
3467
  mkdir sub
3468
3469
  am_cv_CC_dependencies_compiler_type=none
3470
  if test "$am_compiler_list" = ""; then
3471
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3472
  fi
3473
  for depmode in $am_compiler_list; do
3474
    # Setup a source with many dependencies, because some compilers
3475
    # like to wrap large dependency lists on column 80 (with \), and
3476
    # we should not choose a depcomp mode which is confused by this.
3477
    #
3478
    # We need to recreate these files for each test, as the compiler may
3479
    # overwrite some of them when testing with obscure command lines.
3480
    # This happens at least with the AIX C compiler.
3481
    : > sub/conftest.c
3482
    for i in 1 2 3 4 5 6; do
3483
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3484
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3485
      # Solaris 8's {/usr,}/bin/sh.
3486
      touch sub/conftst$i.h
3487
    done
3488
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3489
3490
    case $depmode in
3491
    nosideeffect)
3492
      # after this tag, mechanisms are not by side-effect, so they'll
3493
      # only be used when explicitly requested
3494
      if test "x$enable_dependency_tracking" = xyes; then
3495
	continue
3496
      else
3497
	break
3498
      fi
3499
      ;;
3500
    none) break ;;
3501
    esac
3502
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3503
    # mode.  It turns out that the SunPro C++ compiler does not properly
3504
    # handle `-M -o', and we need to detect this.
3505
    if depmode=$depmode \
3506
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3507
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3508
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3509
         >/dev/null 2>conftest.err &&
3510
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3511
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3512
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3513
      # icc doesn't choke on unknown options, it will just issue warnings
3514
      # or remarks (even with -Werror).  So we grep stderr for any message
3515
      # that says an option was ignored or not supported.
3516
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3517
      #   icc: Command line warning: ignoring option '-M'; no argument required
3518
      # The diagnosis changed in icc 8.0:
3519
      #   icc: Command line remark: option '-MP' not supported
3520
      if (grep 'ignoring option' conftest.err ||
3521
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3522
        am_cv_CC_dependencies_compiler_type=$depmode
3523
        break
3524
      fi
3525
    fi
3526
  done
3527
3528
  cd ..
3529
  rm -rf conftest.dir
3530
else
3531
  am_cv_CC_dependencies_compiler_type=none
3532
fi
3533
3534
fi
3535
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3536
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3537
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3538
3539
3540
3541
if
3542
  test "x$enable_dependency_tracking" != xno \
3543
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3544
  am__fastdepCC_TRUE=
3545
  am__fastdepCC_FALSE='#'
3546
else
3547
  am__fastdepCC_TRUE='#'
3548
  am__fastdepCC_FALSE=
3549
fi
3550
3551
3552
3553
3554
case "$am__api_version" in
3555
    1.01234)
3556
	{ { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
3557
echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
3558
   { (exit 1); exit 1; }; }
3559
    ;;
3560
    *)
3561
    ;;
3562
esac
3563
3564
if test -n "0.29"; then
3565
    { echo "$as_me:$LINENO: checking for intltool >= 0.29" >&5
3566
echo $ECHO_N "checking for intltool >= 0.29... $ECHO_C" >&6; }
3567
3568
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.29 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
3569
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
3570
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
3571
3572
    { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
3573
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
3574
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
3575
	{ { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.29 or later." >&5
3576
echo "$as_me: error: Your intltool is too old.  You need intltool 0.29 or later." >&2;}
3577
   { (exit 1); exit 1; }; }
3578
fi
3579
3580
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3581
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3582
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3583
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3584
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
3585
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3586
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3587
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3588
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3589
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3590
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3591
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
3592
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3593
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3594
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3595
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3596
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3597
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3598
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
# Use the tools built into the package, not the ones that are installed.
3621
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
3622
3623
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
3624
3625
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
3626
3627
3628
# Extract the first word of "perl", so it can be a program name with args.
3629
set dummy perl; ac_word=$2
3630
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3631
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3632
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
3633
  echo $ECHO_N "(cached) $ECHO_C" >&6
3634
else
3635
  case $INTLTOOL_PERL in
3636
  [\\/]* | ?:[\\/]*)
3637
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
3638
  ;;
3639
  *)
3640
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641
for as_dir in $PATH
3642
do
3643
  IFS=$as_save_IFS
3644
  test -z "$as_dir" && as_dir=.
3645
  for ac_exec_ext in '' $ac_executable_extensions; do
3646
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
3648
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649
    break 2
3650
  fi
3651
done
3652
done
3653
IFS=$as_save_IFS
3654
3655
  ;;
3656
esac
3657
fi
3658
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
3659
if test -n "$INTLTOOL_PERL"; then
3660
  { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
3661
echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
3662
else
3663
  { echo "$as_me:$LINENO: result: no" >&5
3664
echo "${ECHO_T}no" >&6; }
3665
fi
3666
3667
3668
if test -z "$INTLTOOL_PERL"; then
3669
   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
3670
echo "$as_me: error: perl not found; required for intltool" >&2;}
3671
   { (exit 1); exit 1; }; }
3672
fi
3673
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
3674
   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
3675
echo "$as_me: error: perl 5.x required for intltool" >&2;}
3676
   { (exit 1); exit 1; }; }
3677
fi
3678
if test "x" != "xno-xml"; then
3679
   { echo "$as_me:$LINENO: checking for XML::Parser" >&5
3680
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
3681
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
3682
       { echo "$as_me:$LINENO: result: ok" >&5
3683
echo "${ECHO_T}ok" >&6; }
3684
   else
3685
       { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
3686
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
3687
   { (exit 1); exit 1; }; }
1 by Sebastien Bacher
Import upstream version 0.7.1
3688
   fi
3689
fi
3690
1.1.1 by Michael Vogt
Import upstream version 0.7.2
3691
# Substitute ALL_LINGUAS so we can use it in po/Makefile
3692
3693
3694
# Set DATADIRNAME correctly if it is not set yet
3695
# (copied from glib-gettext.m4)
3696
if test -z "$DATADIRNAME"; then
3697
  cat >conftest.$ac_ext <<_ACEOF
3698
/* confdefs.h.  */
3699
_ACEOF
3700
cat confdefs.h >>conftest.$ac_ext
3701
cat >>conftest.$ac_ext <<_ACEOF
3702
/* end confdefs.h.  */
3703
3704
int
3705
main ()
3706
{
3707
extern int _nl_msg_cat_cntr;
3708
                       return _nl_msg_cat_cntr
3709
  ;
3710
  return 0;
3711
}
3712
_ACEOF
3713
rm -f conftest.$ac_objext conftest$ac_exeext
3714
if { (ac_try="$ac_link"
3715
case "(($ac_try" in
3716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717
  *) ac_try_echo=$ac_try;;
3718
esac
3719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720
  (eval "$ac_link") 2>conftest.er1
3721
  ac_status=$?
3722
  grep -v '^ *+' conftest.er1 >conftest.err
3723
  rm -f conftest.er1
3724
  cat conftest.err >&5
3725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726
  (exit $ac_status); } && {
3727
	 test -z "$ac_c_werror_flag" ||
3728
	 test ! -s conftest.err
3729
       } && test -s conftest$ac_exeext &&
3730
       $as_test_x conftest$ac_exeext; then
3731
  DATADIRNAME=share
3732
else
3733
  echo "$as_me: failed program was:" >&5
3734
sed 's/^/| /' conftest.$ac_ext >&5
3735
3736
	case $host in
3737
    *-*-solaris*)
3738
                        { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
3739
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
3740
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
3741
  echo $ECHO_N "(cached) $ECHO_C" >&6
3742
else
3743
  cat >conftest.$ac_ext <<_ACEOF
3744
/* confdefs.h.  */
3745
_ACEOF
3746
cat confdefs.h >>conftest.$ac_ext
3747
cat >>conftest.$ac_ext <<_ACEOF
3748
/* end confdefs.h.  */
3749
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
3750
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3751
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
3752
3753
/* System header to define __stub macros and hopefully few prototypes,
3754
    which can conflict with char bind_textdomain_codeset (); below.
3755
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3756
    <limits.h> exists even on freestanding compilers.  */
3757
3758
#ifdef __STDC__
3759
# include <limits.h>
3760
#else
3761
# include <assert.h>
3762
#endif
3763
3764
#undef bind_textdomain_codeset
3765
3766
/* Override any GCC internal prototype to avoid an error.
3767
   Use char because int might match the return type of a GCC
3768
   builtin and then its argument prototype would still apply.  */
3769
#ifdef __cplusplus
3770
extern "C"
3771
#endif
3772
char bind_textdomain_codeset ();
3773
/* The GNU C library defines this for functions which it implements
3774
    to always fail with ENOSYS.  Some functions are actually named
3775
    something starting with __ and the normal name is an alias.  */
3776
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
3777
choke me
3778
#endif
3779
3780
int
3781
main ()
3782
{
3783
return bind_textdomain_codeset ();
3784
  ;
3785
  return 0;
3786
}
3787
_ACEOF
3788
rm -f conftest.$ac_objext conftest$ac_exeext
3789
if { (ac_try="$ac_link"
3790
case "(($ac_try" in
3791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792
  *) ac_try_echo=$ac_try;;
3793
esac
3794
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795
  (eval "$ac_link") 2>conftest.er1
3796
  ac_status=$?
3797
  grep -v '^ *+' conftest.er1 >conftest.err
3798
  rm -f conftest.er1
3799
  cat conftest.err >&5
3800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801
  (exit $ac_status); } && {
3802
	 test -z "$ac_c_werror_flag" ||
3803
	 test ! -s conftest.err
3804
       } && test -s conftest$ac_exeext &&
3805
       $as_test_x conftest$ac_exeext; then
3806
  ac_cv_func_bind_textdomain_codeset=yes
3807
else
3808
  echo "$as_me: failed program was:" >&5
3809
sed 's/^/| /' conftest.$ac_ext >&5
3810
3811
	ac_cv_func_bind_textdomain_codeset=no
3812
fi
3813
3814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3815
      conftest$ac_exeext conftest.$ac_ext
3816
fi
3817
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
3818
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
3819
if test $ac_cv_func_bind_textdomain_codeset = yes; then
3820
  DATADIRNAME=share
3821
else
3822
  DATADIRNAME=lib
3823
fi
3824
3825
    ;;
3826
    *)
3827
    DATADIRNAME=lib
3828
    ;;
3829
    esac
3830
fi
3831
3832
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3833
      conftest$ac_exeext conftest.$ac_ext
3834
fi
3835
3836
3837
3838
3839
3840
ac_config_commands="$ac_config_commands intltool"
3841
3842
3843
3844
3845
NAUTILUS_REQUIRED=2.10.0
3846
EEL_REQUIRED=2.10.0
3847
GLIB_REQUIRED=2.4.0
3848
3849
DATADIRNAME=share
3850
3851
ac_ext=c
3852
ac_cpp='$CPP $CPPFLAGS'
3853
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856
if test -n "$ac_tool_prefix"; then
3857
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3858
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3859
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3861
if test "${ac_cv_prog_CC+set}" = set; then
3862
  echo $ECHO_N "(cached) $ECHO_C" >&6
3863
else
3864
  if test -n "$CC"; then
3865
  ac_cv_prog_CC="$CC" # Let the user override the test.
3866
else
3867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868
for as_dir in $PATH
3869
do
3870
  IFS=$as_save_IFS
3871
  test -z "$as_dir" && as_dir=.
3872
  for ac_exec_ext in '' $ac_executable_extensions; do
3873
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3875
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876
    break 2
3877
  fi
3878
done
3879
done
3880
IFS=$as_save_IFS
3881
3882
fi
3883
fi
3884
CC=$ac_cv_prog_CC
3885
if test -n "$CC"; then
3886
  { echo "$as_me:$LINENO: result: $CC" >&5
3887
echo "${ECHO_T}$CC" >&6; }
3888
else
3889
  { echo "$as_me:$LINENO: result: no" >&5
3890
echo "${ECHO_T}no" >&6; }
3891
fi
3892
3893
3894
fi
3895
if test -z "$ac_cv_prog_CC"; then
3896
  ac_ct_CC=$CC
3897
  # Extract the first word of "gcc", so it can be a program name with args.
3898
set dummy gcc; ac_word=$2
3899
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3900
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3901
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3902
  echo $ECHO_N "(cached) $ECHO_C" >&6
3903
else
3904
  if test -n "$ac_ct_CC"; then
3905
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3906
else
3907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908
for as_dir in $PATH
3909
do
3910
  IFS=$as_save_IFS
3911
  test -z "$as_dir" && as_dir=.
3912
  for ac_exec_ext in '' $ac_executable_extensions; do
3913
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914
    ac_cv_prog_ac_ct_CC="gcc"
3915
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916
    break 2
3917
  fi
3918
done
3919
done
3920
IFS=$as_save_IFS
3921
3922
fi
3923
fi
3924
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925
if test -n "$ac_ct_CC"; then
3926
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3927
echo "${ECHO_T}$ac_ct_CC" >&6; }
3928
else
3929
  { echo "$as_me:$LINENO: result: no" >&5
3930
echo "${ECHO_T}no" >&6; }
3931
fi
3932
3933
  if test "x$ac_ct_CC" = x; then
3934
    CC=""
3935
  else
3936
    case $cross_compiling:$ac_tool_warned in
3937
yes:)
3938
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3939
whose name does not start with the host triplet.  If you think this
3940
configuration is useful to you, please write to autoconf@gnu.org." >&5
3941
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3942
whose name does not start with the host triplet.  If you think this
3943
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3944
ac_tool_warned=yes ;;
3945
esac
3946
    CC=$ac_ct_CC
3947
  fi
3948
else
3949
  CC="$ac_cv_prog_CC"
3950
fi
3951
3952
if test -z "$CC"; then
3953
          if test -n "$ac_tool_prefix"; then
3954
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3955
set dummy ${ac_tool_prefix}cc; ac_word=$2
3956
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3957
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3958
if test "${ac_cv_prog_CC+set}" = set; then
3959
  echo $ECHO_N "(cached) $ECHO_C" >&6
3960
else
3961
  if test -n "$CC"; then
3962
  ac_cv_prog_CC="$CC" # Let the user override the test.
3963
else
3964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965
for as_dir in $PATH
3966
do
3967
  IFS=$as_save_IFS
3968
  test -z "$as_dir" && as_dir=.
3969
  for ac_exec_ext in '' $ac_executable_extensions; do
3970
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3972
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973
    break 2
3974
  fi
3975
done
3976
done
3977
IFS=$as_save_IFS
3978
3979
fi
3980
fi
3981
CC=$ac_cv_prog_CC
3982
if test -n "$CC"; then
3983
  { echo "$as_me:$LINENO: result: $CC" >&5
3984
echo "${ECHO_T}$CC" >&6; }
3985
else
3986
  { echo "$as_me:$LINENO: result: no" >&5
3987
echo "${ECHO_T}no" >&6; }
3988
fi
3989
3990
3991
  fi
3992
fi
3993
if test -z "$CC"; then
3994
  # Extract the first word of "cc", so it can be a program name with args.
3995
set dummy cc; ac_word=$2
3996
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3997
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3998
if test "${ac_cv_prog_CC+set}" = set; then
3999
  echo $ECHO_N "(cached) $ECHO_C" >&6
4000
else
4001
  if test -n "$CC"; then
4002
  ac_cv_prog_CC="$CC" # Let the user override the test.
4003
else
4004
  ac_prog_rejected=no
4005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006
for as_dir in $PATH
4007
do
4008
  IFS=$as_save_IFS
4009
  test -z "$as_dir" && as_dir=.
4010
  for ac_exec_ext in '' $ac_executable_extensions; do
4011
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4013
       ac_prog_rejected=yes
4014
       continue
4015
     fi
4016
    ac_cv_prog_CC="cc"
4017
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018
    break 2
4019
  fi
4020
done
4021
done
4022
IFS=$as_save_IFS
4023
4024
if test $ac_prog_rejected = yes; then
4025
  # We found a bogon in the path, so make sure we never use it.
4026
  set dummy $ac_cv_prog_CC
4027
  shift
4028
  if test $# != 0; then
4029
    # We chose a different compiler from the bogus one.
4030
    # However, it has the same basename, so the bogon will be chosen
4031
    # first if we set CC to just the basename; use the full file name.
4032
    shift
4033
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4034
  fi
4035
fi
4036
fi
4037
fi
4038
CC=$ac_cv_prog_CC
4039
if test -n "$CC"; then
4040
  { echo "$as_me:$LINENO: result: $CC" >&5
4041
echo "${ECHO_T}$CC" >&6; }
4042
else
4043
  { echo "$as_me:$LINENO: result: no" >&5
4044
echo "${ECHO_T}no" >&6; }
4045
fi
4046
4047
4048
fi
4049
if test -z "$CC"; then
4050
  if test -n "$ac_tool_prefix"; then
4051
  for ac_prog in cl.exe
4052
  do
4053
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4054
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4055
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4056
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4057
if test "${ac_cv_prog_CC+set}" = set; then
4058
  echo $ECHO_N "(cached) $ECHO_C" >&6
4059
else
4060
  if test -n "$CC"; then
4061
  ac_cv_prog_CC="$CC" # Let the user override the test.
4062
else
4063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064
for as_dir in $PATH
4065
do
4066
  IFS=$as_save_IFS
4067
  test -z "$as_dir" && as_dir=.
4068
  for ac_exec_ext in '' $ac_executable_extensions; do
4069
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4071
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072
    break 2
4073
  fi
4074
done
4075
done
4076
IFS=$as_save_IFS
4077
4078
fi
4079
fi
4080
CC=$ac_cv_prog_CC
4081
if test -n "$CC"; then
4082
  { echo "$as_me:$LINENO: result: $CC" >&5
4083
echo "${ECHO_T}$CC" >&6; }
4084
else
4085
  { echo "$as_me:$LINENO: result: no" >&5
4086
echo "${ECHO_T}no" >&6; }
4087
fi
4088
4089
4090
    test -n "$CC" && break
4091
  done
4092
fi
4093
if test -z "$CC"; then
4094
  ac_ct_CC=$CC
4095
  for ac_prog in cl.exe
4096
do
4097
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4098
set dummy $ac_prog; ac_word=$2
4099
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4101
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4102
  echo $ECHO_N "(cached) $ECHO_C" >&6
4103
else
4104
  if test -n "$ac_ct_CC"; then
4105
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4106
else
4107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108
for as_dir in $PATH
4109
do
4110
  IFS=$as_save_IFS
4111
  test -z "$as_dir" && as_dir=.
4112
  for ac_exec_ext in '' $ac_executable_extensions; do
4113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114
    ac_cv_prog_ac_ct_CC="$ac_prog"
4115
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116
    break 2
4117
  fi
4118
done
4119
done
4120
IFS=$as_save_IFS
4121
4122
fi
4123
fi
4124
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4125
if test -n "$ac_ct_CC"; then
4126
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4127
echo "${ECHO_T}$ac_ct_CC" >&6; }
4128
else
4129
  { echo "$as_me:$LINENO: result: no" >&5
4130
echo "${ECHO_T}no" >&6; }
4131
fi
4132
4133
4134
  test -n "$ac_ct_CC" && break
4135
done
4136
4137
  if test "x$ac_ct_CC" = x; then
4138
    CC=""
4139
  else
4140
    case $cross_compiling:$ac_tool_warned in
4141
yes:)
4142
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4143
whose name does not start with the host triplet.  If you think this
4144
configuration is useful to you, please write to autoconf@gnu.org." >&5
4145
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4146
whose name does not start with the host triplet.  If you think this
4147
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4148
ac_tool_warned=yes ;;
4149
esac
4150
    CC=$ac_ct_CC
4151
  fi
4152
fi
4153
4154
fi
4155
4156
4157
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4158
See \`config.log' for more details." >&5
4159
echo "$as_me: error: no acceptable C compiler found in \$PATH
4160
See \`config.log' for more details." >&2;}
4161
   { (exit 1); exit 1; }; }
4162
4163
# Provide some information about the compiler.
4164
echo "$as_me:$LINENO: checking for C compiler version" >&5
4165
ac_compiler=`set X $ac_compile; echo $2`
4166
{ (ac_try="$ac_compiler --version >&5"
4167
case "(($ac_try" in
4168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169
  *) ac_try_echo=$ac_try;;
4170
esac
4171
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172
  (eval "$ac_compiler --version >&5") 2>&5
4173
  ac_status=$?
4174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175
  (exit $ac_status); }
4176
{ (ac_try="$ac_compiler -v >&5"
4177
case "(($ac_try" in
4178
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179
  *) ac_try_echo=$ac_try;;
4180
esac
4181
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182
  (eval "$ac_compiler -v >&5") 2>&5
4183
  ac_status=$?
4184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185
  (exit $ac_status); }
4186
{ (ac_try="$ac_compiler -V >&5"
4187
case "(($ac_try" in
4188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189
  *) ac_try_echo=$ac_try;;
4190
esac
4191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192
  (eval "$ac_compiler -V >&5") 2>&5
4193
  ac_status=$?
4194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195
  (exit $ac_status); }
4196
4197
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4198
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4199
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4200
  echo $ECHO_N "(cached) $ECHO_C" >&6
4201
else
4202
  cat >conftest.$ac_ext <<_ACEOF
4203
/* confdefs.h.  */
4204
_ACEOF
4205
cat confdefs.h >>conftest.$ac_ext
4206
cat >>conftest.$ac_ext <<_ACEOF
4207
/* end confdefs.h.  */
4208
4209
int
4210
main ()
4211
{
4212
#ifndef __GNUC__
4213
       choke me
4214
#endif
4215
4216
  ;
4217
  return 0;
4218
}
4219
_ACEOF
4220
rm -f conftest.$ac_objext
4221
if { (ac_try="$ac_compile"
4222
case "(($ac_try" in
4223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224
  *) ac_try_echo=$ac_try;;
4225
esac
4226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227
  (eval "$ac_compile") 2>conftest.er1
4228
  ac_status=$?
4229
  grep -v '^ *+' conftest.er1 >conftest.err
4230
  rm -f conftest.er1
4231
  cat conftest.err >&5
4232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233
  (exit $ac_status); } && {
4234
	 test -z "$ac_c_werror_flag" ||
4235
	 test ! -s conftest.err
4236
       } && test -s conftest.$ac_objext; then
4237
  ac_compiler_gnu=yes
4238
else
4239
  echo "$as_me: failed program was:" >&5
4240
sed 's/^/| /' conftest.$ac_ext >&5
4241
4242
	ac_compiler_gnu=no
4243
fi
4244
4245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4247
4248
fi
4249
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4250
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4251
GCC=`test $ac_compiler_gnu = yes && echo yes`
4252
ac_test_CFLAGS=${CFLAGS+set}
4253
ac_save_CFLAGS=$CFLAGS
4254
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4255
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4256
if test "${ac_cv_prog_cc_g+set}" = set; then
4257
  echo $ECHO_N "(cached) $ECHO_C" >&6
4258
else
4259
  ac_save_c_werror_flag=$ac_c_werror_flag
4260
   ac_c_werror_flag=yes
4261
   ac_cv_prog_cc_g=no
4262
   CFLAGS="-g"
4263
   cat >conftest.$ac_ext <<_ACEOF
4264
/* confdefs.h.  */
4265
_ACEOF
4266
cat confdefs.h >>conftest.$ac_ext
4267
cat >>conftest.$ac_ext <<_ACEOF
4268
/* end confdefs.h.  */
4269
4270
int
4271
main ()
4272
{
4273
4274
  ;
4275
  return 0;
4276
}
4277
_ACEOF
4278
rm -f conftest.$ac_objext
4279
if { (ac_try="$ac_compile"
4280
case "(($ac_try" in
4281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282
  *) ac_try_echo=$ac_try;;
4283
esac
4284
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285
  (eval "$ac_compile") 2>conftest.er1
4286
  ac_status=$?
4287
  grep -v '^ *+' conftest.er1 >conftest.err
4288
  rm -f conftest.er1
4289
  cat conftest.err >&5
4290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291
  (exit $ac_status); } && {
4292
	 test -z "$ac_c_werror_flag" ||
4293
	 test ! -s conftest.err
4294
       } && test -s conftest.$ac_objext; then
4295
  ac_cv_prog_cc_g=yes
4296
else
4297
  echo "$as_me: failed program was:" >&5
4298
sed 's/^/| /' conftest.$ac_ext >&5
4299
4300
	CFLAGS=""
4301
      cat >conftest.$ac_ext <<_ACEOF
4302
/* confdefs.h.  */
4303
_ACEOF
4304
cat confdefs.h >>conftest.$ac_ext
4305
cat >>conftest.$ac_ext <<_ACEOF
4306
/* end confdefs.h.  */
4307
4308
int
4309
main ()
4310
{
4311
4312
  ;
4313
  return 0;
4314
}
4315
_ACEOF
4316
rm -f conftest.$ac_objext
4317
if { (ac_try="$ac_compile"
4318
case "(($ac_try" in
4319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320
  *) ac_try_echo=$ac_try;;
4321
esac
4322
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323
  (eval "$ac_compile") 2>conftest.er1
4324
  ac_status=$?
4325
  grep -v '^ *+' conftest.er1 >conftest.err
4326
  rm -f conftest.er1
4327
  cat conftest.err >&5
4328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329
  (exit $ac_status); } && {
4330
	 test -z "$ac_c_werror_flag" ||
4331
	 test ! -s conftest.err
4332
       } && test -s conftest.$ac_objext; then
4333
  :
4334
else
4335
  echo "$as_me: failed program was:" >&5
4336
sed 's/^/| /' conftest.$ac_ext >&5
4337
4338
	ac_c_werror_flag=$ac_save_c_werror_flag
4339
	 CFLAGS="-g"
4340
	 cat >conftest.$ac_ext <<_ACEOF
4341
/* confdefs.h.  */
4342
_ACEOF
4343
cat confdefs.h >>conftest.$ac_ext
4344
cat >>conftest.$ac_ext <<_ACEOF
4345
/* end confdefs.h.  */
4346
4347
int
4348
main ()
4349
{
4350
4351
  ;
4352
  return 0;
4353
}
4354
_ACEOF
4355
rm -f conftest.$ac_objext
4356
if { (ac_try="$ac_compile"
4357
case "(($ac_try" in
4358
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359
  *) ac_try_echo=$ac_try;;
4360
esac
4361
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362
  (eval "$ac_compile") 2>conftest.er1
4363
  ac_status=$?
4364
  grep -v '^ *+' conftest.er1 >conftest.err
4365
  rm -f conftest.er1
4366
  cat conftest.err >&5
4367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368
  (exit $ac_status); } && {
4369
	 test -z "$ac_c_werror_flag" ||
4370
	 test ! -s conftest.err
4371
       } && test -s conftest.$ac_objext; then
4372
  ac_cv_prog_cc_g=yes
4373
else
4374
  echo "$as_me: failed program was:" >&5
4375
sed 's/^/| /' conftest.$ac_ext >&5
4376
4377
4378
fi
4379
4380
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381
fi
4382
4383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384
fi
4385
4386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387
   ac_c_werror_flag=$ac_save_c_werror_flag
4388
fi
4389
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4390
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4391
if test "$ac_test_CFLAGS" = set; then
4392
  CFLAGS=$ac_save_CFLAGS
4393
elif test $ac_cv_prog_cc_g = yes; then
4394
  if test "$GCC" = yes; then
4395
    CFLAGS="-g -O2"
4396
  else
4397
    CFLAGS="-g"
4398
  fi
4399
else
4400
  if test "$GCC" = yes; then
4401
    CFLAGS="-O2"
4402
  else
4403
    CFLAGS=
4404
  fi
4405
fi
4406
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4407
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4408
if test "${ac_cv_prog_cc_c89+set}" = set; then
4409
  echo $ECHO_N "(cached) $ECHO_C" >&6
4410
else
4411
  ac_cv_prog_cc_c89=no
4412
ac_save_CC=$CC
4413
cat >conftest.$ac_ext <<_ACEOF
4414
/* confdefs.h.  */
4415
_ACEOF
4416
cat confdefs.h >>conftest.$ac_ext
4417
cat >>conftest.$ac_ext <<_ACEOF
4418
/* end confdefs.h.  */
4419
#include <stdarg.h>
4420
#include <stdio.h>
4421
#include <sys/types.h>
4422
#include <sys/stat.h>
4423
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4424
struct buf { int x; };
4425
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4426
static char *e (p, i)
4427
     char **p;
4428
     int i;
4429
{
4430
  return p[i];
4431
}
4432
static char *f (char * (*g) (char **, int), char **p, ...)
4433
{
4434
  char *s;
4435
  va_list v;
4436
  va_start (v,p);
4437
  s = g (p, va_arg (v,int));
4438
  va_end (v);
4439
  return s;
4440
}
4441
4442
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4443
   function prototypes and stuff, but not '\xHH' hex character constants.
4444
   These don't provoke an error unfortunately, instead are silently treated
4445
   as 'x'.  The following induces an error, until -std is added to get
4446
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4447
   array size at least.  It's necessary to write '\x00'==0 to get something
4448
   that's true only with -std.  */
4449
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4450
4451
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4452
   inside strings and character constants.  */
4453
#define FOO(x) 'x'
4454
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4455
4456
int test (int i, double x);
4457
struct s1 {int (*f) (int a);};
4458
struct s2 {int (*f) (double a);};
4459
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4460
int argc;
4461
char **argv;
4462
int
4463
main ()
4464
{
4465
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4466
  ;
4467
  return 0;
4468
}
4469
_ACEOF
4470
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4471
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4472
do
4473
  CC="$ac_save_CC $ac_arg"
4474
  rm -f conftest.$ac_objext
4475
if { (ac_try="$ac_compile"
4476
case "(($ac_try" in
4477
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478
  *) ac_try_echo=$ac_try;;
4479
esac
4480
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481
  (eval "$ac_compile") 2>conftest.er1
4482
  ac_status=$?
4483
  grep -v '^ *+' conftest.er1 >conftest.err
4484
  rm -f conftest.er1
4485
  cat conftest.err >&5
4486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487
  (exit $ac_status); } && {
4488
	 test -z "$ac_c_werror_flag" ||
4489
	 test ! -s conftest.err
4490
       } && test -s conftest.$ac_objext; then
4491
  ac_cv_prog_cc_c89=$ac_arg
4492
else
4493
  echo "$as_me: failed program was:" >&5
4494
sed 's/^/| /' conftest.$ac_ext >&5
4495
4496
4497
fi
4498
4499
rm -f core conftest.err conftest.$ac_objext
4500
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4501
done
4502
rm -f conftest.$ac_ext
4503
CC=$ac_save_CC
4504
4505
fi
4506
# AC_CACHE_VAL
4507
case "x$ac_cv_prog_cc_c89" in
4508
  x)
4509
    { echo "$as_me:$LINENO: result: none needed" >&5
4510
echo "${ECHO_T}none needed" >&6; } ;;
4511
  xno)
4512
    { echo "$as_me:$LINENO: result: unsupported" >&5
4513
echo "${ECHO_T}unsupported" >&6; } ;;
4514
  *)
4515
    CC="$CC $ac_cv_prog_cc_c89"
4516
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4517
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4518
esac
4519
4520
4521
ac_ext=c
4522
ac_cpp='$CPP $CPPFLAGS'
4523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1 by Sebastien Bacher
Import upstream version 0.7.1
4526
4527
depcc="$CC"   am_compiler_list=
4528
4529
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4530
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4531
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4532
  echo $ECHO_N "(cached) $ECHO_C" >&6
4533
else
4534
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4535
  # We make a subdir and do the tests there.  Otherwise we can end up
4536
  # making bogus files that we don't know about and never remove.  For
4537
  # instance it was reported that on HP-UX the gcc test will end up
4538
  # making a dummy file named `D' -- because `-MD' means `put the output
4539
  # in D'.
4540
  mkdir conftest.dir
4541
  # Copy depcomp to subdir because otherwise we won't find it if we're
4542
  # using a relative directory.
4543
  cp "$am_depcomp" conftest.dir
4544
  cd conftest.dir
4545
  # We will build objects and dependencies in a subdirectory because
4546
  # it helps to detect inapplicable dependency modes.  For instance
4547
  # both Tru64's cc and ICC support -MD to output dependencies as a
4548
  # side effect of compilation, but ICC will put the dependencies in
4549
  # the current directory while Tru64 will put them in the object
4550
  # directory.
4551
  mkdir sub
4552
4553
  am_cv_CC_dependencies_compiler_type=none
4554
  if test "$am_compiler_list" = ""; then
4555
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4556
  fi
4557
  for depmode in $am_compiler_list; do
4558
    # Setup a source with many dependencies, because some compilers
4559
    # like to wrap large dependency lists on column 80 (with \), and
4560
    # we should not choose a depcomp mode which is confused by this.
4561
    #
4562
    # We need to recreate these files for each test, as the compiler may
4563
    # overwrite some of them when testing with obscure command lines.
4564
    # This happens at least with the AIX C compiler.
4565
    : > sub/conftest.c
4566
    for i in 1 2 3 4 5 6; do
4567
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4568
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4569
      # Solaris 8's {/usr,}/bin/sh.
4570
      touch sub/conftst$i.h
4571
    done
4572
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4573
4574
    case $depmode in
4575
    nosideeffect)
4576
      # after this tag, mechanisms are not by side-effect, so they'll
4577
      # only be used when explicitly requested
4578
      if test "x$enable_dependency_tracking" = xyes; then
4579
	continue
4580
      else
4581
	break
4582
      fi
4583
      ;;
4584
    none) break ;;
4585
    esac
4586
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4587
    # mode.  It turns out that the SunPro C++ compiler does not properly
4588
    # handle `-M -o', and we need to detect this.
4589
    if depmode=$depmode \
4590
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4591
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4592
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4593
         >/dev/null 2>conftest.err &&
4594
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4595
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4596
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4597
      # icc doesn't choke on unknown options, it will just issue warnings
4598
      # or remarks (even with -Werror).  So we grep stderr for any message
4599
      # that says an option was ignored or not supported.
4600
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4601
      #   icc: Command line warning: ignoring option '-M'; no argument required
4602
      # The diagnosis changed in icc 8.0:
4603
      #   icc: Command line remark: option '-MP' not supported
4604
      if (grep 'ignoring option' conftest.err ||
4605
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4606
        am_cv_CC_dependencies_compiler_type=$depmode
4607
        break
4608
      fi
4609
    fi
4610
  done
4611
4612
  cd ..
4613
  rm -rf conftest.dir
4614
else
4615
  am_cv_CC_dependencies_compiler_type=none
4616
fi
4617
4618
fi
4619
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4620
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4621
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4622
4623
4624
4625
if
4626
  test "x$enable_dependency_tracking" != xno \
4627
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4628
  am__fastdepCC_TRUE=
4629
  am__fastdepCC_FALSE='#'
4630
else
4631
  am__fastdepCC_TRUE='#'
4632
  am__fastdepCC_FALSE=
4633
fi
4634
4635
4636
# Check whether --enable-shared was given.
4637
if test "${enable_shared+set}" = set; then
4638
  enableval=$enable_shared; p=${PACKAGE-default}
4639
    case $enableval in
4640
    yes) enable_shared=yes ;;
4641
    no) enable_shared=no ;;
4642
    *)
4643
      enable_shared=no
4644
      # Look at the argument we got.  We use all the common list separators.
4645
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4646
      for pkg in $enableval; do
4647
	IFS="$lt_save_ifs"
4648
	if test "X$pkg" = "X$p"; then
4649
	  enable_shared=yes
4650
	fi
4651
      done
4652
      IFS="$lt_save_ifs"
4653
      ;;
4654
    esac
4655
else
4656
  enable_shared=yes
4657
fi
4658
4659
4660
# Check whether --enable-static was given.
4661
if test "${enable_static+set}" = set; then
4662
  enableval=$enable_static; p=${PACKAGE-default}
4663
    case $enableval in
4664
    yes) enable_static=yes ;;
4665
    no) enable_static=no ;;
4666
    *)
4667
     enable_static=no
4668
      # Look at the argument we got.  We use all the common list separators.
4669
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4670
      for pkg in $enableval; do
4671
	IFS="$lt_save_ifs"
4672
	if test "X$pkg" = "X$p"; then
4673
	  enable_static=yes
4674
	fi
4675
      done
4676
      IFS="$lt_save_ifs"
4677
      ;;
4678
    esac
4679
else
4680
  enable_static=yes
4681
fi
4682
4683
4684
# Check whether --enable-fast-install was given.
4685
if test "${enable_fast_install+set}" = set; then
4686
  enableval=$enable_fast_install; p=${PACKAGE-default}
4687
    case $enableval in
4688
    yes) enable_fast_install=yes ;;
4689
    no) enable_fast_install=no ;;
4690
    *)
4691
      enable_fast_install=no
4692
      # Look at the argument we got.  We use all the common list separators.
4693
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4694
      for pkg in $enableval; do
4695
	IFS="$lt_save_ifs"
4696
	if test "X$pkg" = "X$p"; then
4697
	  enable_fast_install=yes
4698
	fi
4699
      done
4700
      IFS="$lt_save_ifs"
4701
      ;;
4702
    esac
4703
else
4704
  enable_fast_install=yes
4705
fi
4706
4707
4708
# Make sure we can run config.sub.
4709
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4710
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4711
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4712
   { (exit 1); exit 1; }; }
4713
4714
{ echo "$as_me:$LINENO: checking build system type" >&5
4715
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4716
if test "${ac_cv_build+set}" = set; then
4717
  echo $ECHO_N "(cached) $ECHO_C" >&6
4718
else
4719
  ac_build_alias=$build_alias
4720
test "x$ac_build_alias" = x &&
4721
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4722
test "x$ac_build_alias" = x &&
4723
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4724
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4725
   { (exit 1); exit 1; }; }
4726
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4727
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4728
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4729
   { (exit 1); exit 1; }; }
4730
4731
fi
4732
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4733
echo "${ECHO_T}$ac_cv_build" >&6; }
4734
case $ac_cv_build in
4735
*-*-*) ;;
4736
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4737
echo "$as_me: error: invalid value of canonical build" >&2;}
4738
   { (exit 1); exit 1; }; };;
4739
esac
4740
build=$ac_cv_build
4741
ac_save_IFS=$IFS; IFS='-'
4742
set x $ac_cv_build
4743
shift
4744
build_cpu=$1
4745
build_vendor=$2
4746
shift; shift
4747
# Remember, the first character of IFS is used to create $*,
4748
# except with old shells:
4749
build_os=$*
4750
IFS=$ac_save_IFS
4751
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4752
4753
4754
{ echo "$as_me:$LINENO: checking host system type" >&5
4755
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4756
if test "${ac_cv_host+set}" = set; then
4757
  echo $ECHO_N "(cached) $ECHO_C" >&6
4758
else
4759
  if test "x$host_alias" = x; then
4760
  ac_cv_host=$ac_cv_build
4761
else
4762
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4763
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4764
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4765
   { (exit 1); exit 1; }; }
4766
fi
4767
4768
fi
4769
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4770
echo "${ECHO_T}$ac_cv_host" >&6; }
4771
case $ac_cv_host in
4772
*-*-*) ;;
4773
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4774
echo "$as_me: error: invalid value of canonical host" >&2;}
4775
   { (exit 1); exit 1; }; };;
4776
esac
4777
host=$ac_cv_host
4778
ac_save_IFS=$IFS; IFS='-'
4779
set x $ac_cv_host
4780
shift
4781
host_cpu=$1
4782
host_vendor=$2
4783
shift; shift
4784
# Remember, the first character of IFS is used to create $*,
4785
# except with old shells:
4786
host_os=$*
4787
IFS=$ac_save_IFS
4788
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4789
4790
4791
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4792
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4793
if test "${lt_cv_path_SED+set}" = set; then
4794
  echo $ECHO_N "(cached) $ECHO_C" >&6
4795
else
4796
  # Loop through the user's path and test for sed and gsed.
4797
# Then use that list of sed's as ones to test for truncation.
4798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799
for as_dir in $PATH
4800
do
4801
  IFS=$as_save_IFS
4802
  test -z "$as_dir" && as_dir=.
4803
  for lt_ac_prog in sed gsed; do
4804
    for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
4805
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
4806
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4807
      fi
4808
    done
4809
  done
4810
done
1.1.1 by Michael Vogt
Import upstream version 0.7.2
4811
IFS=$as_save_IFS
1 by Sebastien Bacher
Import upstream version 0.7.1
4812
lt_ac_max=0
4813
lt_ac_count=0
4814
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4815
# along with /bin/sed that truncates output.
4816
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4817
  test ! -f $lt_ac_sed && continue
4818
  cat /dev/null > conftest.in
4819
  lt_ac_count=0
4820
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4821
  # Check for GNU sed and select it if it is found.
4822
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4823
    lt_cv_path_SED=$lt_ac_sed
4824
    break
4825
  fi
4826
  while true; do
4827
    cat conftest.in conftest.in >conftest.tmp
4828
    mv conftest.tmp conftest.in
4829
    cp conftest.in conftest.nl
4830
    echo >>conftest.nl
4831
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4832
    cmp -s conftest.out conftest.nl || break
4833
    # 10000 chars as input seems more than enough
4834
    test $lt_ac_count -gt 10 && break
4835
    lt_ac_count=`expr $lt_ac_count + 1`
4836
    if test $lt_ac_count -gt $lt_ac_max; then
4837
      lt_ac_max=$lt_ac_count
4838
      lt_cv_path_SED=$lt_ac_sed
4839
    fi
4840
  done
4841
done
4842
4843
fi
4844
4845
SED=$lt_cv_path_SED
1.1.1 by Michael Vogt
Import upstream version 0.7.2
4846
1 by Sebastien Bacher
Import upstream version 0.7.1
4847
{ echo "$as_me:$LINENO: result: $SED" >&5
4848
echo "${ECHO_T}$SED" >&6; }
4849
4850
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4851
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4852
if test "${ac_cv_path_GREP+set}" = set; then
4853
  echo $ECHO_N "(cached) $ECHO_C" >&6
4854
else
4855
  # Extract the first word of "grep ggrep" to use in msg output
4856
if test -z "$GREP"; then
4857
set dummy grep ggrep; ac_prog_name=$2
4858
if test "${ac_cv_path_GREP+set}" = set; then
4859
  echo $ECHO_N "(cached) $ECHO_C" >&6
4860
else
4861
  ac_path_GREP_found=false
4862
# Loop through the user's path and test for each of PROGNAME-LIST
4863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4865
do
4866
  IFS=$as_save_IFS
4867
  test -z "$as_dir" && as_dir=.
4868
  for ac_prog in grep ggrep; do
4869
  for ac_exec_ext in '' $ac_executable_extensions; do
4870
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
4871
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
1 by Sebastien Bacher
Import upstream version 0.7.1
4872
    # Check for GNU ac_path_GREP and select it if it is found.
4873
  # Check for GNU $ac_path_GREP
4874
case `"$ac_path_GREP" --version 2>&1` in
4875
*GNU*)
4876
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4877
*)
4878
  ac_count=0
4879
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4880
  while :
4881
  do
4882
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4883
    mv "conftest.tmp" "conftest.in"
4884
    cp "conftest.in" "conftest.nl"
4885
    echo 'GREP' >> "conftest.nl"
4886
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4887
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4888
    ac_count=`expr $ac_count + 1`
4889
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4890
      # Best one so far, save it but keep looking for a better one
4891
      ac_cv_path_GREP="$ac_path_GREP"
4892
      ac_path_GREP_max=$ac_count
4893
    fi
4894
    # 10*(2^10) chars as input seems more than enough
4895
    test $ac_count -gt 10 && break
4896
  done
4897
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4898
esac
4899
4900
4901
    $ac_path_GREP_found && break 3
4902
  done
4903
done
4904
4905
done
4906
IFS=$as_save_IFS
4907
4908
4909
fi
4910
4911
GREP="$ac_cv_path_GREP"
4912
if test -z "$GREP"; then
4913
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4914
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4915
   { (exit 1); exit 1; }; }
4916
fi
4917
4918
else
4919
  ac_cv_path_GREP=$GREP
4920
fi
4921
4922
4923
fi
4924
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4925
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4926
 GREP="$ac_cv_path_GREP"
4927
4928
4929
{ echo "$as_me:$LINENO: checking for egrep" >&5
4930
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4931
if test "${ac_cv_path_EGREP+set}" = set; then
4932
  echo $ECHO_N "(cached) $ECHO_C" >&6
4933
else
4934
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4935
   then ac_cv_path_EGREP="$GREP -E"
4936
   else
4937
     # Extract the first word of "egrep" to use in msg output
4938
if test -z "$EGREP"; then
4939
set dummy egrep; ac_prog_name=$2
4940
if test "${ac_cv_path_EGREP+set}" = set; then
4941
  echo $ECHO_N "(cached) $ECHO_C" >&6
4942
else
4943
  ac_path_EGREP_found=false
4944
# Loop through the user's path and test for each of PROGNAME-LIST
4945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4947
do
4948
  IFS=$as_save_IFS
4949
  test -z "$as_dir" && as_dir=.
4950
  for ac_prog in egrep; do
4951
  for ac_exec_ext in '' $ac_executable_extensions; do
4952
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
4953
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
1 by Sebastien Bacher
Import upstream version 0.7.1
4954
    # Check for GNU ac_path_EGREP and select it if it is found.
4955
  # Check for GNU $ac_path_EGREP
4956
case `"$ac_path_EGREP" --version 2>&1` in
4957
*GNU*)
4958
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4959
*)
4960
  ac_count=0
4961
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4962
  while :
4963
  do
4964
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4965
    mv "conftest.tmp" "conftest.in"
4966
    cp "conftest.in" "conftest.nl"
4967
    echo 'EGREP' >> "conftest.nl"
4968
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4969
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4970
    ac_count=`expr $ac_count + 1`
4971
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4972
      # Best one so far, save it but keep looking for a better one
4973
      ac_cv_path_EGREP="$ac_path_EGREP"
4974
      ac_path_EGREP_max=$ac_count
4975
    fi
4976
    # 10*(2^10) chars as input seems more than enough
4977
    test $ac_count -gt 10 && break
4978
  done
4979
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4980
esac
4981
4982
4983
    $ac_path_EGREP_found && break 3
4984
  done
4985
done
4986
4987
done
4988
IFS=$as_save_IFS
4989
4990
4991
fi
4992
4993
EGREP="$ac_cv_path_EGREP"
4994
if test -z "$EGREP"; then
4995
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4996
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4997
   { (exit 1); exit 1; }; }
4998
fi
4999
5000
else
5001
  ac_cv_path_EGREP=$EGREP
5002
fi
5003
5004
5005
   fi
5006
fi
5007
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5008
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5009
 EGREP="$ac_cv_path_EGREP"
5010
5011
5012
5013
# Check whether --with-gnu-ld was given.
5014
if test "${with_gnu_ld+set}" = set; then
5015
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5016
else
5017
  with_gnu_ld=no
5018
fi
5019
5020
ac_prog=ld
5021
if test "$GCC" = yes; then
5022
  # Check if gcc -print-prog-name=ld gives a path.
5023
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5024
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5025
  case $host in
5026
  *-*-mingw*)
5027
    # gcc leaves a trailing carriage return which upsets mingw
5028
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5029
  *)
5030
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5031
  esac
5032
  case $ac_prog in
5033
    # Accept absolute paths.
5034
    [\\/]* | ?:[\\/]*)
5035
      re_direlt='/[^/][^/]*/\.\./'
5036
      # Canonicalize the pathname of ld
5037
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5038
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5039
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5040
      done
5041
      test -z "$LD" && LD="$ac_prog"
5042
      ;;
5043
  "")
5044
    # If it fails, then pretend we aren't using GCC.
5045
    ac_prog=ld
5046
    ;;
5047
  *)
5048
    # If it is relative, then search for the first ld in PATH.
5049
    with_gnu_ld=unknown
5050
    ;;
5051
  esac
5052
elif test "$with_gnu_ld" = yes; then
5053
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5054
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5055
else
5056
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5057
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5058
fi
5059
if test "${lt_cv_path_LD+set}" = set; then
5060
  echo $ECHO_N "(cached) $ECHO_C" >&6
5061
else
5062
  if test -z "$LD"; then
5063
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5064
  for ac_dir in $PATH; do
5065
    IFS="$lt_save_ifs"
5066
    test -z "$ac_dir" && ac_dir=.
5067
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5068
      lt_cv_path_LD="$ac_dir/$ac_prog"
5069
      # Check to see if the program is GNU ld.  I'd rather use --version,
5070
      # but apparently some variants of GNU ld only accept -v.
5071
      # Break only if it was the GNU/non-GNU ld that we prefer.
5072
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5073
      *GNU* | *'with BFD'*)
5074
	test "$with_gnu_ld" != no && break
5075
	;;
5076
      *)
5077
	test "$with_gnu_ld" != yes && break
5078
	;;
5079
      esac
5080
    fi
5081
  done
5082
  IFS="$lt_save_ifs"
5083
else
5084
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5085
fi
5086
fi
5087
5088
LD="$lt_cv_path_LD"
5089
if test -n "$LD"; then
5090
  { echo "$as_me:$LINENO: result: $LD" >&5
5091
echo "${ECHO_T}$LD" >&6; }
5092
else
5093
  { echo "$as_me:$LINENO: result: no" >&5
5094
echo "${ECHO_T}no" >&6; }
5095
fi
5096
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5097
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5098
   { (exit 1); exit 1; }; }
5099
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5100
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5101
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5102
  echo $ECHO_N "(cached) $ECHO_C" >&6
5103
else
5104
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5105
case `$LD -v 2>&1 </dev/null` in
5106
*GNU* | *'with BFD'*)
5107
  lt_cv_prog_gnu_ld=yes
5108
  ;;
5109
*)
5110
  lt_cv_prog_gnu_ld=no
5111
  ;;
5112
esac
5113
fi
5114
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5115
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5116
with_gnu_ld=$lt_cv_prog_gnu_ld
5117
5118
5119
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5120
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5121
if test "${lt_cv_ld_reload_flag+set}" = set; then
5122
  echo $ECHO_N "(cached) $ECHO_C" >&6
5123
else
5124
  lt_cv_ld_reload_flag='-r'
5125
fi
5126
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5127
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5128
reload_flag=$lt_cv_ld_reload_flag
5129
case $reload_flag in
5130
"" | " "*) ;;
5131
*) reload_flag=" $reload_flag" ;;
5132
esac
5133
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5134
case $host_os in
5135
  darwin*)
5136
    if test "$GCC" = yes; then
5137
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5138
    else
5139
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5140
    fi
5141
    ;;
5142
esac
5143
5144
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5145
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5146
if test "${lt_cv_path_NM+set}" = set; then
5147
  echo $ECHO_N "(cached) $ECHO_C" >&6
5148
else
5149
  if test -n "$NM"; then
5150
  # Let the user override the test.
5151
  lt_cv_path_NM="$NM"
5152
else
5153
  lt_nm_to_check="${ac_tool_prefix}nm"
5154
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5155
    lt_nm_to_check="$lt_nm_to_check nm"
5156
  fi
5157
  for lt_tmp_nm in $lt_nm_to_check; do
5158
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5159
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5160
      IFS="$lt_save_ifs"
5161
      test -z "$ac_dir" && ac_dir=.
5162
      tmp_nm="$ac_dir/$lt_tmp_nm"
5163
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5164
	# Check to see if the nm accepts a BSD-compat flag.
5165
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5166
	#   nm: unknown option "B" ignored
5167
	# Tru64's nm complains that /dev/null is an invalid object file
5168
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5169
	*/dev/null* | *'Invalid file or object type'*)
5170
	  lt_cv_path_NM="$tmp_nm -B"
5171
	  break
5172
	  ;;
5173
	*)
5174
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5175
	  */dev/null*)
5176
	    lt_cv_path_NM="$tmp_nm -p"
5177
	    break
5178
	    ;;
5179
	  *)
5180
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5181
	    continue # so that we can try to find one that supports BSD flags
5182
	    ;;
5183
	  esac
5184
	  ;;
5185
	esac
5186
      fi
5187
    done
5188
    IFS="$lt_save_ifs"
5189
  done
5190
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5191
fi
5192
fi
5193
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5194
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5195
NM="$lt_cv_path_NM"
5196
5197
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5198
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5199
LN_S=$as_ln_s
5200
if test "$LN_S" = "ln -s"; then
5201
  { echo "$as_me:$LINENO: result: yes" >&5
5202
echo "${ECHO_T}yes" >&6; }
5203
else
5204
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5205
echo "${ECHO_T}no, using $LN_S" >&6; }
5206
fi
5207
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5208
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5209
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1 by Sebastien Bacher
Import upstream version 0.7.1
5210
if test "${lt_cv_deplibs_check_method+set}" = set; then
5211
  echo $ECHO_N "(cached) $ECHO_C" >&6
5212
else
5213
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5214
lt_cv_file_magic_test_file=
5215
lt_cv_deplibs_check_method='unknown'
5216
# Need to set the preceding variable on all platforms that support
5217
# interlibrary dependencies.
5218
# 'none' -- dependencies not supported.
5219
# `unknown' -- same as none, but documents that we really don't know.
5220
# 'pass_all' -- all dependencies passed with no checks.
5221
# 'test_compile' -- check by making test program.
5222
# 'file_magic [[regex]]' -- check by looking for files in library path
5223
# which responds to the $file_magic_cmd with a given extended regex.
5224
# If you have `file' or equivalent on your system and you're not sure
5225
# whether `pass_all' will *always* work, you probably want this one.
5226
5227
case $host_os in
5228
aix4* | aix5*)
5229
  lt_cv_deplibs_check_method=pass_all
5230
  ;;
5231
5232
beos*)
5233
  lt_cv_deplibs_check_method=pass_all
5234
  ;;
5235
5236
bsdi[45]*)
5237
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5238
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5239
  lt_cv_file_magic_test_file=/shlib/libc.so
5240
  ;;
5241
5242
cygwin*)
5243
  # func_win32_libid is a shell function defined in ltmain.sh
5244
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5245
  lt_cv_file_magic_cmd='func_win32_libid'
5246
  ;;
5247
5248
mingw* | pw32*)
5249
  # Base MSYS/MinGW do not provide the 'file' command needed by
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5250
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5251
  # unless we find 'file', for example because we are cross-compiling.
5252
  if ( file / ) >/dev/null 2>&1; then
5253
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5254
    lt_cv_file_magic_cmd='func_win32_libid'
5255
  else
5256
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5257
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5258
  fi
1 by Sebastien Bacher
Import upstream version 0.7.1
5259
  ;;
5260
5261
darwin* | rhapsody*)
5262
  lt_cv_deplibs_check_method=pass_all
5263
  ;;
5264
5265
freebsd* | dragonfly*)
5266
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5267
    case $host_cpu in
5268
    i*86 )
5269
      # Not sure whether the presence of OpenBSD here was a mistake.
5270
      # Let's accept both of them until this is cleared up.
5271
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5272
      lt_cv_file_magic_cmd=/usr/bin/file
5273
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5274
      ;;
5275
    esac
5276
  else
5277
    lt_cv_deplibs_check_method=pass_all
5278
  fi
5279
  ;;
5280
5281
gnu*)
5282
  lt_cv_deplibs_check_method=pass_all
5283
  ;;
5284
5285
hpux10.20* | hpux11*)
5286
  lt_cv_file_magic_cmd=/usr/bin/file
5287
  case $host_cpu in
5288
  ia64*)
5289
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5290
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5291
    ;;
5292
  hppa*64*)
5293
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5294
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5295
    ;;
5296
  *)
5297
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5298
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5299
    ;;
5300
  esac
5301
  ;;
5302
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5303
interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
5304
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5305
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5306
  ;;
5307
5308
irix5* | irix6* | nonstopux*)
5309
  case $LD in
5310
  *-32|*"-32 ") libmagic=32-bit;;
5311
  *-n32|*"-n32 ") libmagic=N32;;
5312
  *-64|*"-64 ") libmagic=64-bit;;
5313
  *) libmagic=never-match;;
5314
  esac
5315
  lt_cv_deplibs_check_method=pass_all
5316
  ;;
5317
5318
# This must be Linux ELF.
5319
linux* | k*bsd*-gnu)
5320
  lt_cv_deplibs_check_method=pass_all
5321
  ;;
5322
5323
netbsd* | netbsdelf*-gnu)
5324
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5325
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5326
  else
5327
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5328
  fi
5329
  ;;
5330
5331
newos6*)
5332
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5333
  lt_cv_file_magic_cmd=/usr/bin/file
5334
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5335
  ;;
5336
5337
nto-qnx*)
5338
  lt_cv_deplibs_check_method=unknown
5339
  ;;
5340
5341
openbsd*)
5342
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5343
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5344
  else
5345
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5346
  fi
5347
  ;;
5348
5349
osf3* | osf4* | osf5*)
5350
  lt_cv_deplibs_check_method=pass_all
5351
  ;;
5352
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5353
rdos*)
5354
  lt_cv_deplibs_check_method=pass_all
5355
  ;;
5356
1 by Sebastien Bacher
Import upstream version 0.7.1
5357
solaris*)
5358
  lt_cv_deplibs_check_method=pass_all
5359
  ;;
5360
5361
sysv4 | sysv4.3*)
5362
  case $host_vendor in
5363
  motorola)
5364
    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]'
5365
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5366
    ;;
5367
  ncr)
5368
    lt_cv_deplibs_check_method=pass_all
5369
    ;;
5370
  sequent)
5371
    lt_cv_file_magic_cmd='/bin/file'
5372
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5373
    ;;
5374
  sni)
5375
    lt_cv_file_magic_cmd='/bin/file'
5376
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5377
    lt_cv_file_magic_test_file=/lib/libc.so
5378
    ;;
5379
  siemens)
5380
    lt_cv_deplibs_check_method=pass_all
5381
    ;;
5382
  pc)
5383
    lt_cv_deplibs_check_method=pass_all
5384
    ;;
5385
  esac
5386
  ;;
5387
5388
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5389
  lt_cv_deplibs_check_method=pass_all
5390
  ;;
5391
esac
5392
5393
fi
5394
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5395
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5396
file_magic_cmd=$lt_cv_file_magic_cmd
5397
deplibs_check_method=$lt_cv_deplibs_check_method
5398
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5399
5400
5401
5402
5403
# If no C compiler was specified, use CC.
5404
LTCC=${LTCC-"$CC"}
5405
5406
# If no C compiler flags were specified, use CFLAGS.
5407
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5408
5409
# Allow CC to be a program name with arguments.
5410
compiler=$CC
5411
5412
# Check whether --enable-libtool-lock was given.
5413
if test "${enable_libtool_lock+set}" = set; then
5414
  enableval=$enable_libtool_lock;
5415
fi
5416
5417
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5418
5419
# Some flags need to be propagated to the compiler or linker for good
5420
# libtool support.
5421
case $host in
5422
ia64-*-hpux*)
5423
  # Find out which ABI we are using.
5424
  echo 'int i;' > conftest.$ac_ext
5425
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426
  (eval $ac_compile) 2>&5
5427
  ac_status=$?
5428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429
  (exit $ac_status); }; then
5430
    case `/usr/bin/file conftest.$ac_objext` in
5431
    *ELF-32*)
5432
      HPUX_IA64_MODE="32"
5433
      ;;
5434
    *ELF-64*)
5435
      HPUX_IA64_MODE="64"
5436
      ;;
5437
    esac
5438
  fi
5439
  rm -rf conftest*
5440
  ;;
5441
*-*-irix6*)
5442
  # Find out which ABI we are using.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5443
  echo '#line 5452 "configure"' > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
5444
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445
  (eval $ac_compile) 2>&5
5446
  ac_status=$?
5447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448
  (exit $ac_status); }; then
5449
   if test "$lt_cv_prog_gnu_ld" = yes; then
5450
    case `/usr/bin/file conftest.$ac_objext` in
5451
    *32-bit*)
5452
      LD="${LD-ld} -melf32bsmip"
5453
      ;;
5454
    *N32*)
5455
      LD="${LD-ld} -melf32bmipn32"
5456
      ;;
5457
    *64-bit*)
5458
      LD="${LD-ld} -melf64bmip"
5459
      ;;
5460
    esac
5461
   else
5462
    case `/usr/bin/file conftest.$ac_objext` in
5463
    *32-bit*)
5464
      LD="${LD-ld} -32"
5465
      ;;
5466
    *N32*)
5467
      LD="${LD-ld} -n32"
5468
      ;;
5469
    *64-bit*)
5470
      LD="${LD-ld} -64"
5471
      ;;
5472
    esac
5473
   fi
5474
  fi
5475
  rm -rf conftest*
5476
  ;;
5477
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5478
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5479
s390*-*linux*|sparc*-*linux*)
1 by Sebastien Bacher
Import upstream version 0.7.1
5480
  # Find out which ABI we are using.
5481
  echo 'int i;' > conftest.$ac_ext
5482
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483
  (eval $ac_compile) 2>&5
5484
  ac_status=$?
5485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486
  (exit $ac_status); }; then
5487
    case `/usr/bin/file conftest.o` in
5488
    *32-bit*)
5489
      case $host in
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5490
        x86_64-*kfreebsd*-gnu)
5491
          LD="${LD-ld} -m elf_i386_fbsd"
5492
          ;;
1 by Sebastien Bacher
Import upstream version 0.7.1
5493
        x86_64-*linux*)
5494
          LD="${LD-ld} -m elf_i386"
5495
          ;;
5496
        ppc64-*linux*|powerpc64-*linux*)
5497
          LD="${LD-ld} -m elf32ppclinux"
5498
          ;;
5499
        s390x-*linux*)
5500
          LD="${LD-ld} -m elf_s390"
5501
          ;;
5502
        sparc64-*linux*)
5503
          LD="${LD-ld} -m elf32_sparc"
5504
          ;;
5505
      esac
5506
      ;;
5507
    *64-bit*)
5508
      case $host in
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5509
        x86_64-*kfreebsd*-gnu)
5510
          LD="${LD-ld} -m elf_x86_64_fbsd"
5511
          ;;
1 by Sebastien Bacher
Import upstream version 0.7.1
5512
        x86_64-*linux*)
5513
          LD="${LD-ld} -m elf_x86_64"
5514
          ;;
5515
        ppc*-*linux*|powerpc*-*linux*)
5516
          LD="${LD-ld} -m elf64ppc"
5517
          ;;
5518
        s390*-*linux*)
5519
          LD="${LD-ld} -m elf64_s390"
5520
          ;;
5521
        sparc*-*linux*)
5522
          LD="${LD-ld} -m elf64_sparc"
5523
          ;;
5524
      esac
5525
      ;;
5526
    esac
5527
  fi
5528
  rm -rf conftest*
5529
  ;;
5530
5531
*-*-sco3.2v5*)
5532
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5533
  SAVE_CFLAGS="$CFLAGS"
5534
  CFLAGS="$CFLAGS -belf"
5535
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5536
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5537
if test "${lt_cv_cc_needs_belf+set}" = set; then
5538
  echo $ECHO_N "(cached) $ECHO_C" >&6
5539
else
5540
  ac_ext=c
5541
ac_cpp='$CPP $CPPFLAGS'
5542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
5546
     cat >conftest.$ac_ext <<_ACEOF
5547
/* confdefs.h.  */
5548
_ACEOF
5549
cat confdefs.h >>conftest.$ac_ext
5550
cat >>conftest.$ac_ext <<_ACEOF
5551
/* end confdefs.h.  */
5552
5553
int
5554
main ()
5555
{
5556
5557
  ;
5558
  return 0;
5559
}
5560
_ACEOF
5561
rm -f conftest.$ac_objext conftest$ac_exeext
5562
if { (ac_try="$ac_link"
5563
case "(($ac_try" in
5564
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565
  *) ac_try_echo=$ac_try;;
5566
esac
5567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568
  (eval "$ac_link") 2>conftest.er1
5569
  ac_status=$?
5570
  grep -v '^ *+' conftest.er1 >conftest.err
5571
  rm -f conftest.er1
5572
  cat conftest.err >&5
5573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5574
  (exit $ac_status); } && {
5575
	 test -z "$ac_c_werror_flag" ||
5576
	 test ! -s conftest.err
5577
       } && test -s conftest$ac_exeext &&
5578
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
5579
  lt_cv_cc_needs_belf=yes
5580
else
5581
  echo "$as_me: failed program was:" >&5
5582
sed 's/^/| /' conftest.$ac_ext >&5
5583
5584
	lt_cv_cc_needs_belf=no
5585
fi
5586
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5587
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
5588
      conftest$ac_exeext conftest.$ac_ext
5589
     ac_ext=c
5590
ac_cpp='$CPP $CPPFLAGS'
5591
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594
5595
fi
5596
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5597
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5598
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5599
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5600
    CFLAGS="$SAVE_CFLAGS"
5601
  fi
5602
  ;;
5603
sparc*-*solaris*)
5604
  # Find out which ABI we are using.
5605
  echo 'int i;' > conftest.$ac_ext
5606
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607
  (eval $ac_compile) 2>&5
5608
  ac_status=$?
5609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610
  (exit $ac_status); }; then
5611
    case `/usr/bin/file conftest.o` in
5612
    *64-bit*)
5613
      case $lt_cv_prog_gnu_ld in
5614
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5615
      *)    LD="${LD-ld} -64" ;;
5616
      esac
5617
      ;;
5618
    esac
5619
  fi
5620
  rm -rf conftest*
5621
  ;;
5622
5623
5624
esac
5625
5626
need_locks="$enable_libtool_lock"
5627
5628
5629
ac_ext=c
5630
ac_cpp='$CPP $CPPFLAGS'
5631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5635
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5636
# On Suns, sometimes $CPP names a directory.
5637
if test -n "$CPP" && test -d "$CPP"; then
5638
  CPP=
5639
fi
5640
if test -z "$CPP"; then
5641
  if test "${ac_cv_prog_CPP+set}" = set; then
5642
  echo $ECHO_N "(cached) $ECHO_C" >&6
5643
else
5644
      # Double quotes because CPP needs to be expanded
5645
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5646
    do
5647
      ac_preproc_ok=false
5648
for ac_c_preproc_warn_flag in '' yes
5649
do
5650
  # Use a header file that comes with gcc, so configuring glibc
5651
  # with a fresh cross-compiler works.
5652
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5653
  # <limits.h> exists even on freestanding compilers.
5654
  # On the NeXT, cc -E runs the code through the compiler's parser,
5655
  # not just through cpp. "Syntax error" is here to catch this case.
5656
  cat >conftest.$ac_ext <<_ACEOF
5657
/* confdefs.h.  */
5658
_ACEOF
5659
cat confdefs.h >>conftest.$ac_ext
5660
cat >>conftest.$ac_ext <<_ACEOF
5661
/* end confdefs.h.  */
5662
#ifdef __STDC__
5663
# include <limits.h>
5664
#else
5665
# include <assert.h>
5666
#endif
5667
		     Syntax error
5668
_ACEOF
5669
if { (ac_try="$ac_cpp conftest.$ac_ext"
5670
case "(($ac_try" in
5671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672
  *) ac_try_echo=$ac_try;;
5673
esac
5674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5676
  ac_status=$?
5677
  grep -v '^ *+' conftest.er1 >conftest.err
5678
  rm -f conftest.er1
5679
  cat conftest.err >&5
5680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5681
  (exit $ac_status); } >/dev/null && {
5682
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5683
	 test ! -s conftest.err
5684
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
5685
  :
5686
else
5687
  echo "$as_me: failed program was:" >&5
5688
sed 's/^/| /' conftest.$ac_ext >&5
5689
5690
  # Broken: fails on valid input.
5691
continue
5692
fi
5693
5694
rm -f conftest.err conftest.$ac_ext
5695
5696
  # OK, works on sane cases.  Now check whether nonexistent headers
5697
  # can be detected and how.
5698
  cat >conftest.$ac_ext <<_ACEOF
5699
/* confdefs.h.  */
5700
_ACEOF
5701
cat confdefs.h >>conftest.$ac_ext
5702
cat >>conftest.$ac_ext <<_ACEOF
5703
/* end confdefs.h.  */
5704
#include <ac_nonexistent.h>
5705
_ACEOF
5706
if { (ac_try="$ac_cpp conftest.$ac_ext"
5707
case "(($ac_try" in
5708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709
  *) ac_try_echo=$ac_try;;
5710
esac
5711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713
  ac_status=$?
5714
  grep -v '^ *+' conftest.er1 >conftest.err
5715
  rm -f conftest.er1
5716
  cat conftest.err >&5
5717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5718
  (exit $ac_status); } >/dev/null && {
5719
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5720
	 test ! -s conftest.err
5721
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
5722
  # Broken: success on invalid input.
5723
continue
5724
else
5725
  echo "$as_me: failed program was:" >&5
5726
sed 's/^/| /' conftest.$ac_ext >&5
5727
5728
  # Passes both tests.
5729
ac_preproc_ok=:
5730
break
5731
fi
5732
5733
rm -f conftest.err conftest.$ac_ext
5734
5735
done
5736
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5737
rm -f conftest.err conftest.$ac_ext
5738
if $ac_preproc_ok; then
5739
  break
5740
fi
5741
5742
    done
5743
    ac_cv_prog_CPP=$CPP
5744
5745
fi
5746
  CPP=$ac_cv_prog_CPP
5747
else
5748
  ac_cv_prog_CPP=$CPP
5749
fi
5750
{ echo "$as_me:$LINENO: result: $CPP" >&5
5751
echo "${ECHO_T}$CPP" >&6; }
5752
ac_preproc_ok=false
5753
for ac_c_preproc_warn_flag in '' yes
5754
do
5755
  # Use a header file that comes with gcc, so configuring glibc
5756
  # with a fresh cross-compiler works.
5757
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758
  # <limits.h> exists even on freestanding compilers.
5759
  # On the NeXT, cc -E runs the code through the compiler's parser,
5760
  # not just through cpp. "Syntax error" is here to catch this case.
5761
  cat >conftest.$ac_ext <<_ACEOF
5762
/* confdefs.h.  */
5763
_ACEOF
5764
cat confdefs.h >>conftest.$ac_ext
5765
cat >>conftest.$ac_ext <<_ACEOF
5766
/* end confdefs.h.  */
5767
#ifdef __STDC__
5768
# include <limits.h>
5769
#else
5770
# include <assert.h>
5771
#endif
5772
		     Syntax error
5773
_ACEOF
5774
if { (ac_try="$ac_cpp conftest.$ac_ext"
5775
case "(($ac_try" in
5776
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777
  *) ac_try_echo=$ac_try;;
5778
esac
5779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5781
  ac_status=$?
5782
  grep -v '^ *+' conftest.er1 >conftest.err
5783
  rm -f conftest.er1
5784
  cat conftest.err >&5
5785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5786
  (exit $ac_status); } >/dev/null && {
5787
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5788
	 test ! -s conftest.err
5789
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
5790
  :
5791
else
5792
  echo "$as_me: failed program was:" >&5
5793
sed 's/^/| /' conftest.$ac_ext >&5
5794
5795
  # Broken: fails on valid input.
5796
continue
5797
fi
5798
5799
rm -f conftest.err conftest.$ac_ext
5800
5801
  # OK, works on sane cases.  Now check whether nonexistent headers
5802
  # can be detected and how.
5803
  cat >conftest.$ac_ext <<_ACEOF
5804
/* confdefs.h.  */
5805
_ACEOF
5806
cat confdefs.h >>conftest.$ac_ext
5807
cat >>conftest.$ac_ext <<_ACEOF
5808
/* end confdefs.h.  */
5809
#include <ac_nonexistent.h>
5810
_ACEOF
5811
if { (ac_try="$ac_cpp conftest.$ac_ext"
5812
case "(($ac_try" in
5813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814
  *) ac_try_echo=$ac_try;;
5815
esac
5816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5818
  ac_status=$?
5819
  grep -v '^ *+' conftest.er1 >conftest.err
5820
  rm -f conftest.er1
5821
  cat conftest.err >&5
5822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5823
  (exit $ac_status); } >/dev/null && {
5824
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5825
	 test ! -s conftest.err
5826
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
5827
  # Broken: success on invalid input.
5828
continue
5829
else
5830
  echo "$as_me: failed program was:" >&5
5831
sed 's/^/| /' conftest.$ac_ext >&5
5832
5833
  # Passes both tests.
5834
ac_preproc_ok=:
5835
break
5836
fi
5837
5838
rm -f conftest.err conftest.$ac_ext
5839
5840
done
5841
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842
rm -f conftest.err conftest.$ac_ext
5843
if $ac_preproc_ok; then
5844
  :
5845
else
5846
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5847
See \`config.log' for more details." >&5
5848
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5849
See \`config.log' for more details." >&2;}
5850
   { (exit 1); exit 1; }; }
5851
fi
5852
5853
ac_ext=c
5854
ac_cpp='$CPP $CPPFLAGS'
5855
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858
5859
5860
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5861
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5862
if test "${ac_cv_header_stdc+set}" = set; then
5863
  echo $ECHO_N "(cached) $ECHO_C" >&6
5864
else
5865
  cat >conftest.$ac_ext <<_ACEOF
5866
/* confdefs.h.  */
5867
_ACEOF
5868
cat confdefs.h >>conftest.$ac_ext
5869
cat >>conftest.$ac_ext <<_ACEOF
5870
/* end confdefs.h.  */
5871
#include <stdlib.h>
5872
#include <stdarg.h>
5873
#include <string.h>
5874
#include <float.h>
5875
5876
int
5877
main ()
5878
{
5879
5880
  ;
5881
  return 0;
5882
}
5883
_ACEOF
5884
rm -f conftest.$ac_objext
5885
if { (ac_try="$ac_compile"
5886
case "(($ac_try" in
5887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888
  *) ac_try_echo=$ac_try;;
5889
esac
5890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891
  (eval "$ac_compile") 2>conftest.er1
5892
  ac_status=$?
5893
  grep -v '^ *+' conftest.er1 >conftest.err
5894
  rm -f conftest.er1
5895
  cat conftest.err >&5
5896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
5897
  (exit $ac_status); } && {
5898
	 test -z "$ac_c_werror_flag" ||
5899
	 test ! -s conftest.err
5900
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
5901
  ac_cv_header_stdc=yes
5902
else
5903
  echo "$as_me: failed program was:" >&5
5904
sed 's/^/| /' conftest.$ac_ext >&5
5905
5906
	ac_cv_header_stdc=no
5907
fi
5908
5909
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910
5911
if test $ac_cv_header_stdc = yes; then
5912
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5913
  cat >conftest.$ac_ext <<_ACEOF
5914
/* confdefs.h.  */
5915
_ACEOF
5916
cat confdefs.h >>conftest.$ac_ext
5917
cat >>conftest.$ac_ext <<_ACEOF
5918
/* end confdefs.h.  */
5919
#include <string.h>
5920
5921
_ACEOF
5922
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5923
  $EGREP "memchr" >/dev/null 2>&1; then
5924
  :
5925
else
5926
  ac_cv_header_stdc=no
5927
fi
5928
rm -f conftest*
5929
5930
fi
5931
5932
if test $ac_cv_header_stdc = yes; then
5933
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5934
  cat >conftest.$ac_ext <<_ACEOF
5935
/* confdefs.h.  */
5936
_ACEOF
5937
cat confdefs.h >>conftest.$ac_ext
5938
cat >>conftest.$ac_ext <<_ACEOF
5939
/* end confdefs.h.  */
5940
#include <stdlib.h>
5941
5942
_ACEOF
5943
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944
  $EGREP "free" >/dev/null 2>&1; then
5945
  :
5946
else
5947
  ac_cv_header_stdc=no
5948
fi
5949
rm -f conftest*
5950
5951
fi
5952
5953
if test $ac_cv_header_stdc = yes; then
5954
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5955
  if test "$cross_compiling" = yes; then
5956
  :
5957
else
5958
  cat >conftest.$ac_ext <<_ACEOF
5959
/* confdefs.h.  */
5960
_ACEOF
5961
cat confdefs.h >>conftest.$ac_ext
5962
cat >>conftest.$ac_ext <<_ACEOF
5963
/* end confdefs.h.  */
5964
#include <ctype.h>
5965
#include <stdlib.h>
5966
#if ((' ' & 0x0FF) == 0x020)
5967
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5968
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5969
#else
5970
# define ISLOWER(c) \
5971
		   (('a' <= (c) && (c) <= 'i') \
5972
		     || ('j' <= (c) && (c) <= 'r') \
5973
		     || ('s' <= (c) && (c) <= 'z'))
5974
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5975
#endif
5976
5977
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5978
int
5979
main ()
5980
{
5981
  int i;
5982
  for (i = 0; i < 256; i++)
5983
    if (XOR (islower (i), ISLOWER (i))
5984
	|| toupper (i) != TOUPPER (i))
5985
      return 2;
5986
  return 0;
5987
}
5988
_ACEOF
5989
rm -f conftest$ac_exeext
5990
if { (ac_try="$ac_link"
5991
case "(($ac_try" in
5992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993
  *) ac_try_echo=$ac_try;;
5994
esac
5995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996
  (eval "$ac_link") 2>&5
5997
  ac_status=$?
5998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6000
  { (case "(($ac_try" in
6001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002
  *) ac_try_echo=$ac_try;;
6003
esac
6004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005
  (eval "$ac_try") 2>&5
6006
  ac_status=$?
6007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008
  (exit $ac_status); }; }; then
6009
  :
6010
else
6011
  echo "$as_me: program exited with status $ac_status" >&5
6012
echo "$as_me: failed program was:" >&5
6013
sed 's/^/| /' conftest.$ac_ext >&5
6014
6015
( exit $ac_status )
6016
ac_cv_header_stdc=no
6017
fi
6018
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6019
fi
6020
6021
6022
fi
6023
fi
6024
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6025
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6026
if test $ac_cv_header_stdc = yes; then
6027
6028
cat >>confdefs.h <<\_ACEOF
6029
#define STDC_HEADERS 1
6030
_ACEOF
6031
6032
fi
6033
6034
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6045
		  inttypes.h stdint.h unistd.h
6046
do
6047
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6048
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6049
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6050
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6051
  echo $ECHO_N "(cached) $ECHO_C" >&6
6052
else
6053
  cat >conftest.$ac_ext <<_ACEOF
6054
/* confdefs.h.  */
6055
_ACEOF
6056
cat confdefs.h >>conftest.$ac_ext
6057
cat >>conftest.$ac_ext <<_ACEOF
6058
/* end confdefs.h.  */
6059
$ac_includes_default
6060
6061
#include <$ac_header>
6062
_ACEOF
6063
rm -f conftest.$ac_objext
6064
if { (ac_try="$ac_compile"
6065
case "(($ac_try" in
6066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067
  *) ac_try_echo=$ac_try;;
6068
esac
6069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070
  (eval "$ac_compile") 2>conftest.er1
6071
  ac_status=$?
6072
  grep -v '^ *+' conftest.er1 >conftest.err
6073
  rm -f conftest.er1
6074
  cat conftest.err >&5
6075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6076
  (exit $ac_status); } && {
6077
	 test -z "$ac_c_werror_flag" ||
6078
	 test ! -s conftest.err
6079
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6080
  eval "$as_ac_Header=yes"
6081
else
6082
  echo "$as_me: failed program was:" >&5
6083
sed 's/^/| /' conftest.$ac_ext >&5
6084
6085
	eval "$as_ac_Header=no"
6086
fi
6087
6088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089
fi
6090
ac_res=`eval echo '${'$as_ac_Header'}'`
6091
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6092
echo "${ECHO_T}$ac_res" >&6; }
6093
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6094
  cat >>confdefs.h <<_ACEOF
6095
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6096
_ACEOF
6097
6098
fi
6099
6100
done
6101
6102
6103
6104
for ac_header in dlfcn.h
6105
do
6106
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6107
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6108
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6109
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6110
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6111
  echo $ECHO_N "(cached) $ECHO_C" >&6
6112
fi
6113
ac_res=`eval echo '${'$as_ac_Header'}'`
6114
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6115
echo "${ECHO_T}$ac_res" >&6; }
6116
else
6117
  # Is the header compilable?
6118
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6119
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6120
cat >conftest.$ac_ext <<_ACEOF
6121
/* confdefs.h.  */
6122
_ACEOF
6123
cat confdefs.h >>conftest.$ac_ext
6124
cat >>conftest.$ac_ext <<_ACEOF
6125
/* end confdefs.h.  */
6126
$ac_includes_default
6127
#include <$ac_header>
6128
_ACEOF
6129
rm -f conftest.$ac_objext
6130
if { (ac_try="$ac_compile"
6131
case "(($ac_try" in
6132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133
  *) ac_try_echo=$ac_try;;
6134
esac
6135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136
  (eval "$ac_compile") 2>conftest.er1
6137
  ac_status=$?
6138
  grep -v '^ *+' conftest.er1 >conftest.err
6139
  rm -f conftest.er1
6140
  cat conftest.err >&5
6141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6142
  (exit $ac_status); } && {
6143
	 test -z "$ac_c_werror_flag" ||
6144
	 test ! -s conftest.err
6145
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6146
  ac_header_compiler=yes
6147
else
6148
  echo "$as_me: failed program was:" >&5
6149
sed 's/^/| /' conftest.$ac_ext >&5
6150
6151
	ac_header_compiler=no
6152
fi
6153
6154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6156
echo "${ECHO_T}$ac_header_compiler" >&6; }
6157
6158
# Is the header present?
6159
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6160
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6161
cat >conftest.$ac_ext <<_ACEOF
6162
/* confdefs.h.  */
6163
_ACEOF
6164
cat confdefs.h >>conftest.$ac_ext
6165
cat >>conftest.$ac_ext <<_ACEOF
6166
/* end confdefs.h.  */
6167
#include <$ac_header>
6168
_ACEOF
6169
if { (ac_try="$ac_cpp conftest.$ac_ext"
6170
case "(($ac_try" in
6171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172
  *) ac_try_echo=$ac_try;;
6173
esac
6174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6176
  ac_status=$?
6177
  grep -v '^ *+' conftest.er1 >conftest.err
6178
  rm -f conftest.er1
6179
  cat conftest.err >&5
6180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6181
  (exit $ac_status); } >/dev/null && {
6182
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6183
	 test ! -s conftest.err
6184
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6185
  ac_header_preproc=yes
6186
else
6187
  echo "$as_me: failed program was:" >&5
6188
sed 's/^/| /' conftest.$ac_ext >&5
6189
6190
  ac_header_preproc=no
6191
fi
6192
6193
rm -f conftest.err conftest.$ac_ext
6194
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6195
echo "${ECHO_T}$ac_header_preproc" >&6; }
6196
6197
# So?  What about this header?
6198
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6199
  yes:no: )
6200
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6201
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6202
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6203
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6204
    ac_header_preproc=yes
6205
    ;;
6206
  no:yes:* )
6207
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6208
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6209
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6210
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6211
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6212
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6213
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6214
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6215
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6216
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6217
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6218
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6219
6220
    ;;
6221
esac
6222
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6223
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6224
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6225
  echo $ECHO_N "(cached) $ECHO_C" >&6
6226
else
6227
  eval "$as_ac_Header=\$ac_header_preproc"
6228
fi
6229
ac_res=`eval echo '${'$as_ac_Header'}'`
6230
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6231
echo "${ECHO_T}$ac_res" >&6; }
6232
6233
fi
6234
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6235
  cat >>confdefs.h <<_ACEOF
6236
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6237
_ACEOF
6238
6239
fi
6240
6241
done
6242
6243
ac_ext=cpp
6244
ac_cpp='$CXXCPP $CPPFLAGS'
6245
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6248
if test -z "$CXX"; then
6249
  if test -n "$CCC"; then
6250
    CXX=$CCC
6251
  else
6252
    if test -n "$ac_tool_prefix"; then
6253
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6254
  do
6255
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6256
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6257
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6258
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259
if test "${ac_cv_prog_CXX+set}" = set; then
6260
  echo $ECHO_N "(cached) $ECHO_C" >&6
6261
else
6262
  if test -n "$CXX"; then
6263
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6264
else
6265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266
for as_dir in $PATH
6267
do
6268
  IFS=$as_save_IFS
6269
  test -z "$as_dir" && as_dir=.
6270
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6271
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6272
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6273
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274
    break 2
6275
  fi
6276
done
6277
done
6278
IFS=$as_save_IFS
6279
6280
fi
6281
fi
6282
CXX=$ac_cv_prog_CXX
6283
if test -n "$CXX"; then
6284
  { echo "$as_me:$LINENO: result: $CXX" >&5
6285
echo "${ECHO_T}$CXX" >&6; }
6286
else
6287
  { echo "$as_me:$LINENO: result: no" >&5
6288
echo "${ECHO_T}no" >&6; }
6289
fi
6290
6291
6292
    test -n "$CXX" && break
6293
  done
6294
fi
6295
if test -z "$CXX"; then
6296
  ac_ct_CXX=$CXX
6297
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6298
do
6299
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6300
set dummy $ac_prog; ac_word=$2
6301
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6302
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6304
  echo $ECHO_N "(cached) $ECHO_C" >&6
6305
else
6306
  if test -n "$ac_ct_CXX"; then
6307
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6308
else
6309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310
for as_dir in $PATH
6311
do
6312
  IFS=$as_save_IFS
6313
  test -z "$as_dir" && as_dir=.
6314
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6315
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6316
    ac_cv_prog_ac_ct_CXX="$ac_prog"
6317
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318
    break 2
6319
  fi
6320
done
6321
done
6322
IFS=$as_save_IFS
6323
6324
fi
6325
fi
6326
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6327
if test -n "$ac_ct_CXX"; then
6328
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6329
echo "${ECHO_T}$ac_ct_CXX" >&6; }
6330
else
6331
  { echo "$as_me:$LINENO: result: no" >&5
6332
echo "${ECHO_T}no" >&6; }
6333
fi
6334
6335
6336
  test -n "$ac_ct_CXX" && break
6337
done
6338
6339
  if test "x$ac_ct_CXX" = x; then
6340
    CXX="g++"
6341
  else
6342
    case $cross_compiling:$ac_tool_warned in
6343
yes:)
6344
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6345
whose name does not start with the host triplet.  If you think this
6346
configuration is useful to you, please write to autoconf@gnu.org." >&5
6347
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6348
whose name does not start with the host triplet.  If you think this
6349
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6350
ac_tool_warned=yes ;;
6351
esac
6352
    CXX=$ac_ct_CXX
6353
  fi
6354
fi
6355
6356
  fi
6357
fi
6358
# Provide some information about the compiler.
6359
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6360
ac_compiler=`set X $ac_compile; echo $2`
6361
{ (ac_try="$ac_compiler --version >&5"
6362
case "(($ac_try" in
6363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364
  *) ac_try_echo=$ac_try;;
6365
esac
6366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367
  (eval "$ac_compiler --version >&5") 2>&5
6368
  ac_status=$?
6369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370
  (exit $ac_status); }
6371
{ (ac_try="$ac_compiler -v >&5"
6372
case "(($ac_try" in
6373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374
  *) ac_try_echo=$ac_try;;
6375
esac
6376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377
  (eval "$ac_compiler -v >&5") 2>&5
6378
  ac_status=$?
6379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380
  (exit $ac_status); }
6381
{ (ac_try="$ac_compiler -V >&5"
6382
case "(($ac_try" in
6383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384
  *) ac_try_echo=$ac_try;;
6385
esac
6386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387
  (eval "$ac_compiler -V >&5") 2>&5
6388
  ac_status=$?
6389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390
  (exit $ac_status); }
6391
6392
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6393
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6394
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6395
  echo $ECHO_N "(cached) $ECHO_C" >&6
6396
else
6397
  cat >conftest.$ac_ext <<_ACEOF
6398
/* confdefs.h.  */
6399
_ACEOF
6400
cat confdefs.h >>conftest.$ac_ext
6401
cat >>conftest.$ac_ext <<_ACEOF
6402
/* end confdefs.h.  */
6403
6404
int
6405
main ()
6406
{
6407
#ifndef __GNUC__
6408
       choke me
6409
#endif
6410
6411
  ;
6412
  return 0;
6413
}
6414
_ACEOF
6415
rm -f conftest.$ac_objext
6416
if { (ac_try="$ac_compile"
6417
case "(($ac_try" in
6418
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419
  *) ac_try_echo=$ac_try;;
6420
esac
6421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422
  (eval "$ac_compile") 2>conftest.er1
6423
  ac_status=$?
6424
  grep -v '^ *+' conftest.er1 >conftest.err
6425
  rm -f conftest.er1
6426
  cat conftest.err >&5
6427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6428
  (exit $ac_status); } && {
6429
	 test -z "$ac_cxx_werror_flag" ||
6430
	 test ! -s conftest.err
6431
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6432
  ac_compiler_gnu=yes
6433
else
6434
  echo "$as_me: failed program was:" >&5
6435
sed 's/^/| /' conftest.$ac_ext >&5
6436
6437
	ac_compiler_gnu=no
6438
fi
6439
6440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6442
6443
fi
6444
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6445
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6446
GXX=`test $ac_compiler_gnu = yes && echo yes`
6447
ac_test_CXXFLAGS=${CXXFLAGS+set}
6448
ac_save_CXXFLAGS=$CXXFLAGS
6449
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6450
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6451
if test "${ac_cv_prog_cxx_g+set}" = set; then
6452
  echo $ECHO_N "(cached) $ECHO_C" >&6
6453
else
6454
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6455
   ac_cxx_werror_flag=yes
6456
   ac_cv_prog_cxx_g=no
6457
   CXXFLAGS="-g"
6458
   cat >conftest.$ac_ext <<_ACEOF
6459
/* confdefs.h.  */
6460
_ACEOF
6461
cat confdefs.h >>conftest.$ac_ext
6462
cat >>conftest.$ac_ext <<_ACEOF
6463
/* end confdefs.h.  */
6464
6465
int
6466
main ()
6467
{
6468
6469
  ;
6470
  return 0;
6471
}
6472
_ACEOF
6473
rm -f conftest.$ac_objext
6474
if { (ac_try="$ac_compile"
6475
case "(($ac_try" in
6476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477
  *) ac_try_echo=$ac_try;;
6478
esac
6479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480
  (eval "$ac_compile") 2>conftest.er1
6481
  ac_status=$?
6482
  grep -v '^ *+' conftest.er1 >conftest.err
6483
  rm -f conftest.er1
6484
  cat conftest.err >&5
6485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6486
  (exit $ac_status); } && {
6487
	 test -z "$ac_cxx_werror_flag" ||
6488
	 test ! -s conftest.err
6489
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6490
  ac_cv_prog_cxx_g=yes
6491
else
6492
  echo "$as_me: failed program was:" >&5
6493
sed 's/^/| /' conftest.$ac_ext >&5
6494
6495
	CXXFLAGS=""
6496
      cat >conftest.$ac_ext <<_ACEOF
6497
/* confdefs.h.  */
6498
_ACEOF
6499
cat confdefs.h >>conftest.$ac_ext
6500
cat >>conftest.$ac_ext <<_ACEOF
6501
/* end confdefs.h.  */
6502
6503
int
6504
main ()
6505
{
6506
6507
  ;
6508
  return 0;
6509
}
6510
_ACEOF
6511
rm -f conftest.$ac_objext
6512
if { (ac_try="$ac_compile"
6513
case "(($ac_try" in
6514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515
  *) ac_try_echo=$ac_try;;
6516
esac
6517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518
  (eval "$ac_compile") 2>conftest.er1
6519
  ac_status=$?
6520
  grep -v '^ *+' conftest.er1 >conftest.err
6521
  rm -f conftest.er1
6522
  cat conftest.err >&5
6523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6524
  (exit $ac_status); } && {
6525
	 test -z "$ac_cxx_werror_flag" ||
6526
	 test ! -s conftest.err
6527
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6528
  :
6529
else
6530
  echo "$as_me: failed program was:" >&5
6531
sed 's/^/| /' conftest.$ac_ext >&5
6532
6533
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6534
	 CXXFLAGS="-g"
6535
	 cat >conftest.$ac_ext <<_ACEOF
6536
/* confdefs.h.  */
6537
_ACEOF
6538
cat confdefs.h >>conftest.$ac_ext
6539
cat >>conftest.$ac_ext <<_ACEOF
6540
/* end confdefs.h.  */
6541
6542
int
6543
main ()
6544
{
6545
6546
  ;
6547
  return 0;
6548
}
6549
_ACEOF
6550
rm -f conftest.$ac_objext
6551
if { (ac_try="$ac_compile"
6552
case "(($ac_try" in
6553
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554
  *) ac_try_echo=$ac_try;;
6555
esac
6556
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557
  (eval "$ac_compile") 2>conftest.er1
6558
  ac_status=$?
6559
  grep -v '^ *+' conftest.er1 >conftest.err
6560
  rm -f conftest.er1
6561
  cat conftest.err >&5
6562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6563
  (exit $ac_status); } && {
6564
	 test -z "$ac_cxx_werror_flag" ||
6565
	 test ! -s conftest.err
6566
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6567
  ac_cv_prog_cxx_g=yes
6568
else
6569
  echo "$as_me: failed program was:" >&5
6570
sed 's/^/| /' conftest.$ac_ext >&5
6571
6572
6573
fi
6574
6575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576
fi
6577
6578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579
fi
6580
6581
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6583
fi
6584
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6585
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6586
if test "$ac_test_CXXFLAGS" = set; then
6587
  CXXFLAGS=$ac_save_CXXFLAGS
6588
elif test $ac_cv_prog_cxx_g = yes; then
6589
  if test "$GXX" = yes; then
6590
    CXXFLAGS="-g -O2"
6591
  else
6592
    CXXFLAGS="-g"
6593
  fi
6594
else
6595
  if test "$GXX" = yes; then
6596
    CXXFLAGS="-O2"
6597
  else
6598
    CXXFLAGS=
6599
  fi
6600
fi
6601
ac_ext=cpp
6602
ac_cpp='$CXXCPP $CPPFLAGS'
6603
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6606
6607
depcc="$CXX"  am_compiler_list=
6608
6609
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6610
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6611
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6612
  echo $ECHO_N "(cached) $ECHO_C" >&6
6613
else
6614
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6615
  # We make a subdir and do the tests there.  Otherwise we can end up
6616
  # making bogus files that we don't know about and never remove.  For
6617
  # instance it was reported that on HP-UX the gcc test will end up
6618
  # making a dummy file named `D' -- because `-MD' means `put the output
6619
  # in D'.
6620
  mkdir conftest.dir
6621
  # Copy depcomp to subdir because otherwise we won't find it if we're
6622
  # using a relative directory.
6623
  cp "$am_depcomp" conftest.dir
6624
  cd conftest.dir
6625
  # We will build objects and dependencies in a subdirectory because
6626
  # it helps to detect inapplicable dependency modes.  For instance
6627
  # both Tru64's cc and ICC support -MD to output dependencies as a
6628
  # side effect of compilation, but ICC will put the dependencies in
6629
  # the current directory while Tru64 will put them in the object
6630
  # directory.
6631
  mkdir sub
6632
6633
  am_cv_CXX_dependencies_compiler_type=none
6634
  if test "$am_compiler_list" = ""; then
6635
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6636
  fi
6637
  for depmode in $am_compiler_list; do
6638
    # Setup a source with many dependencies, because some compilers
6639
    # like to wrap large dependency lists on column 80 (with \), and
6640
    # we should not choose a depcomp mode which is confused by this.
6641
    #
6642
    # We need to recreate these files for each test, as the compiler may
6643
    # overwrite some of them when testing with obscure command lines.
6644
    # This happens at least with the AIX C compiler.
6645
    : > sub/conftest.c
6646
    for i in 1 2 3 4 5 6; do
6647
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6648
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6649
      # Solaris 8's {/usr,}/bin/sh.
6650
      touch sub/conftst$i.h
6651
    done
6652
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6653
6654
    case $depmode in
6655
    nosideeffect)
6656
      # after this tag, mechanisms are not by side-effect, so they'll
6657
      # only be used when explicitly requested
6658
      if test "x$enable_dependency_tracking" = xyes; then
6659
	continue
6660
      else
6661
	break
6662
      fi
6663
      ;;
6664
    none) break ;;
6665
    esac
6666
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6667
    # mode.  It turns out that the SunPro C++ compiler does not properly
6668
    # handle `-M -o', and we need to detect this.
6669
    if depmode=$depmode \
6670
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6671
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6672
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6673
         >/dev/null 2>conftest.err &&
6674
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6675
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6676
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6677
      # icc doesn't choke on unknown options, it will just issue warnings
6678
      # or remarks (even with -Werror).  So we grep stderr for any message
6679
      # that says an option was ignored or not supported.
6680
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6681
      #   icc: Command line warning: ignoring option '-M'; no argument required
6682
      # The diagnosis changed in icc 8.0:
6683
      #   icc: Command line remark: option '-MP' not supported
6684
      if (grep 'ignoring option' conftest.err ||
6685
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6686
        am_cv_CXX_dependencies_compiler_type=$depmode
6687
        break
6688
      fi
6689
    fi
6690
  done
6691
6692
  cd ..
6693
  rm -rf conftest.dir
6694
else
6695
  am_cv_CXX_dependencies_compiler_type=none
6696
fi
6697
6698
fi
6699
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6700
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6701
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6702
6703
6704
6705
if
6706
  test "x$enable_dependency_tracking" != xno \
6707
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6708
  am__fastdepCXX_TRUE=
6709
  am__fastdepCXX_FALSE='#'
6710
else
6711
  am__fastdepCXX_TRUE='#'
6712
  am__fastdepCXX_FALSE=
6713
fi
6714
6715
6716
6717
6718
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6719
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6720
    (test "X$CXX" != "Xg++"))) ; then
6721
  ac_ext=cpp
6722
ac_cpp='$CXXCPP $CPPFLAGS'
6723
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6726
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6727
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6728
if test -z "$CXXCPP"; then
6729
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6730
  echo $ECHO_N "(cached) $ECHO_C" >&6
6731
else
6732
      # Double quotes because CXXCPP needs to be expanded
6733
    for CXXCPP in "$CXX -E" "/lib/cpp"
6734
    do
6735
      ac_preproc_ok=false
6736
for ac_cxx_preproc_warn_flag in '' yes
6737
do
6738
  # Use a header file that comes with gcc, so configuring glibc
6739
  # with a fresh cross-compiler works.
6740
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6741
  # <limits.h> exists even on freestanding compilers.
6742
  # On the NeXT, cc -E runs the code through the compiler's parser,
6743
  # not just through cpp. "Syntax error" is here to catch this case.
6744
  cat >conftest.$ac_ext <<_ACEOF
6745
/* confdefs.h.  */
6746
_ACEOF
6747
cat confdefs.h >>conftest.$ac_ext
6748
cat >>conftest.$ac_ext <<_ACEOF
6749
/* end confdefs.h.  */
6750
#ifdef __STDC__
6751
# include <limits.h>
6752
#else
6753
# include <assert.h>
6754
#endif
6755
		     Syntax error
6756
_ACEOF
6757
if { (ac_try="$ac_cpp conftest.$ac_ext"
6758
case "(($ac_try" in
6759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760
  *) ac_try_echo=$ac_try;;
6761
esac
6762
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6764
  ac_status=$?
6765
  grep -v '^ *+' conftest.er1 >conftest.err
6766
  rm -f conftest.er1
6767
  cat conftest.err >&5
6768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6769
  (exit $ac_status); } >/dev/null && {
6770
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6771
	 test ! -s conftest.err
6772
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6773
  :
6774
else
6775
  echo "$as_me: failed program was:" >&5
6776
sed 's/^/| /' conftest.$ac_ext >&5
6777
6778
  # Broken: fails on valid input.
6779
continue
6780
fi
6781
6782
rm -f conftest.err conftest.$ac_ext
6783
6784
  # OK, works on sane cases.  Now check whether nonexistent headers
6785
  # can be detected and how.
6786
  cat >conftest.$ac_ext <<_ACEOF
6787
/* confdefs.h.  */
6788
_ACEOF
6789
cat confdefs.h >>conftest.$ac_ext
6790
cat >>conftest.$ac_ext <<_ACEOF
6791
/* end confdefs.h.  */
6792
#include <ac_nonexistent.h>
6793
_ACEOF
6794
if { (ac_try="$ac_cpp conftest.$ac_ext"
6795
case "(($ac_try" in
6796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797
  *) ac_try_echo=$ac_try;;
6798
esac
6799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6800
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6801
  ac_status=$?
6802
  grep -v '^ *+' conftest.er1 >conftest.err
6803
  rm -f conftest.er1
6804
  cat conftest.err >&5
6805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6806
  (exit $ac_status); } >/dev/null && {
6807
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6808
	 test ! -s conftest.err
6809
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6810
  # Broken: success on invalid input.
6811
continue
6812
else
6813
  echo "$as_me: failed program was:" >&5
6814
sed 's/^/| /' conftest.$ac_ext >&5
6815
6816
  # Passes both tests.
6817
ac_preproc_ok=:
6818
break
6819
fi
6820
6821
rm -f conftest.err conftest.$ac_ext
6822
6823
done
6824
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6825
rm -f conftest.err conftest.$ac_ext
6826
if $ac_preproc_ok; then
6827
  break
6828
fi
6829
6830
    done
6831
    ac_cv_prog_CXXCPP=$CXXCPP
6832
6833
fi
6834
  CXXCPP=$ac_cv_prog_CXXCPP
6835
else
6836
  ac_cv_prog_CXXCPP=$CXXCPP
6837
fi
6838
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6839
echo "${ECHO_T}$CXXCPP" >&6; }
6840
ac_preproc_ok=false
6841
for ac_cxx_preproc_warn_flag in '' yes
6842
do
6843
  # Use a header file that comes with gcc, so configuring glibc
6844
  # with a fresh cross-compiler works.
6845
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6846
  # <limits.h> exists even on freestanding compilers.
6847
  # On the NeXT, cc -E runs the code through the compiler's parser,
6848
  # not just through cpp. "Syntax error" is here to catch this case.
6849
  cat >conftest.$ac_ext <<_ACEOF
6850
/* confdefs.h.  */
6851
_ACEOF
6852
cat confdefs.h >>conftest.$ac_ext
6853
cat >>conftest.$ac_ext <<_ACEOF
6854
/* end confdefs.h.  */
6855
#ifdef __STDC__
6856
# include <limits.h>
6857
#else
6858
# include <assert.h>
6859
#endif
6860
		     Syntax error
6861
_ACEOF
6862
if { (ac_try="$ac_cpp conftest.$ac_ext"
6863
case "(($ac_try" in
6864
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865
  *) ac_try_echo=$ac_try;;
6866
esac
6867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6869
  ac_status=$?
6870
  grep -v '^ *+' conftest.er1 >conftest.err
6871
  rm -f conftest.er1
6872
  cat conftest.err >&5
6873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6874
  (exit $ac_status); } >/dev/null && {
6875
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6876
	 test ! -s conftest.err
6877
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6878
  :
6879
else
6880
  echo "$as_me: failed program was:" >&5
6881
sed 's/^/| /' conftest.$ac_ext >&5
6882
6883
  # Broken: fails on valid input.
6884
continue
6885
fi
6886
6887
rm -f conftest.err conftest.$ac_ext
6888
6889
  # OK, works on sane cases.  Now check whether nonexistent headers
6890
  # can be detected and how.
6891
  cat >conftest.$ac_ext <<_ACEOF
6892
/* confdefs.h.  */
6893
_ACEOF
6894
cat confdefs.h >>conftest.$ac_ext
6895
cat >>conftest.$ac_ext <<_ACEOF
6896
/* end confdefs.h.  */
6897
#include <ac_nonexistent.h>
6898
_ACEOF
6899
if { (ac_try="$ac_cpp conftest.$ac_ext"
6900
case "(($ac_try" in
6901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902
  *) ac_try_echo=$ac_try;;
6903
esac
6904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6906
  ac_status=$?
6907
  grep -v '^ *+' conftest.er1 >conftest.err
6908
  rm -f conftest.er1
6909
  cat conftest.err >&5
6910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6911
  (exit $ac_status); } >/dev/null && {
6912
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6913
	 test ! -s conftest.err
6914
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6915
  # Broken: success on invalid input.
6916
continue
6917
else
6918
  echo "$as_me: failed program was:" >&5
6919
sed 's/^/| /' conftest.$ac_ext >&5
6920
6921
  # Passes both tests.
6922
ac_preproc_ok=:
6923
break
6924
fi
6925
6926
rm -f conftest.err conftest.$ac_ext
6927
6928
done
6929
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6930
rm -f conftest.err conftest.$ac_ext
6931
if $ac_preproc_ok; then
6932
  :
6933
else
6934
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6935
See \`config.log' for more details." >&5
6936
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6937
See \`config.log' for more details." >&2;}
6938
   { (exit 1); exit 1; }; }
6939
fi
6940
6941
ac_ext=cpp
6942
ac_cpp='$CXXCPP $CPPFLAGS'
6943
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6946
6947
fi
6948
6949
6950
ac_ext=f
6951
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6952
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6954
if test -n "$ac_tool_prefix"; then
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6955
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
1 by Sebastien Bacher
Import upstream version 0.7.1
6956
  do
6957
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6958
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6959
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6960
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6961
if test "${ac_cv_prog_F77+set}" = set; then
6962
  echo $ECHO_N "(cached) $ECHO_C" >&6
6963
else
6964
  if test -n "$F77"; then
6965
  ac_cv_prog_F77="$F77" # Let the user override the test.
6966
else
6967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968
for as_dir in $PATH
6969
do
6970
  IFS=$as_save_IFS
6971
  test -z "$as_dir" && as_dir=.
6972
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6973
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
6974
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6975
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976
    break 2
6977
  fi
6978
done
6979
done
6980
IFS=$as_save_IFS
6981
6982
fi
6983
fi
6984
F77=$ac_cv_prog_F77
6985
if test -n "$F77"; then
6986
  { echo "$as_me:$LINENO: result: $F77" >&5
6987
echo "${ECHO_T}$F77" >&6; }
6988
else
6989
  { echo "$as_me:$LINENO: result: no" >&5
6990
echo "${ECHO_T}no" >&6; }
6991
fi
6992
6993
6994
    test -n "$F77" && break
6995
  done
6996
fi
6997
if test -z "$F77"; then
6998
  ac_ct_F77=$F77
1.1.1 by Michael Vogt
Import upstream version 0.7.2
6999
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
1 by Sebastien Bacher
Import upstream version 0.7.1
7000
do
7001
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7002
set dummy $ac_prog; ac_word=$2
7003
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7004
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7006
  echo $ECHO_N "(cached) $ECHO_C" >&6
7007
else
7008
  if test -n "$ac_ct_F77"; then
7009
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7010
else
7011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012
for as_dir in $PATH
7013
do
7014
  IFS=$as_save_IFS
7015
  test -z "$as_dir" && as_dir=.
7016
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7017
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
7018
    ac_cv_prog_ac_ct_F77="$ac_prog"
7019
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020
    break 2
7021
  fi
7022
done
7023
done
7024
IFS=$as_save_IFS
7025
7026
fi
7027
fi
7028
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7029
if test -n "$ac_ct_F77"; then
7030
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7031
echo "${ECHO_T}$ac_ct_F77" >&6; }
7032
else
7033
  { echo "$as_me:$LINENO: result: no" >&5
7034
echo "${ECHO_T}no" >&6; }
7035
fi
7036
7037
7038
  test -n "$ac_ct_F77" && break
7039
done
7040
7041
  if test "x$ac_ct_F77" = x; then
7042
    F77=""
7043
  else
7044
    case $cross_compiling:$ac_tool_warned in
7045
yes:)
7046
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7047
whose name does not start with the host triplet.  If you think this
7048
configuration is useful to you, please write to autoconf@gnu.org." >&5
7049
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7050
whose name does not start with the host triplet.  If you think this
7051
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7052
ac_tool_warned=yes ;;
7053
esac
7054
    F77=$ac_ct_F77
7055
  fi
7056
fi
7057
7058
7059
# Provide some information about the compiler.
7060
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7061
ac_compiler=`set X $ac_compile; echo $2`
7062
{ (ac_try="$ac_compiler --version >&5"
7063
case "(($ac_try" in
7064
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065
  *) ac_try_echo=$ac_try;;
7066
esac
7067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7068
  (eval "$ac_compiler --version >&5") 2>&5
7069
  ac_status=$?
7070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071
  (exit $ac_status); }
7072
{ (ac_try="$ac_compiler -v >&5"
7073
case "(($ac_try" in
7074
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075
  *) ac_try_echo=$ac_try;;
7076
esac
7077
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078
  (eval "$ac_compiler -v >&5") 2>&5
7079
  ac_status=$?
7080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081
  (exit $ac_status); }
7082
{ (ac_try="$ac_compiler -V >&5"
7083
case "(($ac_try" in
7084
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085
  *) ac_try_echo=$ac_try;;
7086
esac
7087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7088
  (eval "$ac_compiler -V >&5") 2>&5
7089
  ac_status=$?
7090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091
  (exit $ac_status); }
7092
rm -f a.out
7093
7094
# If we don't use `.F' as extension, the preprocessor is not run on the
7095
# input file.  (Note that this only needs to work for GNU compilers.)
7096
ac_save_ext=$ac_ext
7097
ac_ext=F
7098
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7099
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7100
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7101
  echo $ECHO_N "(cached) $ECHO_C" >&6
7102
else
7103
  cat >conftest.$ac_ext <<_ACEOF
7104
      program main
7105
#ifndef __GNUC__
7106
       choke me
7107
#endif
7108
7109
      end
7110
_ACEOF
7111
rm -f conftest.$ac_objext
7112
if { (ac_try="$ac_compile"
7113
case "(($ac_try" in
7114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115
  *) ac_try_echo=$ac_try;;
7116
esac
7117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118
  (eval "$ac_compile") 2>conftest.er1
7119
  ac_status=$?
7120
  grep -v '^ *+' conftest.er1 >conftest.err
7121
  rm -f conftest.er1
7122
  cat conftest.err >&5
7123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7124
  (exit $ac_status); } && {
7125
	 test -z "$ac_f77_werror_flag" ||
7126
	 test ! -s conftest.err
7127
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
7128
  ac_compiler_gnu=yes
7129
else
7130
  echo "$as_me: failed program was:" >&5
7131
sed 's/^/| /' conftest.$ac_ext >&5
7132
7133
	ac_compiler_gnu=no
7134
fi
7135
7136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7138
7139
fi
7140
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7141
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7142
ac_ext=$ac_save_ext
7143
ac_test_FFLAGS=${FFLAGS+set}
7144
ac_save_FFLAGS=$FFLAGS
7145
FFLAGS=
7146
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7147
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7148
if test "${ac_cv_prog_f77_g+set}" = set; then
7149
  echo $ECHO_N "(cached) $ECHO_C" >&6
7150
else
7151
  FFLAGS=-g
7152
cat >conftest.$ac_ext <<_ACEOF
7153
      program main
7154
7155
      end
7156
_ACEOF
7157
rm -f conftest.$ac_objext
7158
if { (ac_try="$ac_compile"
7159
case "(($ac_try" in
7160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161
  *) ac_try_echo=$ac_try;;
7162
esac
7163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164
  (eval "$ac_compile") 2>conftest.er1
7165
  ac_status=$?
7166
  grep -v '^ *+' conftest.er1 >conftest.err
7167
  rm -f conftest.er1
7168
  cat conftest.err >&5
7169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7170
  (exit $ac_status); } && {
7171
	 test -z "$ac_f77_werror_flag" ||
7172
	 test ! -s conftest.err
7173
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
7174
  ac_cv_prog_f77_g=yes
7175
else
7176
  echo "$as_me: failed program was:" >&5
7177
sed 's/^/| /' conftest.$ac_ext >&5
7178
7179
	ac_cv_prog_f77_g=no
7180
fi
7181
7182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183
7184
fi
7185
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7186
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7187
if test "$ac_test_FFLAGS" = set; then
7188
  FFLAGS=$ac_save_FFLAGS
7189
elif test $ac_cv_prog_f77_g = yes; then
7190
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7191
    FFLAGS="-g -O2"
7192
  else
7193
    FFLAGS="-g"
7194
  fi
7195
else
7196
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7197
    FFLAGS="-O2"
7198
  else
7199
    FFLAGS=
7200
  fi
7201
fi
7202
7203
G77=`test $ac_compiler_gnu = yes && echo yes`
7204
ac_ext=c
7205
ac_cpp='$CPP $CPPFLAGS'
7206
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209
7210
7211
7212
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7213
7214
# find the maximum length of command line arguments
7215
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7216
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7217
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7218
  echo $ECHO_N "(cached) $ECHO_C" >&6
7219
else
7220
    i=0
7221
  teststring="ABCD"
7222
7223
  case $build_os in
7224
  msdosdjgpp*)
7225
    # On DJGPP, this test can blow up pretty badly due to problems in libc
7226
    # (any single argument exceeding 2000 bytes causes a buffer overrun
7227
    # during glob expansion).  Even if it were fixed, the result of this
7228
    # check would be larger than it should be.
7229
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7230
    ;;
7231
7232
  gnu*)
7233
    # Under GNU Hurd, this test is not required because there is
7234
    # no limit to the length of command line arguments.
7235
    # Libtool will interpret -1 as no limit whatsoever
7236
    lt_cv_sys_max_cmd_len=-1;
7237
    ;;
7238
7239
  cygwin* | mingw*)
7240
    # On Win9x/ME, this test blows up -- it succeeds, but takes
7241
    # about 5 minutes as the teststring grows exponentially.
7242
    # Worse, since 9x/ME are not pre-emptively multitasking,
7243
    # you end up with a "frozen" computer, even though with patience
7244
    # the test eventually succeeds (with a max line length of 256k).
7245
    # Instead, let's just punt: use the minimum linelength reported by
7246
    # all of the supported platforms: 8192 (on NT/2K/XP).
7247
    lt_cv_sys_max_cmd_len=8192;
7248
    ;;
7249
7250
  amigaos*)
7251
    # On AmigaOS with pdksh, this test takes hours, literally.
7252
    # So we just punt and use a minimum line length of 8192.
7253
    lt_cv_sys_max_cmd_len=8192;
7254
    ;;
7255
7256
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7257
    # This has been around since 386BSD, at least.  Likely further.
7258
    if test -x /sbin/sysctl; then
7259
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7260
    elif test -x /usr/sbin/sysctl; then
7261
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7262
    else
7263
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7264
    fi
7265
    # And add a safety zone
7266
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7267
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7268
    ;;
7269
7270
  interix*)
7271
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7272
    lt_cv_sys_max_cmd_len=196608
7273
    ;;
7274
7275
  osf*)
7276
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7277
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7278
    # nice to cause kernel panics so lets avoid the loop below.
7279
    # First set a reasonable default.
7280
    lt_cv_sys_max_cmd_len=16384
7281
    #
7282
    if test -x /sbin/sysconfig; then
7283
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7284
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7285
      esac
7286
    fi
7287
    ;;
7288
  sco3.2v5*)
7289
    lt_cv_sys_max_cmd_len=102400
7290
    ;;
7291
  sysv5* | sco5v6* | sysv4.2uw2*)
7292
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7293
    if test -n "$kargmax"; then
7294
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7295
    else
7296
      lt_cv_sys_max_cmd_len=32768
7297
    fi
7298
    ;;
7299
  *)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7300
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7301
    if test -n "$lt_cv_sys_max_cmd_len"; then
7302
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7303
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7304
    else
7305
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7306
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
1 by Sebastien Bacher
Import upstream version 0.7.1
7307
	       = "XX$teststring") >/dev/null 2>&1 &&
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7308
	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
7309
	      lt_cv_sys_max_cmd_len=$new_result &&
7310
	      test $i != 17 # 1/2 MB should be enough
7311
      do
7312
        i=`expr $i + 1`
7313
        teststring=$teststring$teststring
7314
      done
7315
      teststring=
7316
      # Add a significant safety factor because C++ compilers can tack on massive
7317
      # amounts of additional arguments before passing them to the linker.
7318
      # It appears as though 1/2 is a usable value.
7319
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7320
    fi
1 by Sebastien Bacher
Import upstream version 0.7.1
7321
    ;;
7322
  esac
7323
7324
fi
7325
7326
if test -n $lt_cv_sys_max_cmd_len ; then
7327
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7328
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7329
else
7330
  { echo "$as_me:$LINENO: result: none" >&5
7331
echo "${ECHO_T}none" >&6; }
7332
fi
7333
7334
7335
7336
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7337
1 by Sebastien Bacher
Import upstream version 0.7.1
7338
# Check for command to grab the raw symbol name followed by C symbol from nm.
7339
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7340
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7341
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7342
  echo $ECHO_N "(cached) $ECHO_C" >&6
7343
else
7344
7345
# These are sane defaults that work on at least a few old systems.
7346
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7347
7348
# Character class describing NM global symbol codes.
7349
symcode='[BCDEGRST]'
7350
7351
# Regexp to match symbols that can be accessed directly from C.
7352
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7353
7354
# Transform an extracted symbol line into a proper C declaration
7355
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7356
7357
# Transform an extracted symbol line into symbol name and symbol address
7358
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7359
7360
# Define system-specific variables.
7361
case $host_os in
7362
aix*)
7363
  symcode='[BCDT]'
7364
  ;;
7365
cygwin* | mingw* | pw32*)
7366
  symcode='[ABCDGISTW]'
7367
  ;;
7368
hpux*) # Its linker distinguishes data from code symbols
7369
  if test "$host_cpu" = ia64; then
7370
    symcode='[ABCDEGRST]'
7371
  fi
7372
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7373
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7374
  ;;
7375
linux* | k*bsd*-gnu)
7376
  if test "$host_cpu" = ia64; then
7377
    symcode='[ABCDGIRSTW]'
7378
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7379
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7380
  fi
7381
  ;;
7382
irix* | nonstopux*)
7383
  symcode='[BCDEGRST]'
7384
  ;;
7385
osf*)
7386
  symcode='[BCDEGQRST]'
7387
  ;;
7388
solaris*)
7389
  symcode='[BDRT]'
7390
  ;;
7391
sco3.2v5*)
7392
  symcode='[DT]'
7393
  ;;
7394
sysv4.2uw2*)
7395
  symcode='[DT]'
7396
  ;;
7397
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7398
  symcode='[ABDT]'
7399
  ;;
7400
sysv4)
7401
  symcode='[DFNSTU]'
7402
  ;;
7403
esac
7404
7405
# Handle CRLF in mingw tool chain
7406
opt_cr=
7407
case $build_os in
7408
mingw*)
7409
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7410
  ;;
7411
esac
7412
7413
# If we're using GNU nm, then use its standard symbol codes.
7414
case `$NM -V 2>&1` in
7415
*GNU* | *'with BFD'*)
7416
  symcode='[ABCDGIRSTW]' ;;
7417
esac
7418
7419
# Try without a prefix undercore, then with it.
7420
for ac_symprfx in "" "_"; do
7421
7422
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7423
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7424
7425
  # Write the raw and C identifiers.
7426
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7427
7428
  # Check to see that the pipe works correctly.
7429
  pipe_works=no
7430
7431
  rm -f conftest*
7432
  cat > conftest.$ac_ext <<EOF
7433
#ifdef __cplusplus
7434
extern "C" {
7435
#endif
7436
char nm_test_var;
7437
void nm_test_func(){}
7438
#ifdef __cplusplus
7439
}
7440
#endif
7441
int main(){nm_test_var='a';nm_test_func();return(0);}
7442
EOF
7443
7444
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445
  (eval $ac_compile) 2>&5
7446
  ac_status=$?
7447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448
  (exit $ac_status); }; then
7449
    # Now try to grab the symbols.
7450
    nlist=conftest.nm
7451
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7452
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7453
  ac_status=$?
7454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455
  (exit $ac_status); } && test -s "$nlist"; then
7456
      # Try sorting and uniquifying the output.
7457
      if sort "$nlist" | uniq > "$nlist"T; then
7458
	mv -f "$nlist"T "$nlist"
7459
      else
7460
	rm -f "$nlist"T
7461
      fi
7462
7463
      # Make sure that we snagged all the symbols we need.
7464
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7465
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7466
	  cat <<EOF > conftest.$ac_ext
7467
#ifdef __cplusplus
7468
extern "C" {
7469
#endif
7470
7471
EOF
7472
	  # Now generate the symbol file.
7473
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7474
7475
	  cat <<EOF >> conftest.$ac_ext
7476
#if defined (__STDC__) && __STDC__
7477
# define lt_ptr_t void *
7478
#else
7479
# define lt_ptr_t char *
7480
# define const
7481
#endif
7482
7483
/* The mapping between symbol names and symbols. */
7484
const struct {
7485
  const char *name;
7486
  lt_ptr_t address;
7487
}
7488
lt_preloaded_symbols[] =
7489
{
7490
EOF
7491
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7492
	  cat <<\EOF >> conftest.$ac_ext
7493
  {0, (lt_ptr_t) 0}
7494
};
7495
7496
#ifdef __cplusplus
7497
}
7498
#endif
7499
EOF
7500
	  # Now try linking the two files.
7501
	  mv conftest.$ac_objext conftstm.$ac_objext
7502
	  lt_save_LIBS="$LIBS"
7503
	  lt_save_CFLAGS="$CFLAGS"
7504
	  LIBS="conftstm.$ac_objext"
7505
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7506
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7507
  (eval $ac_link) 2>&5
7508
  ac_status=$?
7509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7511
	    pipe_works=yes
7512
	  fi
7513
	  LIBS="$lt_save_LIBS"
7514
	  CFLAGS="$lt_save_CFLAGS"
7515
	else
7516
	  echo "cannot find nm_test_func in $nlist" >&5
7517
	fi
7518
      else
7519
	echo "cannot find nm_test_var in $nlist" >&5
7520
      fi
7521
    else
7522
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7523
    fi
7524
  else
7525
    echo "$progname: failed program was:" >&5
7526
    cat conftest.$ac_ext >&5
7527
  fi
7528
  rm -f conftest* conftst*
7529
7530
  # Do not use the global_symbol_pipe unless it works.
7531
  if test "$pipe_works" = yes; then
7532
    break
7533
  else
7534
    lt_cv_sys_global_symbol_pipe=
7535
  fi
7536
done
7537
7538
fi
7539
7540
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7541
  lt_cv_sys_global_symbol_to_cdecl=
7542
fi
7543
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7544
  { echo "$as_me:$LINENO: result: failed" >&5
7545
echo "${ECHO_T}failed" >&6; }
7546
else
7547
  { echo "$as_me:$LINENO: result: ok" >&5
7548
echo "${ECHO_T}ok" >&6; }
7549
fi
7550
7551
{ echo "$as_me:$LINENO: checking for objdir" >&5
7552
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7553
if test "${lt_cv_objdir+set}" = set; then
7554
  echo $ECHO_N "(cached) $ECHO_C" >&6
7555
else
7556
  rm -f .libs 2>/dev/null
7557
mkdir .libs 2>/dev/null
7558
if test -d .libs; then
7559
  lt_cv_objdir=.libs
7560
else
7561
  # MS-DOS does not allow filenames that begin with a dot.
7562
  lt_cv_objdir=_libs
7563
fi
7564
rmdir .libs 2>/dev/null
7565
fi
7566
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7567
echo "${ECHO_T}$lt_cv_objdir" >&6; }
7568
objdir=$lt_cv_objdir
7569
7570
7571
7572
7573
7574
case $host_os in
7575
aix3*)
7576
  # AIX sometimes has problems with the GCC collect2 program.  For some
7577
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7578
  # vanish in a puff of smoke.
7579
  if test "X${COLLECT_NAMES+set}" != Xset; then
7580
    COLLECT_NAMES=
7581
    export COLLECT_NAMES
7582
  fi
7583
  ;;
7584
esac
7585
7586
# Sed substitution that helps us do robust quoting.  It backslashifies
7587
# metacharacters that are still active within double-quoted strings.
7588
Xsed='sed -e 1s/^X//'
7589
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7590
7591
# Same as above, but do not quote variable references.
7592
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7593
7594
# Sed substitution to delay expansion of an escaped shell variable in a
7595
# double_quote_subst'ed string.
7596
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7597
7598
# Sed substitution to avoid accidental globbing in evaled expressions
7599
no_glob_subst='s/\*/\\\*/g'
7600
7601
# Constants:
7602
rm="rm -f"
7603
7604
# Global variables:
7605
default_ofile=libtool
7606
can_build_shared=yes
7607
7608
# All known linkers require a `.a' archive for static linking (except MSVC,
7609
# which needs '.lib').
7610
libext=a
7611
ltmain="$ac_aux_dir/ltmain.sh"
7612
ofile="$default_ofile"
7613
with_gnu_ld="$lt_cv_prog_gnu_ld"
7614
7615
if test -n "$ac_tool_prefix"; then
7616
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7617
set dummy ${ac_tool_prefix}ar; ac_word=$2
7618
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7619
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7620
if test "${ac_cv_prog_AR+set}" = set; then
7621
  echo $ECHO_N "(cached) $ECHO_C" >&6
7622
else
7623
  if test -n "$AR"; then
7624
  ac_cv_prog_AR="$AR" # Let the user override the test.
7625
else
7626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627
for as_dir in $PATH
7628
do
7629
  IFS=$as_save_IFS
7630
  test -z "$as_dir" && as_dir=.
7631
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7632
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
7633
    ac_cv_prog_AR="${ac_tool_prefix}ar"
7634
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635
    break 2
7636
  fi
7637
done
7638
done
7639
IFS=$as_save_IFS
7640
7641
fi
7642
fi
7643
AR=$ac_cv_prog_AR
7644
if test -n "$AR"; then
7645
  { echo "$as_me:$LINENO: result: $AR" >&5
7646
echo "${ECHO_T}$AR" >&6; }
7647
else
7648
  { echo "$as_me:$LINENO: result: no" >&5
7649
echo "${ECHO_T}no" >&6; }
7650
fi
7651
7652
7653
fi
7654
if test -z "$ac_cv_prog_AR"; then
7655
  ac_ct_AR=$AR
7656
  # Extract the first word of "ar", so it can be a program name with args.
7657
set dummy ar; ac_word=$2
7658
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7661
  echo $ECHO_N "(cached) $ECHO_C" >&6
7662
else
7663
  if test -n "$ac_ct_AR"; then
7664
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7665
else
7666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667
for as_dir in $PATH
7668
do
7669
  IFS=$as_save_IFS
7670
  test -z "$as_dir" && as_dir=.
7671
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7672
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
7673
    ac_cv_prog_ac_ct_AR="ar"
7674
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675
    break 2
7676
  fi
7677
done
7678
done
7679
IFS=$as_save_IFS
7680
7681
fi
7682
fi
7683
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7684
if test -n "$ac_ct_AR"; then
7685
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7686
echo "${ECHO_T}$ac_ct_AR" >&6; }
7687
else
7688
  { echo "$as_me:$LINENO: result: no" >&5
7689
echo "${ECHO_T}no" >&6; }
7690
fi
7691
7692
  if test "x$ac_ct_AR" = x; then
7693
    AR="false"
7694
  else
7695
    case $cross_compiling:$ac_tool_warned in
7696
yes:)
7697
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7698
whose name does not start with the host triplet.  If you think this
7699
configuration is useful to you, please write to autoconf@gnu.org." >&5
7700
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7701
whose name does not start with the host triplet.  If you think this
7702
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7703
ac_tool_warned=yes ;;
7704
esac
7705
    AR=$ac_ct_AR
7706
  fi
7707
else
7708
  AR="$ac_cv_prog_AR"
7709
fi
7710
7711
if test -n "$ac_tool_prefix"; then
7712
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7713
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7714
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7715
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716
if test "${ac_cv_prog_RANLIB+set}" = set; then
7717
  echo $ECHO_N "(cached) $ECHO_C" >&6
7718
else
7719
  if test -n "$RANLIB"; then
7720
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7721
else
7722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723
for as_dir in $PATH
7724
do
7725
  IFS=$as_save_IFS
7726
  test -z "$as_dir" && as_dir=.
7727
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7728
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
7729
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7730
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731
    break 2
7732
  fi
7733
done
7734
done
7735
IFS=$as_save_IFS
7736
7737
fi
7738
fi
7739
RANLIB=$ac_cv_prog_RANLIB
7740
if test -n "$RANLIB"; then
7741
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7742
echo "${ECHO_T}$RANLIB" >&6; }
7743
else
7744
  { echo "$as_me:$LINENO: result: no" >&5
7745
echo "${ECHO_T}no" >&6; }
7746
fi
7747
7748
7749
fi
7750
if test -z "$ac_cv_prog_RANLIB"; then
7751
  ac_ct_RANLIB=$RANLIB
7752
  # Extract the first word of "ranlib", so it can be a program name with args.
7753
set dummy ranlib; ac_word=$2
7754
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7756
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7757
  echo $ECHO_N "(cached) $ECHO_C" >&6
7758
else
7759
  if test -n "$ac_ct_RANLIB"; then
7760
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7761
else
7762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763
for as_dir in $PATH
7764
do
7765
  IFS=$as_save_IFS
7766
  test -z "$as_dir" && as_dir=.
7767
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7768
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
7769
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771
    break 2
7772
  fi
7773
done
7774
done
7775
IFS=$as_save_IFS
7776
7777
fi
7778
fi
7779
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7780
if test -n "$ac_ct_RANLIB"; then
7781
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7782
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7783
else
7784
  { echo "$as_me:$LINENO: result: no" >&5
7785
echo "${ECHO_T}no" >&6; }
7786
fi
7787
7788
  if test "x$ac_ct_RANLIB" = x; then
7789
    RANLIB=":"
7790
  else
7791
    case $cross_compiling:$ac_tool_warned in
7792
yes:)
7793
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7794
whose name does not start with the host triplet.  If you think this
7795
configuration is useful to you, please write to autoconf@gnu.org." >&5
7796
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7797
whose name does not start with the host triplet.  If you think this
7798
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7799
ac_tool_warned=yes ;;
7800
esac
7801
    RANLIB=$ac_ct_RANLIB
7802
  fi
7803
else
7804
  RANLIB="$ac_cv_prog_RANLIB"
7805
fi
7806
7807
if test -n "$ac_tool_prefix"; then
7808
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7809
set dummy ${ac_tool_prefix}strip; ac_word=$2
7810
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7811
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812
if test "${ac_cv_prog_STRIP+set}" = set; then
7813
  echo $ECHO_N "(cached) $ECHO_C" >&6
7814
else
7815
  if test -n "$STRIP"; then
7816
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7817
else
7818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819
for as_dir in $PATH
7820
do
7821
  IFS=$as_save_IFS
7822
  test -z "$as_dir" && as_dir=.
7823
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7824
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
7825
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7826
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827
    break 2
7828
  fi
7829
done
7830
done
7831
IFS=$as_save_IFS
7832
7833
fi
7834
fi
7835
STRIP=$ac_cv_prog_STRIP
7836
if test -n "$STRIP"; then
7837
  { echo "$as_me:$LINENO: result: $STRIP" >&5
7838
echo "${ECHO_T}$STRIP" >&6; }
7839
else
7840
  { echo "$as_me:$LINENO: result: no" >&5
7841
echo "${ECHO_T}no" >&6; }
7842
fi
7843
7844
7845
fi
7846
if test -z "$ac_cv_prog_STRIP"; then
7847
  ac_ct_STRIP=$STRIP
7848
  # Extract the first word of "strip", so it can be a program name with args.
7849
set dummy strip; ac_word=$2
7850
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7851
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7853
  echo $ECHO_N "(cached) $ECHO_C" >&6
7854
else
7855
  if test -n "$ac_ct_STRIP"; then
7856
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7857
else
7858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859
for as_dir in $PATH
7860
do
7861
  IFS=$as_save_IFS
7862
  test -z "$as_dir" && as_dir=.
7863
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7864
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
7865
    ac_cv_prog_ac_ct_STRIP="strip"
7866
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867
    break 2
7868
  fi
7869
done
7870
done
7871
IFS=$as_save_IFS
7872
7873
fi
7874
fi
7875
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7876
if test -n "$ac_ct_STRIP"; then
7877
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7878
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7879
else
7880
  { echo "$as_me:$LINENO: result: no" >&5
7881
echo "${ECHO_T}no" >&6; }
7882
fi
7883
7884
  if test "x$ac_ct_STRIP" = x; then
7885
    STRIP=":"
7886
  else
7887
    case $cross_compiling:$ac_tool_warned in
7888
yes:)
7889
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7890
whose name does not start with the host triplet.  If you think this
7891
configuration is useful to you, please write to autoconf@gnu.org." >&5
7892
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7893
whose name does not start with the host triplet.  If you think this
7894
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7895
ac_tool_warned=yes ;;
7896
esac
7897
    STRIP=$ac_ct_STRIP
7898
  fi
7899
else
7900
  STRIP="$ac_cv_prog_STRIP"
7901
fi
7902
7903
7904
old_CC="$CC"
7905
old_CFLAGS="$CFLAGS"
7906
7907
# Set sane defaults for various variables
7908
test -z "$AR" && AR=ar
7909
test -z "$AR_FLAGS" && AR_FLAGS=cru
7910
test -z "$AS" && AS=as
7911
test -z "$CC" && CC=cc
7912
test -z "$LTCC" && LTCC=$CC
7913
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7914
test -z "$DLLTOOL" && DLLTOOL=dlltool
7915
test -z "$LD" && LD=ld
7916
test -z "$LN_S" && LN_S="ln -s"
7917
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7918
test -z "$NM" && NM=nm
7919
test -z "$SED" && SED=sed
7920
test -z "$OBJDUMP" && OBJDUMP=objdump
7921
test -z "$RANLIB" && RANLIB=:
7922
test -z "$STRIP" && STRIP=:
7923
test -z "$ac_objext" && ac_objext=o
7924
7925
# Determine commands to create old-style static archives.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
7926
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1 by Sebastien Bacher
Import upstream version 0.7.1
7927
old_postinstall_cmds='chmod 644 $oldlib'
7928
old_postuninstall_cmds=
7929
7930
if test -n "$RANLIB"; then
7931
  case $host_os in
7932
  openbsd*)
7933
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7934
    ;;
7935
  *)
7936
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7937
    ;;
7938
  esac
7939
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7940
fi
7941
7942
for cc_temp in $compiler""; do
7943
  case $cc_temp in
7944
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7945
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7946
    \-*) ;;
7947
    *) break;;
7948
  esac
7949
done
7950
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7951
7952
7953
# Only perform the check for file, if the check method requires it
7954
case $deplibs_check_method in
7955
file_magic*)
7956
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7957
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7958
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7959
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7960
  echo $ECHO_N "(cached) $ECHO_C" >&6
7961
else
7962
  case $MAGIC_CMD in
7963
[\\/*] |  ?:[\\/]*)
7964
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7965
  ;;
7966
*)
7967
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7968
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7969
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7970
  for ac_dir in $ac_dummy; do
7971
    IFS="$lt_save_ifs"
7972
    test -z "$ac_dir" && ac_dir=.
7973
    if test -f $ac_dir/${ac_tool_prefix}file; then
7974
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7975
      if test -n "$file_magic_test_file"; then
7976
	case $deplibs_check_method in
7977
	"file_magic "*)
7978
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7979
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7980
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7981
	    $EGREP "$file_magic_regex" > /dev/null; then
7982
	    :
7983
	  else
7984
	    cat <<EOF 1>&2
7985
7986
*** Warning: the command libtool uses to detect shared libraries,
7987
*** $file_magic_cmd, produces output that libtool cannot recognize.
7988
*** The result is that libtool may fail to recognize shared libraries
7989
*** as such.  This will affect the creation of libtool libraries that
7990
*** depend on shared libraries, but programs linked with such libtool
7991
*** libraries will work regardless of this problem.  Nevertheless, you
7992
*** may want to report the problem to your system manager and/or to
7993
*** bug-libtool@gnu.org
7994
7995
EOF
7996
	  fi ;;
7997
	esac
7998
      fi
7999
      break
8000
    fi
8001
  done
8002
  IFS="$lt_save_ifs"
8003
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8004
  ;;
8005
esac
8006
fi
8007
8008
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8009
if test -n "$MAGIC_CMD"; then
8010
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8011
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8012
else
8013
  { echo "$as_me:$LINENO: result: no" >&5
8014
echo "${ECHO_T}no" >&6; }
8015
fi
8016
8017
if test -z "$lt_cv_path_MAGIC_CMD"; then
8018
  if test -n "$ac_tool_prefix"; then
8019
    { echo "$as_me:$LINENO: checking for file" >&5
8020
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8021
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8022
  echo $ECHO_N "(cached) $ECHO_C" >&6
8023
else
8024
  case $MAGIC_CMD in
8025
[\\/*] |  ?:[\\/]*)
8026
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8027
  ;;
8028
*)
8029
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8030
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8031
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8032
  for ac_dir in $ac_dummy; do
8033
    IFS="$lt_save_ifs"
8034
    test -z "$ac_dir" && ac_dir=.
8035
    if test -f $ac_dir/file; then
8036
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8037
      if test -n "$file_magic_test_file"; then
8038
	case $deplibs_check_method in
8039
	"file_magic "*)
8040
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8041
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8043
	    $EGREP "$file_magic_regex" > /dev/null; then
8044
	    :
8045
	  else
8046
	    cat <<EOF 1>&2
8047
8048
*** Warning: the command libtool uses to detect shared libraries,
8049
*** $file_magic_cmd, produces output that libtool cannot recognize.
8050
*** The result is that libtool may fail to recognize shared libraries
8051
*** as such.  This will affect the creation of libtool libraries that
8052
*** depend on shared libraries, but programs linked with such libtool
8053
*** libraries will work regardless of this problem.  Nevertheless, you
8054
*** may want to report the problem to your system manager and/or to
8055
*** bug-libtool@gnu.org
8056
8057
EOF
8058
	  fi ;;
8059
	esac
8060
      fi
8061
      break
8062
    fi
8063
  done
8064
  IFS="$lt_save_ifs"
8065
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8066
  ;;
8067
esac
8068
fi
8069
8070
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8071
if test -n "$MAGIC_CMD"; then
8072
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8073
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8074
else
8075
  { echo "$as_me:$LINENO: result: no" >&5
8076
echo "${ECHO_T}no" >&6; }
8077
fi
8078
8079
  else
8080
    MAGIC_CMD=:
8081
  fi
8082
fi
8083
8084
  fi
8085
  ;;
8086
esac
8087
8088
enable_dlopen=no
8089
enable_win32_dll=no
8090
8091
# Check whether --enable-libtool-lock was given.
8092
if test "${enable_libtool_lock+set}" = set; then
8093
  enableval=$enable_libtool_lock;
8094
fi
8095
8096
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8097
8098
8099
# Check whether --with-pic was given.
8100
if test "${with_pic+set}" = set; then
8101
  withval=$with_pic; pic_mode="$withval"
8102
else
8103
  pic_mode=default
8104
fi
8105
8106
test -z "$pic_mode" && pic_mode=default
8107
8108
# Use C for the default configuration in the libtool script
8109
tagname=
8110
lt_save_CC="$CC"
8111
ac_ext=c
8112
ac_cpp='$CPP $CPPFLAGS'
8113
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116
8117
8118
# Source file extension for C test sources.
8119
ac_ext=c
8120
8121
# Object file extension for compiled C test sources.
8122
objext=o
8123
objext=$objext
8124
8125
# Code to be used in simple compile tests
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8126
lt_simple_compile_test_code="int some_variable = 0;"
1 by Sebastien Bacher
Import upstream version 0.7.1
8127
8128
# Code to be used in simple link tests
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8129
lt_simple_link_test_code='int main(){return(0);}'
1 by Sebastien Bacher
Import upstream version 0.7.1
8130
8131
8132
# If no C compiler was specified, use CC.
8133
LTCC=${LTCC-"$CC"}
8134
8135
# If no C compiler flags were specified, use CFLAGS.
8136
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8137
8138
# Allow CC to be a program name with arguments.
8139
compiler=$CC
8140
8141
8142
# save warnings/boilerplate of simple test code
8143
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8144
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
8145
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8146
_lt_compiler_boilerplate=`cat conftest.err`
8147
$rm conftest*
8148
8149
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8150
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
8151
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8152
_lt_linker_boilerplate=`cat conftest.err`
8153
$rm conftest*
8154
8155
8156
8157
lt_prog_compiler_no_builtin_flag=
8158
8159
if test "$GCC" = yes; then
8160
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8161
8162
8163
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8164
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8165
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8166
  echo $ECHO_N "(cached) $ECHO_C" >&6
8167
else
8168
  lt_cv_prog_compiler_rtti_exceptions=no
8169
  ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8170
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
8171
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8172
   # Insert the option either (1) after the last *FLAGS variable, or
8173
   # (2) before a word containing "conftest.", or (3) at the end.
8174
   # Note that $ac_compile itself does not contain backslashes and begins
8175
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8176
   # The option is referenced via a variable to avoid confusing sed.
8177
   lt_compile=`echo "$ac_compile" | $SED \
8178
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8181
   (eval echo "\"\$as_me:8190: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
8182
   (eval "$lt_compile" 2>conftest.err)
8183
   ac_status=$?
8184
   cat conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8185
   echo "$as_me:8194: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
8186
   if (exit $ac_status) && test -s "$ac_outfile"; then
8187
     # The compiler can only warn and ignore the option if not recognized
8188
     # So say no if there are warnings other than the usual output.
8189
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8190
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8191
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8192
       lt_cv_prog_compiler_rtti_exceptions=yes
8193
     fi
8194
   fi
8195
   $rm conftest*
8196
8197
fi
8198
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8199
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8200
8201
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8202
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8203
else
8204
    :
8205
fi
8206
8207
fi
8208
8209
lt_prog_compiler_wl=
8210
lt_prog_compiler_pic=
8211
lt_prog_compiler_static=
8212
8213
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8214
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8215
8216
  if test "$GCC" = yes; then
8217
    lt_prog_compiler_wl='-Wl,'
8218
    lt_prog_compiler_static='-static'
8219
8220
    case $host_os in
8221
      aix*)
8222
      # All AIX code is PIC.
8223
      if test "$host_cpu" = ia64; then
8224
	# AIX 5 now supports IA64 processor
8225
	lt_prog_compiler_static='-Bstatic'
8226
      fi
8227
      ;;
8228
8229
    amigaos*)
8230
      # FIXME: we need at least 68020 code to build shared libraries, but
8231
      # adding the `-m68020' flag to GCC prevents building anything better,
8232
      # like `-m68040'.
8233
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8234
      ;;
8235
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8236
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Sebastien Bacher
Import upstream version 0.7.1
8237
      # PIC is the default for these OSes.
8238
      ;;
8239
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8240
    mingw* | cygwin* | pw32* | os2*)
1 by Sebastien Bacher
Import upstream version 0.7.1
8241
      # This hack is so that the source file can tell whether it is being
8242
      # built for inclusion in a dll (and should export symbols for example).
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8243
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8244
      # (--disable-auto-import) libraries
1 by Sebastien Bacher
Import upstream version 0.7.1
8245
      lt_prog_compiler_pic='-DDLL_EXPORT'
8246
      ;;
8247
8248
    darwin* | rhapsody*)
8249
      # PIC is the default on this platform
8250
      # Common symbols not allowed in MH_DYLIB files
8251
      lt_prog_compiler_pic='-fno-common'
8252
      ;;
8253
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8254
    interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
8255
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8256
      # Instead, we relocate shared libraries at runtime.
8257
      ;;
8258
8259
    msdosdjgpp*)
8260
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8261
      # on systems that don't support them.
8262
      lt_prog_compiler_can_build_shared=no
8263
      enable_shared=no
8264
      ;;
8265
8266
    sysv4*MP*)
8267
      if test -d /usr/nec; then
8268
	lt_prog_compiler_pic=-Kconform_pic
8269
      fi
8270
      ;;
8271
8272
    hpux*)
8273
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8274
      # not for PA HP-UX.
8275
      case $host_cpu in
8276
      hppa*64*|ia64*)
8277
	# +Z the default
8278
	;;
8279
      *)
8280
	lt_prog_compiler_pic='-fPIC'
8281
	;;
8282
      esac
8283
      ;;
8284
8285
    *)
8286
      lt_prog_compiler_pic='-fPIC'
8287
      ;;
8288
    esac
8289
  else
8290
    # PORTME Check for flag to pass linker flags through the system compiler.
8291
    case $host_os in
8292
    aix*)
8293
      lt_prog_compiler_wl='-Wl,'
8294
      if test "$host_cpu" = ia64; then
8295
	# AIX 5 now supports IA64 processor
8296
	lt_prog_compiler_static='-Bstatic'
8297
      else
8298
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8299
      fi
8300
      ;;
8301
      darwin*)
8302
        # PIC is the default on this platform
8303
        # Common symbols not allowed in MH_DYLIB files
8304
       case $cc_basename in
8305
         xlc*)
8306
         lt_prog_compiler_pic='-qnocommon'
8307
         lt_prog_compiler_wl='-Wl,'
8308
         ;;
8309
       esac
8310
       ;;
8311
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8312
    mingw* | cygwin* | pw32* | os2*)
1 by Sebastien Bacher
Import upstream version 0.7.1
8313
      # This hack is so that the source file can tell whether it is being
8314
      # built for inclusion in a dll (and should export symbols for example).
8315
      lt_prog_compiler_pic='-DDLL_EXPORT'
8316
      ;;
8317
8318
    hpux9* | hpux10* | hpux11*)
8319
      lt_prog_compiler_wl='-Wl,'
8320
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8321
      # not for PA HP-UX.
8322
      case $host_cpu in
8323
      hppa*64*|ia64*)
8324
	# +Z the default
8325
	;;
8326
      *)
8327
	lt_prog_compiler_pic='+Z'
8328
	;;
8329
      esac
8330
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8331
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8332
      ;;
8333
8334
    irix5* | irix6* | nonstopux*)
8335
      lt_prog_compiler_wl='-Wl,'
8336
      # PIC (with -KPIC) is the default.
8337
      lt_prog_compiler_static='-non_shared'
8338
      ;;
8339
8340
    newsos6)
8341
      lt_prog_compiler_pic='-KPIC'
8342
      lt_prog_compiler_static='-Bstatic'
8343
      ;;
8344
8345
    linux* | k*bsd*-gnu)
8346
      case $cc_basename in
8347
      icc* | ecc*)
8348
	lt_prog_compiler_wl='-Wl,'
8349
	lt_prog_compiler_pic='-KPIC'
8350
	lt_prog_compiler_static='-static'
8351
        ;;
8352
      pgcc* | pgf77* | pgf90* | pgf95*)
8353
        # Portland Group compilers (*not* the Pentium gcc compiler,
8354
	# which looks to be a dead project)
8355
	lt_prog_compiler_wl='-Wl,'
8356
	lt_prog_compiler_pic='-fpic'
8357
	lt_prog_compiler_static='-Bstatic'
8358
        ;;
8359
      ccc*)
8360
        lt_prog_compiler_wl='-Wl,'
8361
        # All Alpha code is PIC.
8362
        lt_prog_compiler_static='-non_shared'
8363
        ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8364
      *)
8365
        case `$CC -V 2>&1 | sed 5q` in
8366
	*Sun\ C*)
8367
	  # Sun C 5.9
8368
	  lt_prog_compiler_pic='-KPIC'
8369
	  lt_prog_compiler_static='-Bstatic'
8370
	  lt_prog_compiler_wl='-Wl,'
8371
	  ;;
8372
	*Sun\ F*)
8373
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8374
	  lt_prog_compiler_pic='-KPIC'
8375
	  lt_prog_compiler_static='-Bstatic'
8376
	  lt_prog_compiler_wl=''
8377
	  ;;
8378
	esac
8379
	;;
1 by Sebastien Bacher
Import upstream version 0.7.1
8380
      esac
8381
      ;;
8382
8383
    osf3* | osf4* | osf5*)
8384
      lt_prog_compiler_wl='-Wl,'
8385
      # All OSF/1 code is PIC.
8386
      lt_prog_compiler_static='-non_shared'
8387
      ;;
8388
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8389
    rdos*)
8390
      lt_prog_compiler_static='-non_shared'
8391
      ;;
8392
1 by Sebastien Bacher
Import upstream version 0.7.1
8393
    solaris*)
8394
      lt_prog_compiler_pic='-KPIC'
8395
      lt_prog_compiler_static='-Bstatic'
8396
      case $cc_basename in
8397
      f77* | f90* | f95*)
8398
	lt_prog_compiler_wl='-Qoption ld ';;
8399
      *)
8400
	lt_prog_compiler_wl='-Wl,';;
8401
      esac
8402
      ;;
8403
8404
    sunos4*)
8405
      lt_prog_compiler_wl='-Qoption ld '
8406
      lt_prog_compiler_pic='-PIC'
8407
      lt_prog_compiler_static='-Bstatic'
8408
      ;;
8409
8410
    sysv4 | sysv4.2uw2* | sysv4.3*)
8411
      lt_prog_compiler_wl='-Wl,'
8412
      lt_prog_compiler_pic='-KPIC'
8413
      lt_prog_compiler_static='-Bstatic'
8414
      ;;
8415
8416
    sysv4*MP*)
8417
      if test -d /usr/nec ;then
8418
	lt_prog_compiler_pic='-Kconform_pic'
8419
	lt_prog_compiler_static='-Bstatic'
8420
      fi
8421
      ;;
8422
8423
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8424
      lt_prog_compiler_wl='-Wl,'
8425
      lt_prog_compiler_pic='-KPIC'
8426
      lt_prog_compiler_static='-Bstatic'
8427
      ;;
8428
8429
    unicos*)
8430
      lt_prog_compiler_wl='-Wl,'
8431
      lt_prog_compiler_can_build_shared=no
8432
      ;;
8433
8434
    uts4*)
8435
      lt_prog_compiler_pic='-pic'
8436
      lt_prog_compiler_static='-Bstatic'
8437
      ;;
8438
8439
    *)
8440
      lt_prog_compiler_can_build_shared=no
8441
      ;;
8442
    esac
8443
  fi
8444
8445
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8446
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8447
8448
#
8449
# Check to make sure the PIC flag actually works.
8450
#
8451
if test -n "$lt_prog_compiler_pic"; then
8452
8453
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8454
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8455
if test "${lt_prog_compiler_pic_works+set}" = set; then
8456
  echo $ECHO_N "(cached) $ECHO_C" >&6
8457
else
8458
  lt_prog_compiler_pic_works=no
8459
  ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8460
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
8461
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8462
   # Insert the option either (1) after the last *FLAGS variable, or
8463
   # (2) before a word containing "conftest.", or (3) at the end.
8464
   # Note that $ac_compile itself does not contain backslashes and begins
8465
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8466
   # The option is referenced via a variable to avoid confusing sed.
8467
   lt_compile=`echo "$ac_compile" | $SED \
8468
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8469
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8470
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8471
   (eval echo "\"\$as_me:8480: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
8472
   (eval "$lt_compile" 2>conftest.err)
8473
   ac_status=$?
8474
   cat conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8475
   echo "$as_me:8484: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
8476
   if (exit $ac_status) && test -s "$ac_outfile"; then
8477
     # The compiler can only warn and ignore the option if not recognized
8478
     # So say no if there are warnings other than the usual output.
8479
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8480
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8481
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8482
       lt_prog_compiler_pic_works=yes
8483
     fi
8484
   fi
8485
   $rm conftest*
8486
8487
fi
8488
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8489
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8490
8491
if test x"$lt_prog_compiler_pic_works" = xyes; then
8492
    case $lt_prog_compiler_pic in
8493
     "" | " "*) ;;
8494
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8495
     esac
8496
else
8497
    lt_prog_compiler_pic=
8498
     lt_prog_compiler_can_build_shared=no
8499
fi
8500
8501
fi
8502
case $host_os in
8503
  # For platforms which do not support PIC, -DPIC is meaningless:
8504
  *djgpp*)
8505
    lt_prog_compiler_pic=
8506
    ;;
8507
  *)
8508
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8509
    ;;
8510
esac
8511
8512
#
8513
# Check to make sure the static flag actually works.
8514
#
8515
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8516
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8517
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8518
if test "${lt_prog_compiler_static_works+set}" = set; then
8519
  echo $ECHO_N "(cached) $ECHO_C" >&6
8520
else
8521
  lt_prog_compiler_static_works=no
8522
   save_LDFLAGS="$LDFLAGS"
8523
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8524
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
8525
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8526
     # The linker can only warn and ignore the option if not recognized
8527
     # So say no if there are warnings
8528
     if test -s conftest.err; then
8529
       # Append any errors to the config.log.
8530
       cat conftest.err 1>&5
8531
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8532
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8533
       if diff conftest.exp conftest.er2 >/dev/null; then
8534
         lt_prog_compiler_static_works=yes
8535
       fi
8536
     else
8537
       lt_prog_compiler_static_works=yes
8538
     fi
8539
   fi
8540
   $rm conftest*
8541
   LDFLAGS="$save_LDFLAGS"
8542
8543
fi
8544
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8545
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8546
8547
if test x"$lt_prog_compiler_static_works" = xyes; then
8548
    :
8549
else
8550
    lt_prog_compiler_static=
8551
fi
8552
8553
8554
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8555
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8556
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8557
  echo $ECHO_N "(cached) $ECHO_C" >&6
8558
else
8559
  lt_cv_prog_compiler_c_o=no
8560
   $rm -r conftest 2>/dev/null
8561
   mkdir conftest
8562
   cd conftest
8563
   mkdir out
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8564
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
8565
8566
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8567
   # Insert the option either (1) after the last *FLAGS variable, or
8568
   # (2) before a word containing "conftest.", or (3) at the end.
8569
   # Note that $ac_compile itself does not contain backslashes and begins
8570
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8571
   lt_compile=`echo "$ac_compile" | $SED \
8572
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8573
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8574
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8575
   (eval echo "\"\$as_me:8584: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
8576
   (eval "$lt_compile" 2>out/conftest.err)
8577
   ac_status=$?
8578
   cat out/conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8579
   echo "$as_me:8588: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
8580
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8581
   then
8582
     # The compiler can only warn and ignore the option if not recognized
8583
     # So say no if there are warnings
8584
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8585
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8586
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8587
       lt_cv_prog_compiler_c_o=yes
8588
     fi
8589
   fi
8590
   chmod u+w . 2>&5
8591
   $rm conftest*
8592
   # SGI C++ compiler will create directory out/ii_files/ for
8593
   # template instantiation
8594
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8595
   $rm out/* && rmdir out
8596
   cd ..
8597
   rmdir conftest
8598
   $rm conftest*
8599
8600
fi
8601
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8602
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8603
8604
8605
hard_links="nottested"
8606
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8607
  # do not overwrite the value of need_locks provided by the user
8608
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8609
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8610
  hard_links=yes
8611
  $rm conftest*
8612
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8613
  touch conftest.a
8614
  ln conftest.a conftest.b 2>&5 || hard_links=no
8615
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8616
  { echo "$as_me:$LINENO: result: $hard_links" >&5
8617
echo "${ECHO_T}$hard_links" >&6; }
8618
  if test "$hard_links" = no; then
8619
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8620
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8621
    need_locks=warn
8622
  fi
8623
else
8624
  need_locks=no
8625
fi
8626
8627
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8628
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8629
8630
  runpath_var=
8631
  allow_undefined_flag=
8632
  enable_shared_with_static_runtimes=no
8633
  archive_cmds=
8634
  archive_expsym_cmds=
8635
  old_archive_From_new_cmds=
8636
  old_archive_from_expsyms_cmds=
8637
  export_dynamic_flag_spec=
8638
  whole_archive_flag_spec=
8639
  thread_safe_flag_spec=
8640
  hardcode_libdir_flag_spec=
8641
  hardcode_libdir_flag_spec_ld=
8642
  hardcode_libdir_separator=
8643
  hardcode_direct=no
8644
  hardcode_minus_L=no
8645
  hardcode_shlibpath_var=unsupported
8646
  link_all_deplibs=unknown
8647
  hardcode_automatic=no
8648
  module_cmds=
8649
  module_expsym_cmds=
8650
  always_export_symbols=no
8651
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8652
  # include_expsyms should be a list of space-separated symbols to be *always*
8653
  # included in the symbol list
8654
  include_expsyms=
8655
  # exclude_expsyms can be an extended regexp of symbols to exclude
8656
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8657
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8658
  # as well as any symbol that contains `d'.
8659
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8660
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8661
  # platforms (ab)use it in PIC code, but their linkers get confused if
8662
  # the symbol is explicitly referenced.  Since portable code cannot
8663
  # rely on this symbol name, it's probably fine to never include it in
8664
  # preloaded symbol tables.
8665
  extract_expsyms_cmds=
8666
  # Just being paranoid about ensuring that cc_basename is set.
8667
  for cc_temp in $compiler""; do
8668
  case $cc_temp in
8669
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8670
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8671
    \-*) ;;
8672
    *) break;;
8673
  esac
8674
done
8675
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8676
8677
  case $host_os in
8678
  cygwin* | mingw* | pw32*)
8679
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8680
    # When not using gcc, we currently assume that we are using
8681
    # Microsoft Visual C++.
8682
    if test "$GCC" != yes; then
8683
      with_gnu_ld=no
8684
    fi
8685
    ;;
8686
  interix*)
8687
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8688
    with_gnu_ld=yes
8689
    ;;
8690
  openbsd*)
8691
    with_gnu_ld=no
8692
    ;;
8693
  esac
8694
8695
  ld_shlibs=yes
8696
  if test "$with_gnu_ld" = yes; then
8697
    # If archive_cmds runs LD, not CC, wlarc should be empty
8698
    wlarc='${wl}'
8699
8700
    # Set some defaults for GNU ld with shared library support. These
8701
    # are reset later if shared libraries are not supported. Putting them
8702
    # here allows them to be overridden if necessary.
8703
    runpath_var=LD_RUN_PATH
8704
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8705
    export_dynamic_flag_spec='${wl}--export-dynamic'
8706
    # ancient GNU ld didn't support --whole-archive et. al.
8707
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8708
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8709
      else
8710
  	whole_archive_flag_spec=
8711
    fi
8712
    supports_anon_versioning=no
8713
    case `$LD -v 2>/dev/null` in
8714
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8715
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8716
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8717
      *\ 2.11.*) ;; # other 2.11 versions
8718
      *) supports_anon_versioning=yes ;;
8719
    esac
8720
8721
    # See if GNU ld supports shared libraries.
8722
    case $host_os in
8723
    aix3* | aix4* | aix5*)
8724
      # On AIX/PPC, the GNU linker is very broken
8725
      if test "$host_cpu" != ia64; then
8726
	ld_shlibs=no
8727
	cat <<EOF 1>&2
8728
8729
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8730
*** to be unable to reliably create shared libraries on AIX.
8731
*** Therefore, libtool is disabling shared libraries support.  If you
8732
*** really care for shared libraries, you may want to modify your PATH
8733
*** so that a non-GNU linker is found, and then restart.
8734
8735
EOF
8736
      fi
8737
      ;;
8738
8739
    amigaos*)
8740
      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)'
8741
      hardcode_libdir_flag_spec='-L$libdir'
8742
      hardcode_minus_L=yes
8743
8744
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8745
      # that the semantics of dynamic libraries on AmigaOS, at least up
8746
      # to version 4, is to share data among multiple programs linked
8747
      # with the same dynamic library.  Since this doesn't match the
8748
      # behavior of shared libraries on other platforms, we can't use
8749
      # them.
8750
      ld_shlibs=no
8751
      ;;
8752
8753
    beos*)
8754
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8755
	allow_undefined_flag=unsupported
8756
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8757
	# support --undefined.  This deserves some investigation.  FIXME
8758
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759
      else
8760
	ld_shlibs=no
8761
      fi
8762
      ;;
8763
8764
    cygwin* | mingw* | pw32*)
8765
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8766
      # as there is no search path for DLLs.
8767
      hardcode_libdir_flag_spec='-L$libdir'
8768
      allow_undefined_flag=unsupported
8769
      always_export_symbols=no
8770
      enable_shared_with_static_runtimes=yes
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8771
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1 by Sebastien Bacher
Import upstream version 0.7.1
8772
8773
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8774
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8775
	# If the export-symbols file already is a .def file (1st line
8776
	# is EXPORTS), use it as is; otherwise, prepend...
8777
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8778
	  cp $export_symbols $output_objdir/$soname.def;
8779
	else
8780
	  echo EXPORTS > $output_objdir/$soname.def;
8781
	  cat $export_symbols >> $output_objdir/$soname.def;
8782
	fi~
8783
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8784
      else
8785
	ld_shlibs=no
8786
      fi
8787
      ;;
8788
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8789
    interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
8790
      hardcode_direct=no
8791
      hardcode_shlibpath_var=no
8792
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8793
      export_dynamic_flag_spec='${wl}-E'
8794
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8795
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8796
      # default) and relocated if they conflict, which is a slow very memory
8797
      # consuming and fragmenting process.  To avoid this, we pick a random,
8798
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8799
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8800
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8801
      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'
8802
      ;;
8803
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8804
    gnu* | linux* | k*bsd*-gnu)
1 by Sebastien Bacher
Import upstream version 0.7.1
8805
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8806
	tmp_addflag=
8807
	case $cc_basename,$host_cpu in
8808
	pgcc*)				# Portland Group C compiler
8809
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8810
	  tmp_addflag=' $pic_flag'
8811
	  ;;
8812
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8813
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8814
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8815
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8816
	  tmp_addflag=' -i_dynamic' ;;
8817
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8818
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8819
	ifc* | ifort*)			# Intel Fortran compiler
8820
	  tmp_addflag=' -nofor_main' ;;
8821
	esac
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8822
	case `$CC -V 2>&1 | sed 5q` in
8823
	*Sun\ C*)			# Sun C 5.9
8824
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8825
	  tmp_sharedflag='-G' ;;
8826
	*Sun\ F*)			# Sun Fortran 8.3
8827
	  tmp_sharedflag='-G' ;;
8828
	*)
8829
	  tmp_sharedflag='-shared' ;;
8830
	esac
8831
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1 by Sebastien Bacher
Import upstream version 0.7.1
8832
8833
	if test $supports_anon_versioning = yes; then
8834
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8835
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8836
  $echo "local: *; };" >> $output_objdir/$libname.ver~
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8837
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1 by Sebastien Bacher
Import upstream version 0.7.1
8838
	fi
8839
	link_all_deplibs=no
8840
      else
8841
	ld_shlibs=no
8842
      fi
8843
      ;;
8844
8845
    netbsd* | netbsdelf*-gnu)
8846
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8847
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8848
	wlarc=
8849
      else
8850
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8852
      fi
8853
      ;;
8854
8855
    solaris*)
8856
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8857
	ld_shlibs=no
8858
	cat <<EOF 1>&2
8859
8860
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8861
*** create shared libraries on Solaris systems.  Therefore, libtool
8862
*** is disabling shared libraries support.  We urge you to upgrade GNU
8863
*** binutils to release 2.9.1 or newer.  Another option is to modify
8864
*** your PATH or compiler configuration so that the native linker is
8865
*** used, and then restart.
8866
8867
EOF
8868
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8869
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8871
      else
8872
	ld_shlibs=no
8873
      fi
8874
      ;;
8875
8876
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8877
      case `$LD -v 2>&1` in
8878
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8879
	ld_shlibs=no
8880
	cat <<_LT_EOF 1>&2
8881
8882
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8883
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8884
*** is disabling shared libraries support.  We urge you to upgrade GNU
8885
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8886
*** your PATH or compiler configuration so that the native linker is
8887
*** used, and then restart.
8888
8889
_LT_EOF
8890
	;;
8891
	*)
8892
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8893
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8894
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8895
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8896
	  else
8897
	    ld_shlibs=no
8898
	  fi
8899
	;;
8900
      esac
8901
      ;;
8902
8903
    sunos4*)
8904
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8905
      wlarc=
8906
      hardcode_direct=yes
8907
      hardcode_shlibpath_var=no
8908
      ;;
8909
8910
    *)
8911
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8912
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8914
      else
8915
	ld_shlibs=no
8916
      fi
8917
      ;;
8918
    esac
8919
8920
    if test "$ld_shlibs" = no; then
8921
      runpath_var=
8922
      hardcode_libdir_flag_spec=
8923
      export_dynamic_flag_spec=
8924
      whole_archive_flag_spec=
8925
    fi
8926
  else
8927
    # PORTME fill in a description of your system's linker (not GNU ld)
8928
    case $host_os in
8929
    aix3*)
8930
      allow_undefined_flag=unsupported
8931
      always_export_symbols=yes
8932
      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'
8933
      # Note: this linker hardcodes the directories in LIBPATH if there
8934
      # are no directories specified by -L.
8935
      hardcode_minus_L=yes
8936
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8937
	# Neither direct hardcoding nor static linking is supported with a
8938
	# broken collect2.
8939
	hardcode_direct=unsupported
8940
      fi
8941
      ;;
8942
8943
    aix4* | aix5*)
8944
      if test "$host_cpu" = ia64; then
8945
	# On IA64, the linker does run time linking by default, so we don't
8946
	# have to do anything special.
8947
	aix_use_runtimelinking=no
8948
	exp_sym_flag='-Bexport'
8949
	no_entry_flag=""
8950
      else
8951
	# If we're using GNU nm, then we don't want the "-C" option.
8952
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8953
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8954
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8955
	else
8956
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8957
	fi
8958
	aix_use_runtimelinking=no
8959
8960
	# Test if we are trying to use run time linking or normal
8961
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8962
	# need to do runtime linking.
8963
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8964
	  for ld_flag in $LDFLAGS; do
8965
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8966
  	    aix_use_runtimelinking=yes
8967
  	    break
8968
  	  fi
8969
	  done
8970
	  ;;
8971
	esac
8972
8973
	exp_sym_flag='-bexport'
8974
	no_entry_flag='-bnoentry'
8975
      fi
8976
8977
      # When large executables or shared objects are built, AIX ld can
8978
      # have problems creating the table of contents.  If linking a library
8979
      # or program results in "error TOC overflow" add -mminimal-toc to
8980
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8981
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8982
8983
      archive_cmds=''
8984
      hardcode_direct=yes
8985
      hardcode_libdir_separator=':'
8986
      link_all_deplibs=yes
8987
8988
      if test "$GCC" = yes; then
8989
	case $host_os in aix4.[012]|aix4.[012].*)
8990
	# We only want to do this on AIX 4.2 and lower, the check
8991
	# below for broken collect2 doesn't work under 4.3+
8992
	  collect2name=`${CC} -print-prog-name=collect2`
8993
	  if test -f "$collect2name" && \
8994
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8995
	  then
8996
  	  # We have reworked collect2
1.1.1 by Michael Vogt
Import upstream version 0.7.2
8997
  	  :
1 by Sebastien Bacher
Import upstream version 0.7.1
8998
	  else
8999
  	  # We have old collect2
9000
  	  hardcode_direct=unsupported
9001
  	  # It fails to find uninstalled libraries when the uninstalled
9002
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9003
  	  # to unsupported forces relinking
9004
  	  hardcode_minus_L=yes
9005
  	  hardcode_libdir_flag_spec='-L$libdir'
9006
  	  hardcode_libdir_separator=
9007
	  fi
9008
	  ;;
9009
	esac
9010
	shared_flag='-shared'
9011
	if test "$aix_use_runtimelinking" = yes; then
9012
	  shared_flag="$shared_flag "'${wl}-G'
9013
	fi
9014
      else
9015
	# not using gcc
9016
	if test "$host_cpu" = ia64; then
9017
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9018
  	# chokes on -Wl,-G. The following line is correct:
9019
	  shared_flag='-G'
9020
	else
9021
	  if test "$aix_use_runtimelinking" = yes; then
9022
	    shared_flag='${wl}-G'
9023
	  else
9024
	    shared_flag='${wl}-bM:SRE'
9025
	  fi
9026
	fi
9027
      fi
9028
9029
      # It seems that -bexpall does not export symbols beginning with
9030
      # underscore (_), so it is better to generate a list of symbols to export.
9031
      always_export_symbols=yes
9032
      if test "$aix_use_runtimelinking" = yes; then
9033
	# Warning - without using the other runtime loading flags (-brtl),
9034
	# -berok will link without error, but may produce a broken library.
9035
	allow_undefined_flag='-berok'
9036
       # Determine the default libpath from the value encoded in an empty executable.
9037
       cat >conftest.$ac_ext <<_ACEOF
9038
/* confdefs.h.  */
9039
_ACEOF
9040
cat confdefs.h >>conftest.$ac_ext
9041
cat >>conftest.$ac_ext <<_ACEOF
9042
/* end confdefs.h.  */
9043
9044
int
9045
main ()
9046
{
9047
9048
  ;
9049
  return 0;
9050
}
9051
_ACEOF
9052
rm -f conftest.$ac_objext conftest$ac_exeext
9053
if { (ac_try="$ac_link"
9054
case "(($ac_try" in
9055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056
  *) ac_try_echo=$ac_try;;
9057
esac
9058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059
  (eval "$ac_link") 2>conftest.er1
9060
  ac_status=$?
9061
  grep -v '^ *+' conftest.er1 >conftest.err
9062
  rm -f conftest.er1
9063
  cat conftest.err >&5
9064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9065
  (exit $ac_status); } && {
9066
	 test -z "$ac_c_werror_flag" ||
9067
	 test ! -s conftest.err
9068
       } && test -s conftest$ac_exeext &&
9069
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
9070
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9071
lt_aix_libpath_sed='
9072
    /Import File Strings/,/^$/ {
9073
	/^0/ {
9074
	    s/^0  *\(.*\)$/\1/
9075
	    p
9076
	}
9077
    }'
9078
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Sebastien Bacher
Import upstream version 0.7.1
9079
# Check for a 64-bit object if we didn't find anything.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9080
if test -z "$aix_libpath"; then
9081
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9082
fi
1 by Sebastien Bacher
Import upstream version 0.7.1
9083
else
9084
  echo "$as_me: failed program was:" >&5
9085
sed 's/^/| /' conftest.$ac_ext >&5
9086
9087
9088
fi
9089
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9090
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
9091
      conftest$ac_exeext conftest.$ac_ext
9092
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9093
9094
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9095
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9096
       else
9097
	if test "$host_cpu" = ia64; then
9098
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9099
	  allow_undefined_flag="-z nodefs"
9100
	  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"
9101
	else
9102
	 # Determine the default libpath from the value encoded in an empty executable.
9103
	 cat >conftest.$ac_ext <<_ACEOF
9104
/* confdefs.h.  */
9105
_ACEOF
9106
cat confdefs.h >>conftest.$ac_ext
9107
cat >>conftest.$ac_ext <<_ACEOF
9108
/* end confdefs.h.  */
9109
9110
int
9111
main ()
9112
{
9113
9114
  ;
9115
  return 0;
9116
}
9117
_ACEOF
9118
rm -f conftest.$ac_objext conftest$ac_exeext
9119
if { (ac_try="$ac_link"
9120
case "(($ac_try" in
9121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122
  *) ac_try_echo=$ac_try;;
9123
esac
9124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125
  (eval "$ac_link") 2>conftest.er1
9126
  ac_status=$?
9127
  grep -v '^ *+' conftest.er1 >conftest.err
9128
  rm -f conftest.er1
9129
  cat conftest.err >&5
9130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9131
  (exit $ac_status); } && {
9132
	 test -z "$ac_c_werror_flag" ||
9133
	 test ! -s conftest.err
9134
       } && test -s conftest$ac_exeext &&
9135
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
9136
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9137
lt_aix_libpath_sed='
9138
    /Import File Strings/,/^$/ {
9139
	/^0/ {
9140
	    s/^0  *\(.*\)$/\1/
9141
	    p
9142
	}
9143
    }'
9144
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Sebastien Bacher
Import upstream version 0.7.1
9145
# Check for a 64-bit object if we didn't find anything.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9146
if test -z "$aix_libpath"; then
9147
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9148
fi
1 by Sebastien Bacher
Import upstream version 0.7.1
9149
else
9150
  echo "$as_me: failed program was:" >&5
9151
sed 's/^/| /' conftest.$ac_ext >&5
9152
9153
9154
fi
9155
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9156
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
9157
      conftest$ac_exeext conftest.$ac_ext
9158
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9159
9160
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9161
	  # Warning - without using the other run time loading flags,
9162
	  # -berok will link without error, but may produce a broken library.
9163
	  no_undefined_flag=' ${wl}-bernotok'
9164
	  allow_undefined_flag=' ${wl}-berok'
9165
	  # Exported symbols can be pulled into shared objects from archives
9166
	  whole_archive_flag_spec='$convenience'
9167
	  archive_cmds_need_lc=yes
9168
	  # This is similar to how AIX traditionally builds its shared libraries.
9169
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9170
	fi
9171
      fi
9172
      ;;
9173
9174
    amigaos*)
9175
      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)'
9176
      hardcode_libdir_flag_spec='-L$libdir'
9177
      hardcode_minus_L=yes
9178
      # see comment about different semantics on the GNU ld section
9179
      ld_shlibs=no
9180
      ;;
9181
9182
    bsdi[45]*)
9183
      export_dynamic_flag_spec=-rdynamic
9184
      ;;
9185
9186
    cygwin* | mingw* | pw32*)
9187
      # When not using gcc, we currently assume that we are using
9188
      # Microsoft Visual C++.
9189
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9190
      # no search path for DLLs.
9191
      hardcode_libdir_flag_spec=' '
9192
      allow_undefined_flag=unsupported
9193
      # Tell ltmain to make .lib files, not .a files.
9194
      libext=lib
9195
      # Tell ltmain to make .dll files, not .so files.
9196
      shrext_cmds=".dll"
9197
      # FIXME: Setting linknames here is a bad hack.
9198
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9199
      # The linker will automatically build a .lib file if we build a DLL.
9200
      old_archive_From_new_cmds='true'
9201
      # FIXME: Should let the user specify the lib program.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9202
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1 by Sebastien Bacher
Import upstream version 0.7.1
9203
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9204
      enable_shared_with_static_runtimes=yes
9205
      ;;
9206
9207
    darwin* | rhapsody*)
9208
      case $host_os in
9209
        rhapsody* | darwin1.[012])
9210
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9211
         ;;
9212
       *) # Darwin 1.3 on
9213
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9214
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9215
         else
9216
           case ${MACOSX_DEPLOYMENT_TARGET} in
9217
             10.[012])
9218
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9219
               ;;
9220
             10.*)
9221
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9222
               ;;
9223
           esac
9224
         fi
9225
         ;;
9226
      esac
9227
      archive_cmds_need_lc=no
9228
      hardcode_direct=no
9229
      hardcode_automatic=yes
9230
      hardcode_shlibpath_var=unsupported
9231
      whole_archive_flag_spec=''
9232
      link_all_deplibs=yes
9233
    if test "$GCC" = yes ; then
9234
    	output_verbose_link_cmd='echo'
9235
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9236
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9237
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9238
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9239
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9240
    else
9241
      case $cc_basename in
9242
        xlc*)
9243
         output_verbose_link_cmd='echo'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9244
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1 by Sebastien Bacher
Import upstream version 0.7.1
9245
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9246
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9247
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1 by Sebastien Bacher
Import upstream version 0.7.1
9248
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9249
          ;;
9250
       *)
9251
         ld_shlibs=no
9252
          ;;
9253
      esac
9254
    fi
9255
      ;;
9256
9257
    dgux*)
9258
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9259
      hardcode_libdir_flag_spec='-L$libdir'
9260
      hardcode_shlibpath_var=no
9261
      ;;
9262
9263
    freebsd1*)
9264
      ld_shlibs=no
9265
      ;;
9266
9267
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9268
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9269
    # does not break anything, and helps significantly (at the cost of a little
9270
    # extra space).
9271
    freebsd2.2*)
9272
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9273
      hardcode_libdir_flag_spec='-R$libdir'
9274
      hardcode_direct=yes
9275
      hardcode_shlibpath_var=no
9276
      ;;
9277
9278
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9279
    freebsd2*)
9280
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9281
      hardcode_direct=yes
9282
      hardcode_minus_L=yes
9283
      hardcode_shlibpath_var=no
9284
      ;;
9285
9286
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9287
    freebsd* | dragonfly*)
9288
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9289
      hardcode_libdir_flag_spec='-R$libdir'
9290
      hardcode_direct=yes
9291
      hardcode_shlibpath_var=no
9292
      ;;
9293
9294
    hpux9*)
9295
      if test "$GCC" = yes; then
9296
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9297
      else
9298
	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9299
      fi
9300
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9301
      hardcode_libdir_separator=:
9302
      hardcode_direct=yes
9303
9304
      # hardcode_minus_L: Not really in the search PATH,
9305
      # but as the default location of the library.
9306
      hardcode_minus_L=yes
9307
      export_dynamic_flag_spec='${wl}-E'
9308
      ;;
9309
9310
    hpux10*)
9311
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9312
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9313
      else
9314
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9315
      fi
9316
      if test "$with_gnu_ld" = no; then
9317
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9318
	hardcode_libdir_separator=:
9319
9320
	hardcode_direct=yes
9321
	export_dynamic_flag_spec='${wl}-E'
9322
9323
	# hardcode_minus_L: Not really in the search PATH,
9324
	# but as the default location of the library.
9325
	hardcode_minus_L=yes
9326
      fi
9327
      ;;
9328
9329
    hpux11*)
9330
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9331
	case $host_cpu in
9332
	hppa*64*)
9333
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9334
	  ;;
9335
	ia64*)
9336
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9337
	  ;;
9338
	*)
9339
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9340
	  ;;
9341
	esac
9342
      else
9343
	case $host_cpu in
9344
	hppa*64*)
9345
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9346
	  ;;
9347
	ia64*)
9348
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9349
	  ;;
9350
	*)
9351
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9352
	  ;;
9353
	esac
9354
      fi
9355
      if test "$with_gnu_ld" = no; then
9356
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357
	hardcode_libdir_separator=:
9358
9359
	case $host_cpu in
9360
	hppa*64*|ia64*)
9361
	  hardcode_libdir_flag_spec_ld='+b $libdir'
9362
	  hardcode_direct=no
9363
	  hardcode_shlibpath_var=no
9364
	  ;;
9365
	*)
9366
	  hardcode_direct=yes
9367
	  export_dynamic_flag_spec='${wl}-E'
9368
9369
	  # hardcode_minus_L: Not really in the search PATH,
9370
	  # but as the default location of the library.
9371
	  hardcode_minus_L=yes
9372
	  ;;
9373
	esac
9374
      fi
9375
      ;;
9376
9377
    irix5* | irix6* | nonstopux*)
9378
      if test "$GCC" = yes; then
9379
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9380
      else
9381
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9382
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9383
      fi
9384
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9385
      hardcode_libdir_separator=:
9386
      link_all_deplibs=yes
9387
      ;;
9388
9389
    netbsd* | netbsdelf*-gnu)
9390
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9391
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9392
      else
9393
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9394
      fi
9395
      hardcode_libdir_flag_spec='-R$libdir'
9396
      hardcode_direct=yes
9397
      hardcode_shlibpath_var=no
9398
      ;;
9399
9400
    newsos6)
9401
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402
      hardcode_direct=yes
9403
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404
      hardcode_libdir_separator=:
9405
      hardcode_shlibpath_var=no
9406
      ;;
9407
9408
    openbsd*)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9409
      if test -f /usr/libexec/ld.so; then
9410
	hardcode_direct=yes
9411
	hardcode_shlibpath_var=no
9412
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9413
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9414
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9415
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9416
	  export_dynamic_flag_spec='${wl}-E'
9417
	else
9418
	  case $host_os in
9419
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9420
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9421
	     hardcode_libdir_flag_spec='-R$libdir'
9422
	     ;;
9423
	   *)
9424
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9425
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9426
	     ;;
9427
	  esac
9428
        fi
1 by Sebastien Bacher
Import upstream version 0.7.1
9429
      else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9430
	ld_shlibs=no
1 by Sebastien Bacher
Import upstream version 0.7.1
9431
      fi
9432
      ;;
9433
9434
    os2*)
9435
      hardcode_libdir_flag_spec='-L$libdir'
9436
      hardcode_minus_L=yes
9437
      allow_undefined_flag=unsupported
9438
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9439
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9440
      ;;
9441
9442
    osf3*)
9443
      if test "$GCC" = yes; then
9444
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9445
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9446
      else
9447
	allow_undefined_flag=' -expect_unresolved \*'
9448
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9449
      fi
9450
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451
      hardcode_libdir_separator=:
9452
      ;;
9453
9454
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9455
      if test "$GCC" = yes; then
9456
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9457
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9458
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459
      else
9460
	allow_undefined_flag=' -expect_unresolved \*'
9461
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9462
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9463
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9464
9465
	# Both c and cxx compiler support -rpath directly
9466
	hardcode_libdir_flag_spec='-rpath $libdir'
9467
      fi
9468
      hardcode_libdir_separator=:
9469
      ;;
9470
9471
    solaris*)
9472
      no_undefined_flag=' -z text'
9473
      if test "$GCC" = yes; then
9474
	wlarc='${wl}'
9475
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9476
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9477
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9478
      else
9479
	wlarc=''
9480
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9481
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9482
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9483
      fi
9484
      hardcode_libdir_flag_spec='-R$libdir'
9485
      hardcode_shlibpath_var=no
9486
      case $host_os in
9487
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9488
      *)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9489
	# The compiler driver will combine and reorder linker options,
9490
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9491
	# but is careful enough not to reorder.
1 by Sebastien Bacher
Import upstream version 0.7.1
9492
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9493
	if test "$GCC" = yes; then
9494
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9495
	else
9496
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9497
	fi
9498
	;;
1 by Sebastien Bacher
Import upstream version 0.7.1
9499
      esac
9500
      link_all_deplibs=yes
9501
      ;;
9502
9503
    sunos4*)
9504
      if test "x$host_vendor" = xsequent; then
9505
	# Use $CC to link under sequent, because it throws in some extra .o
9506
	# files that make .init and .fini sections work.
9507
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9508
      else
9509
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9510
      fi
9511
      hardcode_libdir_flag_spec='-L$libdir'
9512
      hardcode_direct=yes
9513
      hardcode_minus_L=yes
9514
      hardcode_shlibpath_var=no
9515
      ;;
9516
9517
    sysv4)
9518
      case $host_vendor in
9519
	sni)
9520
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521
	  hardcode_direct=yes # is this really true???
9522
	;;
9523
	siemens)
9524
	  ## LD is ld it makes a PLAMLIB
9525
	  ## CC just makes a GrossModule.
9526
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9527
	  reload_cmds='$CC -r -o $output$reload_objs'
9528
	  hardcode_direct=no
9529
        ;;
9530
	motorola)
9531
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9533
	;;
9534
      esac
9535
      runpath_var='LD_RUN_PATH'
9536
      hardcode_shlibpath_var=no
9537
      ;;
9538
9539
    sysv4.3*)
9540
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541
      hardcode_shlibpath_var=no
9542
      export_dynamic_flag_spec='-Bexport'
9543
      ;;
9544
9545
    sysv4*MP*)
9546
      if test -d /usr/nec; then
9547
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548
	hardcode_shlibpath_var=no
9549
	runpath_var=LD_RUN_PATH
9550
	hardcode_runpath_var=yes
9551
	ld_shlibs=yes
9552
      fi
9553
      ;;
9554
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9555
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
9556
      no_undefined_flag='${wl}-z,text'
9557
      archive_cmds_need_lc=no
9558
      hardcode_shlibpath_var=no
9559
      runpath_var='LD_RUN_PATH'
9560
9561
      if test "$GCC" = yes; then
9562
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564
      else
9565
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567
      fi
9568
      ;;
9569
9570
    sysv5* | sco3.2v5* | sco5v6*)
9571
      # Note: We can NOT use -z defs as we might desire, because we do not
9572
      # link with -lc, and that would cause any symbols used from libc to
9573
      # always be unresolved, which means just about no library would
9574
      # ever link correctly.  If we're not using GNU ld we use -z text
9575
      # though, which does catch some bad symbols but isn't as heavy-handed
9576
      # as -z defs.
9577
      no_undefined_flag='${wl}-z,text'
9578
      allow_undefined_flag='${wl}-z,nodefs'
9579
      archive_cmds_need_lc=no
9580
      hardcode_shlibpath_var=no
9581
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9582
      hardcode_libdir_separator=':'
9583
      link_all_deplibs=yes
9584
      export_dynamic_flag_spec='${wl}-Bexport'
9585
      runpath_var='LD_RUN_PATH'
9586
9587
      if test "$GCC" = yes; then
9588
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9589
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9590
      else
9591
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9592
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9593
      fi
9594
      ;;
9595
9596
    uts4*)
9597
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598
      hardcode_libdir_flag_spec='-L$libdir'
9599
      hardcode_shlibpath_var=no
9600
      ;;
9601
9602
    *)
9603
      ld_shlibs=no
9604
      ;;
9605
    esac
9606
  fi
9607
9608
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9609
echo "${ECHO_T}$ld_shlibs" >&6; }
9610
test "$ld_shlibs" = no && can_build_shared=no
9611
9612
#
9613
# Do we need to explicitly link libc?
9614
#
9615
case "x$archive_cmds_need_lc" in
9616
x|xyes)
9617
  # Assume -lc should be added
9618
  archive_cmds_need_lc=yes
9619
9620
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9621
    case $archive_cmds in
9622
    *'~'*)
9623
      # FIXME: we may have to deal with multi-command sequences.
9624
      ;;
9625
    '$CC '*)
9626
      # Test whether the compiler implicitly links with -lc since on some
9627
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9628
      # to ld, don't add -lc before -lgcc.
9629
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9630
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9631
      $rm conftest*
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9632
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
9633
9634
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9635
  (eval $ac_compile) 2>&5
9636
  ac_status=$?
9637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638
  (exit $ac_status); } 2>conftest.err; then
9639
        soname=conftest
9640
        lib=conftest
9641
        libobjs=conftest.$ac_objext
9642
        deplibs=
9643
        wl=$lt_prog_compiler_wl
9644
	pic_flag=$lt_prog_compiler_pic
9645
        compiler_flags=-v
9646
        linker_flags=-v
9647
        verstring=
9648
        output_objdir=.
9649
        libname=conftest
9650
        lt_save_allow_undefined_flag=$allow_undefined_flag
9651
        allow_undefined_flag=
9652
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9653
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9654
  ac_status=$?
9655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656
  (exit $ac_status); }
9657
        then
9658
	  archive_cmds_need_lc=no
9659
        else
9660
	  archive_cmds_need_lc=yes
9661
        fi
9662
        allow_undefined_flag=$lt_save_allow_undefined_flag
9663
      else
9664
        cat conftest.err 1>&5
9665
      fi
9666
      $rm conftest*
9667
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9668
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9669
      ;;
9670
    esac
9671
  fi
9672
  ;;
9673
esac
9674
9675
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9676
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9677
library_names_spec=
9678
libname_spec='lib$name'
9679
soname_spec=
9680
shrext_cmds=".so"
9681
postinstall_cmds=
9682
postuninstall_cmds=
9683
finish_cmds=
9684
finish_eval=
9685
shlibpath_var=
9686
shlibpath_overrides_runpath=unknown
9687
version_type=none
9688
dynamic_linker="$host_os ld.so"
9689
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9690
1 by Sebastien Bacher
Import upstream version 0.7.1
9691
if test "$GCC" = yes; then
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9692
  case $host_os in
9693
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9694
    *) lt_awk_arg="/^libraries:/" ;;
9695
  esac
9696
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9697
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1 by Sebastien Bacher
Import upstream version 0.7.1
9698
    # if the path contains ";" then we assume it to be the separator
9699
    # otherwise default to the standard path separator (i.e. ":") - it is
9700
    # assumed that no part of a normal pathname contains ";" but that should
9701
    # okay in the real world where ";" in dirpaths is itself problematic.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9702
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1 by Sebastien Bacher
Import upstream version 0.7.1
9703
  else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9704
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1 by Sebastien Bacher
Import upstream version 0.7.1
9705
  fi
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9706
  # Ok, now we have the path, separated by spaces, we can step through it
9707
  # and add multilib dir if necessary.
9708
  lt_tmp_lt_search_path_spec=
9709
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9710
  for lt_sys_path in $lt_search_path_spec; do
9711
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9712
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9713
    else
9714
      test -d "$lt_sys_path" && \
9715
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9716
    fi
9717
  done
9718
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9719
BEGIN {RS=" "; FS="/|\n";} {
9720
  lt_foo="";
9721
  lt_count=0;
9722
  for (lt_i = NF; lt_i > 0; lt_i--) {
9723
    if ($lt_i != "" && $lt_i != ".") {
9724
      if ($lt_i == "..") {
9725
        lt_count++;
9726
      } else {
9727
        if (lt_count == 0) {
9728
          lt_foo="/" $lt_i lt_foo;
9729
        } else {
9730
          lt_count--;
9731
        }
9732
      }
9733
    }
9734
  }
9735
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9736
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9737
}'`
9738
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1 by Sebastien Bacher
Import upstream version 0.7.1
9739
else
9740
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9741
fi
9742
need_lib_prefix=unknown
9743
hardcode_into_libs=no
9744
9745
# when you set need_version to no, make sure it does not cause -set_version
9746
# flags to be left without arguments
9747
need_version=unknown
9748
9749
case $host_os in
9750
aix3*)
9751
  version_type=linux
9752
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9753
  shlibpath_var=LIBPATH
9754
9755
  # AIX 3 has no versioning support, so we append a major version to the name.
9756
  soname_spec='${libname}${release}${shared_ext}$major'
9757
  ;;
9758
9759
aix4* | aix5*)
9760
  version_type=linux
9761
  need_lib_prefix=no
9762
  need_version=no
9763
  hardcode_into_libs=yes
9764
  if test "$host_cpu" = ia64; then
9765
    # AIX 5 supports IA64
9766
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9767
    shlibpath_var=LD_LIBRARY_PATH
9768
  else
9769
    # With GCC up to 2.95.x, collect2 would create an import file
9770
    # for dependence libraries.  The import file would start with
9771
    # the line `#! .'.  This would cause the generated library to
9772
    # depend on `.', always an invalid library.  This was fixed in
9773
    # development snapshots of GCC prior to 3.0.
9774
    case $host_os in
9775
      aix4 | aix4.[01] | aix4.[01].*)
9776
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9777
	   echo ' yes '
9778
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9779
	:
9780
      else
9781
	can_build_shared=no
9782
      fi
9783
      ;;
9784
    esac
9785
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9786
    # soname into executable. Probably we can add versioning support to
9787
    # collect2, so additional links can be useful in future.
9788
    if test "$aix_use_runtimelinking" = yes; then
9789
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9790
      # instead of lib<name>.a to let people know that these are not
9791
      # typical AIX shared libraries.
9792
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793
    else
9794
      # We preserve .a as extension for shared libraries through AIX4.2
9795
      # and later when we are not doing run time linking.
9796
      library_names_spec='${libname}${release}.a $libname.a'
9797
      soname_spec='${libname}${release}${shared_ext}$major'
9798
    fi
9799
    shlibpath_var=LIBPATH
9800
  fi
9801
  ;;
9802
9803
amigaos*)
9804
  library_names_spec='$libname.ixlibrary $libname.a'
9805
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9806
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9807
  ;;
9808
9809
beos*)
9810
  library_names_spec='${libname}${shared_ext}'
9811
  dynamic_linker="$host_os ld.so"
9812
  shlibpath_var=LIBRARY_PATH
9813
  ;;
9814
9815
bsdi[45]*)
9816
  version_type=linux
9817
  need_version=no
9818
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819
  soname_spec='${libname}${release}${shared_ext}$major'
9820
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9821
  shlibpath_var=LD_LIBRARY_PATH
9822
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9823
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9824
  # the default ld.so.conf also contains /usr/contrib/lib and
9825
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9826
  # libtool to hard-code these into programs
9827
  ;;
9828
9829
cygwin* | mingw* | pw32*)
9830
  version_type=windows
9831
  shrext_cmds=".dll"
9832
  need_version=no
9833
  need_lib_prefix=no
9834
9835
  case $GCC,$host_os in
9836
  yes,cygwin* | yes,mingw* | yes,pw32*)
9837
    library_names_spec='$libname.dll.a'
9838
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9839
    postinstall_cmds='base_file=`basename \${file}`~
9840
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9841
      dldir=$destdir/`dirname \$dlpath`~
9842
      test -d \$dldir || mkdir -p \$dldir~
9843
      $install_prog $dir/$dlname \$dldir/$dlname~
9844
      chmod a+x \$dldir/$dlname'
9845
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9846
      dlpath=$dir/\$dldll~
9847
       $rm \$dlpath'
9848
    shlibpath_overrides_runpath=yes
9849
9850
    case $host_os in
9851
    cygwin*)
9852
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9853
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9854
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9855
      ;;
9856
    mingw*)
9857
      # MinGW DLLs use traditional 'lib' prefix
9858
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9859
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9860
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9861
        # It is most probably a Windows format PATH printed by
9862
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9863
        # path with ; separators, and with drive letters. We can handle the
9864
        # drive letters (cygwin fileutils understands them), so leave them,
9865
        # especially as we might pass files found there to a mingw objdump,
9866
        # which wouldn't understand a cygwinified path. Ahh.
9867
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9868
      else
9869
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9870
      fi
9871
      ;;
9872
    pw32*)
9873
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9874
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9875
      ;;
9876
    esac
9877
    ;;
9878
9879
  *)
9880
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9881
    ;;
9882
  esac
9883
  dynamic_linker='Win32 ld.exe'
9884
  # FIXME: first we should search . and the directory the executable is in
9885
  shlibpath_var=PATH
9886
  ;;
9887
9888
darwin* | rhapsody*)
9889
  dynamic_linker="$host_os dyld"
9890
  version_type=darwin
9891
  need_lib_prefix=no
9892
  need_version=no
9893
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9894
  soname_spec='${libname}${release}${major}$shared_ext'
9895
  shlibpath_overrides_runpath=yes
9896
  shlibpath_var=DYLD_LIBRARY_PATH
9897
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9898
9899
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1 by Sebastien Bacher
Import upstream version 0.7.1
9900
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9901
  ;;
9902
9903
dgux*)
9904
  version_type=linux
9905
  need_lib_prefix=no
9906
  need_version=no
9907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9908
  soname_spec='${libname}${release}${shared_ext}$major'
9909
  shlibpath_var=LD_LIBRARY_PATH
9910
  ;;
9911
9912
freebsd1*)
9913
  dynamic_linker=no
9914
  ;;
9915
9916
freebsd* | dragonfly*)
9917
  # DragonFly does not have aout.  When/if they implement a new
9918
  # versioning mechanism, adjust this.
9919
  if test -x /usr/bin/objformat; then
9920
    objformat=`/usr/bin/objformat`
9921
  else
9922
    case $host_os in
9923
    freebsd[123]*) objformat=aout ;;
9924
    *) objformat=elf ;;
9925
    esac
9926
  fi
9927
  version_type=freebsd-$objformat
9928
  case $version_type in
9929
    freebsd-elf*)
9930
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9931
      need_version=no
9932
      need_lib_prefix=no
9933
      ;;
9934
    freebsd-*)
9935
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9936
      need_version=yes
9937
      ;;
9938
  esac
9939
  shlibpath_var=LD_LIBRARY_PATH
9940
  case $host_os in
9941
  freebsd2*)
9942
    shlibpath_overrides_runpath=yes
9943
    ;;
9944
  freebsd3.[01]* | freebsdelf3.[01]*)
9945
    shlibpath_overrides_runpath=yes
9946
    hardcode_into_libs=yes
9947
    ;;
9948
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9949
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9950
    shlibpath_overrides_runpath=no
9951
    hardcode_into_libs=yes
9952
    ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
9953
  *) # from 4.6 on, and DragonFly
1 by Sebastien Bacher
Import upstream version 0.7.1
9954
    shlibpath_overrides_runpath=yes
9955
    hardcode_into_libs=yes
9956
    ;;
9957
  esac
9958
  ;;
9959
9960
gnu*)
9961
  version_type=linux
9962
  need_lib_prefix=no
9963
  need_version=no
9964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9965
  soname_spec='${libname}${release}${shared_ext}$major'
9966
  shlibpath_var=LD_LIBRARY_PATH
9967
  hardcode_into_libs=yes
9968
  ;;
9969
9970
hpux9* | hpux10* | hpux11*)
9971
  # Give a soname corresponding to the major version so that dld.sl refuses to
9972
  # link against other versions.
9973
  version_type=sunos
9974
  need_lib_prefix=no
9975
  need_version=no
9976
  case $host_cpu in
9977
  ia64*)
9978
    shrext_cmds='.so'
9979
    hardcode_into_libs=yes
9980
    dynamic_linker="$host_os dld.so"
9981
    shlibpath_var=LD_LIBRARY_PATH
9982
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9983
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984
    soname_spec='${libname}${release}${shared_ext}$major'
9985
    if test "X$HPUX_IA64_MODE" = X32; then
9986
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9987
    else
9988
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9989
    fi
9990
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9991
    ;;
9992
   hppa*64*)
9993
     shrext_cmds='.sl'
9994
     hardcode_into_libs=yes
9995
     dynamic_linker="$host_os dld.sl"
9996
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9997
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999
     soname_spec='${libname}${release}${shared_ext}$major'
10000
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10001
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10002
     ;;
10003
   *)
10004
    shrext_cmds='.sl'
10005
    dynamic_linker="$host_os dld.sl"
10006
    shlibpath_var=SHLIB_PATH
10007
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10008
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009
    soname_spec='${libname}${release}${shared_ext}$major'
10010
    ;;
10011
  esac
10012
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10013
  postinstall_cmds='chmod 555 $lib'
10014
  ;;
10015
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10016
interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
10017
  version_type=linux
10018
  need_lib_prefix=no
10019
  need_version=no
10020
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10021
  soname_spec='${libname}${release}${shared_ext}$major'
10022
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10023
  shlibpath_var=LD_LIBRARY_PATH
10024
  shlibpath_overrides_runpath=no
10025
  hardcode_into_libs=yes
10026
  ;;
10027
10028
irix5* | irix6* | nonstopux*)
10029
  case $host_os in
10030
    nonstopux*) version_type=nonstopux ;;
10031
    *)
10032
	if test "$lt_cv_prog_gnu_ld" = yes; then
10033
		version_type=linux
10034
	else
10035
		version_type=irix
10036
	fi ;;
10037
  esac
10038
  need_lib_prefix=no
10039
  need_version=no
10040
  soname_spec='${libname}${release}${shared_ext}$major'
10041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10042
  case $host_os in
10043
  irix5* | nonstopux*)
10044
    libsuff= shlibsuff=
10045
    ;;
10046
  *)
10047
    case $LD in # libtool.m4 will add one of these switches to LD
10048
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10049
      libsuff= shlibsuff= libmagic=32-bit;;
10050
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10051
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10052
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10053
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10054
    *) libsuff= shlibsuff= libmagic=never-match;;
10055
    esac
10056
    ;;
10057
  esac
10058
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10059
  shlibpath_overrides_runpath=no
10060
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10061
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10062
  hardcode_into_libs=yes
10063
  ;;
10064
10065
# No shared lib support for Linux oldld, aout, or coff.
10066
linux*oldld* | linux*aout* | linux*coff*)
10067
  dynamic_linker=no
10068
  ;;
10069
10070
# This must be Linux ELF.
10071
linux* | k*bsd*-gnu)
10072
  version_type=linux
10073
  need_lib_prefix=no
10074
  need_version=no
10075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076
  soname_spec='${libname}${release}${shared_ext}$major'
10077
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10078
  shlibpath_var=LD_LIBRARY_PATH
10079
  shlibpath_overrides_runpath=no
10080
  # This implies no fast_install, which is unacceptable.
10081
  # Some rework will be needed to allow for fast_install
10082
  # before this can be enabled.
10083
  hardcode_into_libs=yes
10084
10085
  # Append ld.so.conf contents to the search path
10086
  if test -f /etc/ld.so.conf; then
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10087
    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;/^$/d' | tr '\n' ' '`
1 by Sebastien Bacher
Import upstream version 0.7.1
10088
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10089
  fi
10090
10091
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10092
  # powerpc, because MkLinux only supported shared libraries with the
10093
  # GNU dynamic linker.  Since this was broken with cross compilers,
10094
  # most powerpc-linux boxes support dynamic linking these days and
10095
  # people can always --disable-shared, the test was removed, and we
10096
  # assume the GNU/Linux dynamic linker is in use.
10097
  dynamic_linker='GNU/Linux ld.so'
10098
  ;;
10099
10100
netbsdelf*-gnu)
10101
  version_type=linux
10102
  need_lib_prefix=no
10103
  need_version=no
10104
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10105
  soname_spec='${libname}${release}${shared_ext}$major'
10106
  shlibpath_var=LD_LIBRARY_PATH
10107
  shlibpath_overrides_runpath=no
10108
  hardcode_into_libs=yes
10109
  dynamic_linker='NetBSD ld.elf_so'
10110
  ;;
10111
10112
netbsd*)
10113
  version_type=sunos
10114
  need_lib_prefix=no
10115
  need_version=no
10116
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10117
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10118
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10119
    dynamic_linker='NetBSD (a.out) ld.so'
10120
  else
10121
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10122
    soname_spec='${libname}${release}${shared_ext}$major'
10123
    dynamic_linker='NetBSD ld.elf_so'
10124
  fi
10125
  shlibpath_var=LD_LIBRARY_PATH
10126
  shlibpath_overrides_runpath=yes
10127
  hardcode_into_libs=yes
10128
  ;;
10129
10130
newsos6)
10131
  version_type=linux
10132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133
  shlibpath_var=LD_LIBRARY_PATH
10134
  shlibpath_overrides_runpath=yes
10135
  ;;
10136
10137
nto-qnx*)
10138
  version_type=linux
10139
  need_lib_prefix=no
10140
  need_version=no
10141
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142
  soname_spec='${libname}${release}${shared_ext}$major'
10143
  shlibpath_var=LD_LIBRARY_PATH
10144
  shlibpath_overrides_runpath=yes
10145
  ;;
10146
10147
openbsd*)
10148
  version_type=sunos
10149
  sys_lib_dlsearch_path_spec="/usr/lib"
10150
  need_lib_prefix=no
10151
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10152
  case $host_os in
10153
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10154
    *)                         need_version=no  ;;
10155
  esac
10156
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10157
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10158
  shlibpath_var=LD_LIBRARY_PATH
10159
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10160
    case $host_os in
10161
      openbsd2.[89] | openbsd2.[89].*)
10162
	shlibpath_overrides_runpath=no
10163
	;;
10164
      *)
10165
	shlibpath_overrides_runpath=yes
10166
	;;
10167
      esac
10168
  else
10169
    shlibpath_overrides_runpath=yes
10170
  fi
10171
  ;;
10172
10173
os2*)
10174
  libname_spec='$name'
10175
  shrext_cmds=".dll"
10176
  need_lib_prefix=no
10177
  library_names_spec='$libname${shared_ext} $libname.a'
10178
  dynamic_linker='OS/2 ld.exe'
10179
  shlibpath_var=LIBPATH
10180
  ;;
10181
10182
osf3* | osf4* | osf5*)
10183
  version_type=osf
10184
  need_lib_prefix=no
10185
  need_version=no
10186
  soname_spec='${libname}${release}${shared_ext}$major'
10187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188
  shlibpath_var=LD_LIBRARY_PATH
10189
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10190
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10191
  ;;
10192
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10193
rdos*)
10194
  dynamic_linker=no
10195
  ;;
10196
1 by Sebastien Bacher
Import upstream version 0.7.1
10197
solaris*)
10198
  version_type=linux
10199
  need_lib_prefix=no
10200
  need_version=no
10201
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202
  soname_spec='${libname}${release}${shared_ext}$major'
10203
  shlibpath_var=LD_LIBRARY_PATH
10204
  shlibpath_overrides_runpath=yes
10205
  hardcode_into_libs=yes
10206
  # ldd complains unless libraries are executable
10207
  postinstall_cmds='chmod +x $lib'
10208
  ;;
10209
10210
sunos4*)
10211
  version_type=sunos
10212
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10214
  shlibpath_var=LD_LIBRARY_PATH
10215
  shlibpath_overrides_runpath=yes
10216
  if test "$with_gnu_ld" = yes; then
10217
    need_lib_prefix=no
10218
  fi
10219
  need_version=yes
10220
  ;;
10221
10222
sysv4 | sysv4.3*)
10223
  version_type=linux
10224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225
  soname_spec='${libname}${release}${shared_ext}$major'
10226
  shlibpath_var=LD_LIBRARY_PATH
10227
  case $host_vendor in
10228
    sni)
10229
      shlibpath_overrides_runpath=no
10230
      need_lib_prefix=no
10231
      export_dynamic_flag_spec='${wl}-Blargedynsym'
10232
      runpath_var=LD_RUN_PATH
10233
      ;;
10234
    siemens)
10235
      need_lib_prefix=no
10236
      ;;
10237
    motorola)
10238
      need_lib_prefix=no
10239
      need_version=no
10240
      shlibpath_overrides_runpath=no
10241
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10242
      ;;
10243
  esac
10244
  ;;
10245
10246
sysv4*MP*)
10247
  if test -d /usr/nec ;then
10248
    version_type=linux
10249
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10250
    soname_spec='$libname${shared_ext}.$major'
10251
    shlibpath_var=LD_LIBRARY_PATH
10252
  fi
10253
  ;;
10254
10255
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10256
  version_type=freebsd-elf
10257
  need_lib_prefix=no
10258
  need_version=no
10259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10260
  soname_spec='${libname}${release}${shared_ext}$major'
10261
  shlibpath_var=LD_LIBRARY_PATH
10262
  hardcode_into_libs=yes
10263
  if test "$with_gnu_ld" = yes; then
10264
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10265
    shlibpath_overrides_runpath=no
10266
  else
10267
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10268
    shlibpath_overrides_runpath=yes
10269
    case $host_os in
10270
      sco3.2v5*)
10271
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10272
	;;
10273
    esac
10274
  fi
10275
  sys_lib_dlsearch_path_spec='/usr/lib'
10276
  ;;
10277
10278
uts4*)
10279
  version_type=linux
10280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281
  soname_spec='${libname}${release}${shared_ext}$major'
10282
  shlibpath_var=LD_LIBRARY_PATH
10283
  ;;
10284
10285
*)
10286
  dynamic_linker=no
10287
  ;;
10288
esac
10289
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10290
echo "${ECHO_T}$dynamic_linker" >&6; }
10291
test "$dynamic_linker" = no && can_build_shared=no
10292
10293
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10294
if test "$GCC" = yes; then
10295
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10296
fi
10297
10298
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10299
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10300
hardcode_action=
10301
if test -n "$hardcode_libdir_flag_spec" || \
10302
   test -n "$runpath_var" || \
10303
   test "X$hardcode_automatic" = "Xyes" ; then
10304
10305
  # We can hardcode non-existant directories.
10306
  if test "$hardcode_direct" != no &&
10307
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10308
     # have to relink, otherwise we might link with an installed library
10309
     # when we should be linking with a yet-to-be-installed one
10310
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10311
     test "$hardcode_minus_L" != no; then
10312
    # Linking always hardcodes the temporary library directory.
10313
    hardcode_action=relink
10314
  else
10315
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10316
    hardcode_action=immediate
10317
  fi
10318
else
10319
  # We cannot hardcode anything, or else we can only hardcode existing
10320
  # directories.
10321
  hardcode_action=unsupported
10322
fi
10323
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10324
echo "${ECHO_T}$hardcode_action" >&6; }
10325
10326
if test "$hardcode_action" = relink; then
10327
  # Fast installation is not supported
10328
  enable_fast_install=no
10329
elif test "$shlibpath_overrides_runpath" = yes ||
10330
     test "$enable_shared" = no; then
10331
  # Fast installation is not necessary
10332
  enable_fast_install=needless
10333
fi
10334
10335
striplib=
10336
old_striplib=
10337
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10338
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10339
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10340
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10341
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10342
  { echo "$as_me:$LINENO: result: yes" >&5
10343
echo "${ECHO_T}yes" >&6; }
10344
else
10345
# FIXME - insert some real tests, host_os isn't really good enough
10346
  case $host_os in
10347
   darwin*)
10348
       if test -n "$STRIP" ; then
10349
         striplib="$STRIP -x"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10350
         old_striplib="$STRIP -S"
1 by Sebastien Bacher
Import upstream version 0.7.1
10351
         { echo "$as_me:$LINENO: result: yes" >&5
10352
echo "${ECHO_T}yes" >&6; }
10353
       else
10354
  { echo "$as_me:$LINENO: result: no" >&5
10355
echo "${ECHO_T}no" >&6; }
10356
fi
10357
       ;;
10358
   *)
10359
  { echo "$as_me:$LINENO: result: no" >&5
10360
echo "${ECHO_T}no" >&6; }
10361
    ;;
10362
  esac
10363
fi
10364
10365
if test "x$enable_dlopen" != xyes; then
10366
  enable_dlopen=unknown
10367
  enable_dlopen_self=unknown
10368
  enable_dlopen_self_static=unknown
10369
else
10370
  lt_cv_dlopen=no
10371
  lt_cv_dlopen_libs=
10372
10373
  case $host_os in
10374
  beos*)
10375
    lt_cv_dlopen="load_add_on"
10376
    lt_cv_dlopen_libs=
10377
    lt_cv_dlopen_self=yes
10378
    ;;
10379
10380
  mingw* | pw32*)
10381
    lt_cv_dlopen="LoadLibrary"
10382
    lt_cv_dlopen_libs=
10383
   ;;
10384
10385
  cygwin*)
10386
    lt_cv_dlopen="dlopen"
10387
    lt_cv_dlopen_libs=
10388
   ;;
10389
10390
  darwin*)
10391
  # if libdl is installed we need to link against it
10392
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10393
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10394
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10395
  echo $ECHO_N "(cached) $ECHO_C" >&6
10396
else
10397
  ac_check_lib_save_LIBS=$LIBS
10398
LIBS="-ldl  $LIBS"
10399
cat >conftest.$ac_ext <<_ACEOF
10400
/* confdefs.h.  */
10401
_ACEOF
10402
cat confdefs.h >>conftest.$ac_ext
10403
cat >>conftest.$ac_ext <<_ACEOF
10404
/* end confdefs.h.  */
10405
10406
/* Override any GCC internal prototype to avoid an error.
10407
   Use char because int might match the return type of a GCC
10408
   builtin and then its argument prototype would still apply.  */
10409
#ifdef __cplusplus
10410
extern "C"
10411
#endif
10412
char dlopen ();
10413
int
10414
main ()
10415
{
10416
return dlopen ();
10417
  ;
10418
  return 0;
10419
}
10420
_ACEOF
10421
rm -f conftest.$ac_objext conftest$ac_exeext
10422
if { (ac_try="$ac_link"
10423
case "(($ac_try" in
10424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425
  *) ac_try_echo=$ac_try;;
10426
esac
10427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428
  (eval "$ac_link") 2>conftest.er1
10429
  ac_status=$?
10430
  grep -v '^ *+' conftest.er1 >conftest.err
10431
  rm -f conftest.er1
10432
  cat conftest.err >&5
10433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10434
  (exit $ac_status); } && {
10435
	 test -z "$ac_c_werror_flag" ||
10436
	 test ! -s conftest.err
10437
       } && test -s conftest$ac_exeext &&
10438
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
10439
  ac_cv_lib_dl_dlopen=yes
10440
else
10441
  echo "$as_me: failed program was:" >&5
10442
sed 's/^/| /' conftest.$ac_ext >&5
10443
10444
	ac_cv_lib_dl_dlopen=no
10445
fi
10446
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10447
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
10448
      conftest$ac_exeext conftest.$ac_ext
10449
LIBS=$ac_check_lib_save_LIBS
10450
fi
10451
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10452
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10453
if test $ac_cv_lib_dl_dlopen = yes; then
10454
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10455
else
10456
10457
    lt_cv_dlopen="dyld"
10458
    lt_cv_dlopen_libs=
10459
    lt_cv_dlopen_self=yes
10460
10461
fi
10462
10463
   ;;
10464
10465
  *)
10466
    { echo "$as_me:$LINENO: checking for shl_load" >&5
10467
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10468
if test "${ac_cv_func_shl_load+set}" = set; then
10469
  echo $ECHO_N "(cached) $ECHO_C" >&6
10470
else
10471
  cat >conftest.$ac_ext <<_ACEOF
10472
/* confdefs.h.  */
10473
_ACEOF
10474
cat confdefs.h >>conftest.$ac_ext
10475
cat >>conftest.$ac_ext <<_ACEOF
10476
/* end confdefs.h.  */
10477
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10478
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10479
#define shl_load innocuous_shl_load
10480
10481
/* System header to define __stub macros and hopefully few prototypes,
10482
    which can conflict with char shl_load (); below.
10483
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10484
    <limits.h> exists even on freestanding compilers.  */
10485
10486
#ifdef __STDC__
10487
# include <limits.h>
10488
#else
10489
# include <assert.h>
10490
#endif
10491
10492
#undef shl_load
10493
10494
/* Override any GCC internal prototype to avoid an error.
10495
   Use char because int might match the return type of a GCC
10496
   builtin and then its argument prototype would still apply.  */
10497
#ifdef __cplusplus
10498
extern "C"
10499
#endif
10500
char shl_load ();
10501
/* The GNU C library defines this for functions which it implements
10502
    to always fail with ENOSYS.  Some functions are actually named
10503
    something starting with __ and the normal name is an alias.  */
10504
#if defined __stub_shl_load || defined __stub___shl_load
10505
choke me
10506
#endif
10507
10508
int
10509
main ()
10510
{
10511
return shl_load ();
10512
  ;
10513
  return 0;
10514
}
10515
_ACEOF
10516
rm -f conftest.$ac_objext conftest$ac_exeext
10517
if { (ac_try="$ac_link"
10518
case "(($ac_try" in
10519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520
  *) ac_try_echo=$ac_try;;
10521
esac
10522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523
  (eval "$ac_link") 2>conftest.er1
10524
  ac_status=$?
10525
  grep -v '^ *+' conftest.er1 >conftest.err
10526
  rm -f conftest.er1
10527
  cat conftest.err >&5
10528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10529
  (exit $ac_status); } && {
10530
	 test -z "$ac_c_werror_flag" ||
10531
	 test ! -s conftest.err
10532
       } && test -s conftest$ac_exeext &&
10533
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
10534
  ac_cv_func_shl_load=yes
10535
else
10536
  echo "$as_me: failed program was:" >&5
10537
sed 's/^/| /' conftest.$ac_ext >&5
10538
10539
	ac_cv_func_shl_load=no
10540
fi
10541
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10542
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
10543
      conftest$ac_exeext conftest.$ac_ext
10544
fi
10545
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10546
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10547
if test $ac_cv_func_shl_load = yes; then
10548
  lt_cv_dlopen="shl_load"
10549
else
10550
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10551
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10552
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10553
  echo $ECHO_N "(cached) $ECHO_C" >&6
10554
else
10555
  ac_check_lib_save_LIBS=$LIBS
10556
LIBS="-ldld  $LIBS"
10557
cat >conftest.$ac_ext <<_ACEOF
10558
/* confdefs.h.  */
10559
_ACEOF
10560
cat confdefs.h >>conftest.$ac_ext
10561
cat >>conftest.$ac_ext <<_ACEOF
10562
/* end confdefs.h.  */
10563
10564
/* Override any GCC internal prototype to avoid an error.
10565
   Use char because int might match the return type of a GCC
10566
   builtin and then its argument prototype would still apply.  */
10567
#ifdef __cplusplus
10568
extern "C"
10569
#endif
10570
char shl_load ();
10571
int
10572
main ()
10573
{
10574
return shl_load ();
10575
  ;
10576
  return 0;
10577
}
10578
_ACEOF
10579
rm -f conftest.$ac_objext conftest$ac_exeext
10580
if { (ac_try="$ac_link"
10581
case "(($ac_try" in
10582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583
  *) ac_try_echo=$ac_try;;
10584
esac
10585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586
  (eval "$ac_link") 2>conftest.er1
10587
  ac_status=$?
10588
  grep -v '^ *+' conftest.er1 >conftest.err
10589
  rm -f conftest.er1
10590
  cat conftest.err >&5
10591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10592
  (exit $ac_status); } && {
10593
	 test -z "$ac_c_werror_flag" ||
10594
	 test ! -s conftest.err
10595
       } && test -s conftest$ac_exeext &&
10596
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
10597
  ac_cv_lib_dld_shl_load=yes
10598
else
10599
  echo "$as_me: failed program was:" >&5
10600
sed 's/^/| /' conftest.$ac_ext >&5
10601
10602
	ac_cv_lib_dld_shl_load=no
10603
fi
10604
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10605
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
10606
      conftest$ac_exeext conftest.$ac_ext
10607
LIBS=$ac_check_lib_save_LIBS
10608
fi
10609
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10610
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10611
if test $ac_cv_lib_dld_shl_load = yes; then
10612
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10613
else
10614
  { echo "$as_me:$LINENO: checking for dlopen" >&5
10615
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10616
if test "${ac_cv_func_dlopen+set}" = set; then
10617
  echo $ECHO_N "(cached) $ECHO_C" >&6
10618
else
10619
  cat >conftest.$ac_ext <<_ACEOF
10620
/* confdefs.h.  */
10621
_ACEOF
10622
cat confdefs.h >>conftest.$ac_ext
10623
cat >>conftest.$ac_ext <<_ACEOF
10624
/* end confdefs.h.  */
10625
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10626
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10627
#define dlopen innocuous_dlopen
10628
10629
/* System header to define __stub macros and hopefully few prototypes,
10630
    which can conflict with char dlopen (); below.
10631
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10632
    <limits.h> exists even on freestanding compilers.  */
10633
10634
#ifdef __STDC__
10635
# include <limits.h>
10636
#else
10637
# include <assert.h>
10638
#endif
10639
10640
#undef dlopen
10641
10642
/* Override any GCC internal prototype to avoid an error.
10643
   Use char because int might match the return type of a GCC
10644
   builtin and then its argument prototype would still apply.  */
10645
#ifdef __cplusplus
10646
extern "C"
10647
#endif
10648
char dlopen ();
10649
/* The GNU C library defines this for functions which it implements
10650
    to always fail with ENOSYS.  Some functions are actually named
10651
    something starting with __ and the normal name is an alias.  */
10652
#if defined __stub_dlopen || defined __stub___dlopen
10653
choke me
10654
#endif
10655
10656
int
10657
main ()
10658
{
10659
return dlopen ();
10660
  ;
10661
  return 0;
10662
}
10663
_ACEOF
10664
rm -f conftest.$ac_objext conftest$ac_exeext
10665
if { (ac_try="$ac_link"
10666
case "(($ac_try" in
10667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668
  *) ac_try_echo=$ac_try;;
10669
esac
10670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671
  (eval "$ac_link") 2>conftest.er1
10672
  ac_status=$?
10673
  grep -v '^ *+' conftest.er1 >conftest.err
10674
  rm -f conftest.er1
10675
  cat conftest.err >&5
10676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10677
  (exit $ac_status); } && {
10678
	 test -z "$ac_c_werror_flag" ||
10679
	 test ! -s conftest.err
10680
       } && test -s conftest$ac_exeext &&
10681
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
10682
  ac_cv_func_dlopen=yes
10683
else
10684
  echo "$as_me: failed program was:" >&5
10685
sed 's/^/| /' conftest.$ac_ext >&5
10686
10687
	ac_cv_func_dlopen=no
10688
fi
10689
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10690
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
10691
      conftest$ac_exeext conftest.$ac_ext
10692
fi
10693
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10694
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10695
if test $ac_cv_func_dlopen = yes; then
10696
  lt_cv_dlopen="dlopen"
10697
else
10698
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10699
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10700
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10701
  echo $ECHO_N "(cached) $ECHO_C" >&6
10702
else
10703
  ac_check_lib_save_LIBS=$LIBS
10704
LIBS="-ldl  $LIBS"
10705
cat >conftest.$ac_ext <<_ACEOF
10706
/* confdefs.h.  */
10707
_ACEOF
10708
cat confdefs.h >>conftest.$ac_ext
10709
cat >>conftest.$ac_ext <<_ACEOF
10710
/* end confdefs.h.  */
10711
10712
/* Override any GCC internal prototype to avoid an error.
10713
   Use char because int might match the return type of a GCC
10714
   builtin and then its argument prototype would still apply.  */
10715
#ifdef __cplusplus
10716
extern "C"
10717
#endif
10718
char dlopen ();
10719
int
10720
main ()
10721
{
10722
return dlopen ();
10723
  ;
10724
  return 0;
10725
}
10726
_ACEOF
10727
rm -f conftest.$ac_objext conftest$ac_exeext
10728
if { (ac_try="$ac_link"
10729
case "(($ac_try" in
10730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731
  *) ac_try_echo=$ac_try;;
10732
esac
10733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734
  (eval "$ac_link") 2>conftest.er1
10735
  ac_status=$?
10736
  grep -v '^ *+' conftest.er1 >conftest.err
10737
  rm -f conftest.er1
10738
  cat conftest.err >&5
10739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10740
  (exit $ac_status); } && {
10741
	 test -z "$ac_c_werror_flag" ||
10742
	 test ! -s conftest.err
10743
       } && test -s conftest$ac_exeext &&
10744
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
10745
  ac_cv_lib_dl_dlopen=yes
10746
else
10747
  echo "$as_me: failed program was:" >&5
10748
sed 's/^/| /' conftest.$ac_ext >&5
10749
10750
	ac_cv_lib_dl_dlopen=no
10751
fi
10752
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10753
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
10754
      conftest$ac_exeext conftest.$ac_ext
10755
LIBS=$ac_check_lib_save_LIBS
10756
fi
10757
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10758
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10759
if test $ac_cv_lib_dl_dlopen = yes; then
10760
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10761
else
10762
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10763
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10764
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10765
  echo $ECHO_N "(cached) $ECHO_C" >&6
10766
else
10767
  ac_check_lib_save_LIBS=$LIBS
10768
LIBS="-lsvld  $LIBS"
10769
cat >conftest.$ac_ext <<_ACEOF
10770
/* confdefs.h.  */
10771
_ACEOF
10772
cat confdefs.h >>conftest.$ac_ext
10773
cat >>conftest.$ac_ext <<_ACEOF
10774
/* end confdefs.h.  */
10775
10776
/* Override any GCC internal prototype to avoid an error.
10777
   Use char because int might match the return type of a GCC
10778
   builtin and then its argument prototype would still apply.  */
10779
#ifdef __cplusplus
10780
extern "C"
10781
#endif
10782
char dlopen ();
10783
int
10784
main ()
10785
{
10786
return dlopen ();
10787
  ;
10788
  return 0;
10789
}
10790
_ACEOF
10791
rm -f conftest.$ac_objext conftest$ac_exeext
10792
if { (ac_try="$ac_link"
10793
case "(($ac_try" in
10794
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795
  *) ac_try_echo=$ac_try;;
10796
esac
10797
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798
  (eval "$ac_link") 2>conftest.er1
10799
  ac_status=$?
10800
  grep -v '^ *+' conftest.er1 >conftest.err
10801
  rm -f conftest.er1
10802
  cat conftest.err >&5
10803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10804
  (exit $ac_status); } && {
10805
	 test -z "$ac_c_werror_flag" ||
10806
	 test ! -s conftest.err
10807
       } && test -s conftest$ac_exeext &&
10808
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
10809
  ac_cv_lib_svld_dlopen=yes
10810
else
10811
  echo "$as_me: failed program was:" >&5
10812
sed 's/^/| /' conftest.$ac_ext >&5
10813
10814
	ac_cv_lib_svld_dlopen=no
10815
fi
10816
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10817
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
10818
      conftest$ac_exeext conftest.$ac_ext
10819
LIBS=$ac_check_lib_save_LIBS
10820
fi
10821
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10822
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10823
if test $ac_cv_lib_svld_dlopen = yes; then
10824
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10825
else
10826
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10827
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10828
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10829
  echo $ECHO_N "(cached) $ECHO_C" >&6
10830
else
10831
  ac_check_lib_save_LIBS=$LIBS
10832
LIBS="-ldld  $LIBS"
10833
cat >conftest.$ac_ext <<_ACEOF
10834
/* confdefs.h.  */
10835
_ACEOF
10836
cat confdefs.h >>conftest.$ac_ext
10837
cat >>conftest.$ac_ext <<_ACEOF
10838
/* end confdefs.h.  */
10839
10840
/* Override any GCC internal prototype to avoid an error.
10841
   Use char because int might match the return type of a GCC
10842
   builtin and then its argument prototype would still apply.  */
10843
#ifdef __cplusplus
10844
extern "C"
10845
#endif
10846
char dld_link ();
10847
int
10848
main ()
10849
{
10850
return dld_link ();
10851
  ;
10852
  return 0;
10853
}
10854
_ACEOF
10855
rm -f conftest.$ac_objext conftest$ac_exeext
10856
if { (ac_try="$ac_link"
10857
case "(($ac_try" in
10858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859
  *) ac_try_echo=$ac_try;;
10860
esac
10861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862
  (eval "$ac_link") 2>conftest.er1
10863
  ac_status=$?
10864
  grep -v '^ *+' conftest.er1 >conftest.err
10865
  rm -f conftest.er1
10866
  cat conftest.err >&5
10867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10868
  (exit $ac_status); } && {
10869
	 test -z "$ac_c_werror_flag" ||
10870
	 test ! -s conftest.err
10871
       } && test -s conftest$ac_exeext &&
10872
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
10873
  ac_cv_lib_dld_dld_link=yes
10874
else
10875
  echo "$as_me: failed program was:" >&5
10876
sed 's/^/| /' conftest.$ac_ext >&5
10877
10878
	ac_cv_lib_dld_dld_link=no
10879
fi
10880
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10881
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
10882
      conftest$ac_exeext conftest.$ac_ext
10883
LIBS=$ac_check_lib_save_LIBS
10884
fi
10885
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10886
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10887
if test $ac_cv_lib_dld_dld_link = yes; then
10888
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10889
fi
10890
10891
10892
fi
10893
10894
10895
fi
10896
10897
10898
fi
10899
10900
10901
fi
10902
10903
10904
fi
10905
10906
    ;;
10907
  esac
10908
10909
  if test "x$lt_cv_dlopen" != xno; then
10910
    enable_dlopen=yes
10911
  else
10912
    enable_dlopen=no
10913
  fi
10914
10915
  case $lt_cv_dlopen in
10916
  dlopen)
10917
    save_CPPFLAGS="$CPPFLAGS"
10918
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10919
10920
    save_LDFLAGS="$LDFLAGS"
10921
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10922
10923
    save_LIBS="$LIBS"
10924
    LIBS="$lt_cv_dlopen_libs $LIBS"
10925
10926
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10927
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10928
if test "${lt_cv_dlopen_self+set}" = set; then
10929
  echo $ECHO_N "(cached) $ECHO_C" >&6
10930
else
10931
  	  if test "$cross_compiling" = yes; then :
10932
  lt_cv_dlopen_self=cross
10933
else
10934
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10935
  lt_status=$lt_dlunknown
10936
  cat > conftest.$ac_ext <<EOF
1.1.1 by Michael Vogt
Import upstream version 0.7.2
10937
#line 10946 "configure"
1 by Sebastien Bacher
Import upstream version 0.7.1
10938
#include "confdefs.h"
10939
10940
#if HAVE_DLFCN_H
10941
#include <dlfcn.h>
10942
#endif
10943
10944
#include <stdio.h>
10945
10946
#ifdef RTLD_GLOBAL
10947
#  define LT_DLGLOBAL		RTLD_GLOBAL
10948
#else
10949
#  ifdef DL_GLOBAL
10950
#    define LT_DLGLOBAL		DL_GLOBAL
10951
#  else
10952
#    define LT_DLGLOBAL		0
10953
#  endif
10954
#endif
10955
10956
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10957
   find out it does not work in some platform. */
10958
#ifndef LT_DLLAZY_OR_NOW
10959
#  ifdef RTLD_LAZY
10960
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10961
#  else
10962
#    ifdef DL_LAZY
10963
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10964
#    else
10965
#      ifdef RTLD_NOW
10966
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10967
#      else
10968
#        ifdef DL_NOW
10969
#          define LT_DLLAZY_OR_NOW	DL_NOW
10970
#        else
10971
#          define LT_DLLAZY_OR_NOW	0
10972
#        endif
10973
#      endif
10974
#    endif
10975
#  endif
10976
#endif
10977
10978
#ifdef __cplusplus
10979
extern "C" void exit (int);
10980
#endif
10981
10982
void fnord() { int i=42;}
10983
int main ()
10984
{
10985
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10986
  int status = $lt_dlunknown;
10987
10988
  if (self)
10989
    {
10990
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10991
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10992
      /* dlclose (self); */
10993
    }
10994
  else
10995
    puts (dlerror ());
10996
10997
    exit (status);
10998
}
10999
EOF
11000
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001
  (eval $ac_link) 2>&5
11002
  ac_status=$?
11003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11005
    (./conftest; exit; ) >&5 2>/dev/null
11006
    lt_status=$?
11007
    case x$lt_status in
11008
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11009
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11010
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11011
    esac
11012
  else :
11013
    # compilation failed
11014
    lt_cv_dlopen_self=no
11015
  fi
11016
fi
11017
rm -fr conftest*
11018
11019
11020
fi
11021
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11022
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11023
11024
    if test "x$lt_cv_dlopen_self" = xyes; then
11025
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11026
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11027
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11028
if test "${lt_cv_dlopen_self_static+set}" = set; then
11029
  echo $ECHO_N "(cached) $ECHO_C" >&6
11030
else
11031
  	  if test "$cross_compiling" = yes; then :
11032
  lt_cv_dlopen_self_static=cross
11033
else
11034
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11035
  lt_status=$lt_dlunknown
11036
  cat > conftest.$ac_ext <<EOF
1.1.1 by Michael Vogt
Import upstream version 0.7.2
11037
#line 11046 "configure"
1 by Sebastien Bacher
Import upstream version 0.7.1
11038
#include "confdefs.h"
11039
11040
#if HAVE_DLFCN_H
11041
#include <dlfcn.h>
11042
#endif
11043
11044
#include <stdio.h>
11045
11046
#ifdef RTLD_GLOBAL
11047
#  define LT_DLGLOBAL		RTLD_GLOBAL
11048
#else
11049
#  ifdef DL_GLOBAL
11050
#    define LT_DLGLOBAL		DL_GLOBAL
11051
#  else
11052
#    define LT_DLGLOBAL		0
11053
#  endif
11054
#endif
11055
11056
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11057
   find out it does not work in some platform. */
11058
#ifndef LT_DLLAZY_OR_NOW
11059
#  ifdef RTLD_LAZY
11060
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11061
#  else
11062
#    ifdef DL_LAZY
11063
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11064
#    else
11065
#      ifdef RTLD_NOW
11066
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11067
#      else
11068
#        ifdef DL_NOW
11069
#          define LT_DLLAZY_OR_NOW	DL_NOW
11070
#        else
11071
#          define LT_DLLAZY_OR_NOW	0
11072
#        endif
11073
#      endif
11074
#    endif
11075
#  endif
11076
#endif
11077
11078
#ifdef __cplusplus
11079
extern "C" void exit (int);
11080
#endif
11081
11082
void fnord() { int i=42;}
11083
int main ()
11084
{
11085
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11086
  int status = $lt_dlunknown;
11087
11088
  if (self)
11089
    {
11090
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11091
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11092
      /* dlclose (self); */
11093
    }
11094
  else
11095
    puts (dlerror ());
11096
11097
    exit (status);
11098
}
11099
EOF
11100
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101
  (eval $ac_link) 2>&5
11102
  ac_status=$?
11103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11105
    (./conftest; exit; ) >&5 2>/dev/null
11106
    lt_status=$?
11107
    case x$lt_status in
11108
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11109
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11110
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11111
    esac
11112
  else :
11113
    # compilation failed
11114
    lt_cv_dlopen_self_static=no
11115
  fi
11116
fi
11117
rm -fr conftest*
11118
11119
11120
fi
11121
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11122
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11123
    fi
11124
11125
    CPPFLAGS="$save_CPPFLAGS"
11126
    LDFLAGS="$save_LDFLAGS"
11127
    LIBS="$save_LIBS"
11128
    ;;
11129
  esac
11130
11131
  case $lt_cv_dlopen_self in
11132
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11133
  *) enable_dlopen_self=unknown ;;
11134
  esac
11135
11136
  case $lt_cv_dlopen_self_static in
11137
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11138
  *) enable_dlopen_self_static=unknown ;;
11139
  esac
11140
fi
11141
11142
11143
# Report which library types will actually be built
11144
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11145
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11146
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11147
echo "${ECHO_T}$can_build_shared" >&6; }
11148
11149
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11150
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11151
test "$can_build_shared" = "no" && enable_shared=no
11152
11153
# On AIX, shared libraries and static libraries use the same namespace, and
11154
# are all built from PIC.
11155
case $host_os in
11156
aix3*)
11157
  test "$enable_shared" = yes && enable_static=no
11158
  if test -n "$RANLIB"; then
11159
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11160
    postinstall_cmds='$RANLIB $lib'
11161
  fi
11162
  ;;
11163
11164
aix4* | aix5*)
11165
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11166
    test "$enable_shared" = yes && enable_static=no
11167
  fi
11168
    ;;
11169
esac
11170
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11171
echo "${ECHO_T}$enable_shared" >&6; }
11172
11173
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11174
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11175
# Make sure either enable_shared or enable_static is yes.
11176
test "$enable_shared" = yes || enable_static=yes
11177
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11178
echo "${ECHO_T}$enable_static" >&6; }
11179
11180
# The else clause should only fire when bootstrapping the
11181
# libtool distribution, otherwise you forgot to ship ltmain.sh
11182
# with your package, and you will get complaints that there are
11183
# no rules to generate ltmain.sh.
11184
if test -f "$ltmain"; then
11185
  # See if we are running on zsh, and set the options which allow our commands through
11186
  # without removal of \ escapes.
11187
  if test -n "${ZSH_VERSION+set}" ; then
11188
    setopt NO_GLOB_SUBST
11189
  fi
11190
  # Now quote all the things that may contain metacharacters while being
11191
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11192
  # variables and quote the copies for generation of the libtool script.
11193
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11194
    SED SHELL STRIP \
11195
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11196
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11197
    deplibs_check_method reload_flag reload_cmds need_locks \
11198
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11199
    lt_cv_sys_global_symbol_to_c_name_address \
11200
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11201
    old_postinstall_cmds old_postuninstall_cmds \
11202
    compiler \
11203
    CC \
11204
    LD \
11205
    lt_prog_compiler_wl \
11206
    lt_prog_compiler_pic \
11207
    lt_prog_compiler_static \
11208
    lt_prog_compiler_no_builtin_flag \
11209
    export_dynamic_flag_spec \
11210
    thread_safe_flag_spec \
11211
    whole_archive_flag_spec \
11212
    enable_shared_with_static_runtimes \
11213
    old_archive_cmds \
11214
    old_archive_from_new_cmds \
11215
    predep_objects \
11216
    postdep_objects \
11217
    predeps \
11218
    postdeps \
11219
    compiler_lib_search_path \
11220
    archive_cmds \
11221
    archive_expsym_cmds \
11222
    postinstall_cmds \
11223
    postuninstall_cmds \
11224
    old_archive_from_expsyms_cmds \
11225
    allow_undefined_flag \
11226
    no_undefined_flag \
11227
    export_symbols_cmds \
11228
    hardcode_libdir_flag_spec \
11229
    hardcode_libdir_flag_spec_ld \
11230
    hardcode_libdir_separator \
11231
    hardcode_automatic \
11232
    module_cmds \
11233
    module_expsym_cmds \
11234
    lt_cv_prog_compiler_c_o \
1.1.1 by Michael Vogt
Import upstream version 0.7.2
11235
    fix_srcfile_path \
1 by Sebastien Bacher
Import upstream version 0.7.1
11236
    exclude_expsyms \
11237
    include_expsyms; do
11238
11239
    case $var in
11240
    old_archive_cmds | \
11241
    old_archive_from_new_cmds | \
11242
    archive_cmds | \
11243
    archive_expsym_cmds | \
11244
    module_cmds | \
11245
    module_expsym_cmds | \
11246
    old_archive_from_expsyms_cmds | \
11247
    export_symbols_cmds | \
11248
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11249
    postinstall_cmds | postuninstall_cmds | \
11250
    old_postinstall_cmds | old_postuninstall_cmds | \
11251
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11252
      # Double-quote double-evaled strings.
11253
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11254
      ;;
11255
    *)
11256
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11257
      ;;
11258
    esac
11259
  done
11260
11261
  case $lt_echo in
11262
  *'\$0 --fallback-echo"')
11263
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11264
    ;;
11265
  esac
11266
11267
cfgfile="${ofile}T"
11268
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11269
  $rm -f "$cfgfile"
11270
  { echo "$as_me:$LINENO: creating $ofile" >&5
11271
echo "$as_me: creating $ofile" >&6;}
11272
11273
  cat <<__EOF__ >> "$cfgfile"
11274
#! $SHELL
11275
11276
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11277
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11278
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11279
#
1.1.1 by Michael Vogt
Import upstream version 0.7.2
11280
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
1 by Sebastien Bacher
Import upstream version 0.7.1
11281
# Free Software Foundation, Inc.
11282
#
11283
# This file is part of GNU Libtool:
11284
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11285
#
11286
# This program is free software; you can redistribute it and/or modify
11287
# it under the terms of the GNU General Public License as published by
11288
# the Free Software Foundation; either version 2 of the License, or
11289
# (at your option) any later version.
11290
#
11291
# This program is distributed in the hope that it will be useful, but
11292
# WITHOUT ANY WARRANTY; without even the implied warranty of
11293
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11294
# General Public License for more details.
11295
#
11296
# You should have received a copy of the GNU General Public License
11297
# along with this program; if not, write to the Free Software
11298
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11299
#
11300
# As a special exception to the GNU General Public License, if you
11301
# distribute this file as part of a program that contains a
11302
# configuration script generated by Autoconf, you may include it under
11303
# the same distribution terms that you use for the rest of that program.
11304
11305
# A sed program that does not truncate output.
11306
SED=$lt_SED
11307
11308
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11309
Xsed="$SED -e 1s/^X//"
11310
11311
# The HP-UX ksh and POSIX shell print the target directory to stdout
11312
# if CDPATH is set.
11313
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11314
11315
# The names of the tagged configurations supported by this script.
11316
available_tags=
11317
11318
# ### BEGIN LIBTOOL CONFIG
11319
11320
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11321
11322
# Shell to use when invoking shell scripts.
11323
SHELL=$lt_SHELL
11324
11325
# Whether or not to build shared libraries.
11326
build_libtool_libs=$enable_shared
11327
11328
# Whether or not to build static libraries.
11329
build_old_libs=$enable_static
11330
11331
# Whether or not to add -lc for building shared libraries.
11332
build_libtool_need_lc=$archive_cmds_need_lc
11333
11334
# Whether or not to disallow shared libs when runtime libs are static
11335
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11336
11337
# Whether or not to optimize for fast installation.
11338
fast_install=$enable_fast_install
11339
11340
# The host system.
11341
host_alias=$host_alias
11342
host=$host
11343
host_os=$host_os
11344
11345
# The build system.
11346
build_alias=$build_alias
11347
build=$build
11348
build_os=$build_os
11349
11350
# An echo program that does not interpret backslashes.
11351
echo=$lt_echo
11352
11353
# The archiver.
11354
AR=$lt_AR
11355
AR_FLAGS=$lt_AR_FLAGS
11356
11357
# A C compiler.
11358
LTCC=$lt_LTCC
11359
11360
# LTCC compiler flags.
11361
LTCFLAGS=$lt_LTCFLAGS
11362
11363
# A language-specific compiler.
11364
CC=$lt_compiler
11365
11366
# Is the compiler the GNU C compiler?
11367
with_gcc=$GCC
11368
11369
# An ERE matcher.
11370
EGREP=$lt_EGREP
11371
11372
# The linker used to build libraries.
11373
LD=$lt_LD
11374
11375
# Whether we need hard or soft links.
11376
LN_S=$lt_LN_S
11377
11378
# A BSD-compatible nm program.
11379
NM=$lt_NM
11380
11381
# A symbol stripping program
11382
STRIP=$lt_STRIP
11383
11384
# Used to examine libraries when file_magic_cmd begins "file"
11385
MAGIC_CMD=$MAGIC_CMD
11386
11387
# Used on cygwin: DLL creation program.
11388
DLLTOOL="$DLLTOOL"
11389
11390
# Used on cygwin: object dumper.
11391
OBJDUMP="$OBJDUMP"
11392
11393
# Used on cygwin: assembler.
11394
AS="$AS"
11395
11396
# The name of the directory that contains temporary libtool files.
11397
objdir=$objdir
11398
11399
# How to create reloadable object files.
11400
reload_flag=$lt_reload_flag
11401
reload_cmds=$lt_reload_cmds
11402
11403
# How to pass a linker flag through the compiler.
11404
wl=$lt_lt_prog_compiler_wl
11405
11406
# Object file suffix (normally "o").
11407
objext="$ac_objext"
11408
11409
# Old archive suffix (normally "a").
11410
libext="$libext"
11411
11412
# Shared library suffix (normally ".so").
11413
shrext_cmds='$shrext_cmds'
11414
11415
# Executable file suffix (normally "").
11416
exeext="$exeext"
11417
11418
# Additional compiler flags for building library objects.
11419
pic_flag=$lt_lt_prog_compiler_pic
11420
pic_mode=$pic_mode
11421
11422
# What is the maximum length of a command?
11423
max_cmd_len=$lt_cv_sys_max_cmd_len
11424
11425
# Does compiler simultaneously support -c and -o options?
11426
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11427
11428
# Must we lock files when doing compilation?
11429
need_locks=$lt_need_locks
11430
11431
# Do we need the lib prefix for modules?
11432
need_lib_prefix=$need_lib_prefix
11433
11434
# Do we need a version for libraries?
11435
need_version=$need_version
11436
11437
# Whether dlopen is supported.
11438
dlopen_support=$enable_dlopen
11439
11440
# Whether dlopen of programs is supported.
11441
dlopen_self=$enable_dlopen_self
11442
11443
# Whether dlopen of statically linked programs is supported.
11444
dlopen_self_static=$enable_dlopen_self_static
11445
11446
# Compiler flag to prevent dynamic linking.
11447
link_static_flag=$lt_lt_prog_compiler_static
11448
11449
# Compiler flag to turn off builtin functions.
11450
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11451
11452
# Compiler flag to allow reflexive dlopens.
11453
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11454
11455
# Compiler flag to generate shared objects directly from archives.
11456
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11457
11458
# Compiler flag to generate thread-safe objects.
11459
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11460
11461
# Library versioning type.
11462
version_type=$version_type
11463
11464
# Format of library name prefix.
11465
libname_spec=$lt_libname_spec
11466
11467
# List of archive names.  First name is the real one, the rest are links.
11468
# The last name is the one that the linker finds with -lNAME.
11469
library_names_spec=$lt_library_names_spec
11470
11471
# The coded name of the library, if different from the real name.
11472
soname_spec=$lt_soname_spec
11473
11474
# Commands used to build and install an old-style archive.
11475
RANLIB=$lt_RANLIB
11476
old_archive_cmds=$lt_old_archive_cmds
11477
old_postinstall_cmds=$lt_old_postinstall_cmds
11478
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11479
11480
# Create an old-style archive from a shared archive.
11481
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11482
11483
# Create a temporary old-style archive to link instead of a shared archive.
11484
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11485
11486
# Commands used to build and install a shared archive.
11487
archive_cmds=$lt_archive_cmds
11488
archive_expsym_cmds=$lt_archive_expsym_cmds
11489
postinstall_cmds=$lt_postinstall_cmds
11490
postuninstall_cmds=$lt_postuninstall_cmds
11491
11492
# Commands used to build a loadable module (assumed same as above if empty)
11493
module_cmds=$lt_module_cmds
11494
module_expsym_cmds=$lt_module_expsym_cmds
11495
11496
# Commands to strip libraries.
11497
old_striplib=$lt_old_striplib
11498
striplib=$lt_striplib
11499
11500
# Dependencies to place before the objects being linked to create a
11501
# shared library.
11502
predep_objects=$lt_predep_objects
11503
11504
# Dependencies to place after the objects being linked to create a
11505
# shared library.
11506
postdep_objects=$lt_postdep_objects
11507
11508
# Dependencies to place before the objects being linked to create a
11509
# shared library.
11510
predeps=$lt_predeps
11511
11512
# Dependencies to place after the objects being linked to create a
11513
# shared library.
11514
postdeps=$lt_postdeps
11515
11516
# The library search path used internally by the compiler when linking
11517
# a shared library.
11518
compiler_lib_search_path=$lt_compiler_lib_search_path
11519
11520
# Method to check whether dependent libraries are shared objects.
11521
deplibs_check_method=$lt_deplibs_check_method
11522
11523
# Command to use when deplibs_check_method == file_magic.
11524
file_magic_cmd=$lt_file_magic_cmd
11525
11526
# Flag that allows shared libraries with undefined symbols to be built.
11527
allow_undefined_flag=$lt_allow_undefined_flag
11528
11529
# Flag that forces no undefined symbols.
11530
no_undefined_flag=$lt_no_undefined_flag
11531
11532
# Commands used to finish a libtool library installation in a directory.
11533
finish_cmds=$lt_finish_cmds
11534
11535
# Same as above, but a single script fragment to be evaled but not shown.
11536
finish_eval=$lt_finish_eval
11537
11538
# Take the output of nm and produce a listing of raw symbols and C names.
11539
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11540
11541
# Transform the output of nm in a proper C declaration
11542
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11543
11544
# Transform the output of nm in a C name address pair
11545
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11546
11547
# This is the shared library runtime path variable.
11548
runpath_var=$runpath_var
11549
11550
# This is the shared library path variable.
11551
shlibpath_var=$shlibpath_var
11552
11553
# Is shlibpath searched before the hard-coded library search path?
11554
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11555
11556
# How to hardcode a shared library path into an executable.
11557
hardcode_action=$hardcode_action
11558
11559
# Whether we should hardcode library paths into libraries.
11560
hardcode_into_libs=$hardcode_into_libs
11561
11562
# Flag to hardcode \$libdir into a binary during linking.
11563
# This must work even if \$libdir does not exist.
11564
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11565
11566
# If ld is used when linking, flag to hardcode \$libdir into
11567
# a binary during linking. This must work even if \$libdir does
11568
# not exist.
11569
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11570
11571
# Whether we need a single -rpath flag with a separated argument.
11572
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11573
11574
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11575
# resulting binary.
11576
hardcode_direct=$hardcode_direct
11577
11578
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11579
# resulting binary.
11580
hardcode_minus_L=$hardcode_minus_L
11581
11582
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11583
# the resulting binary.
11584
hardcode_shlibpath_var=$hardcode_shlibpath_var
11585
11586
# Set to yes if building a shared library automatically hardcodes DIR into the library
11587
# and all subsequent libraries and executables linked against it.
11588
hardcode_automatic=$hardcode_automatic
11589
11590
# Variables whose values should be saved in libtool wrapper scripts and
11591
# restored at relink time.
11592
variables_saved_for_relink="$variables_saved_for_relink"
11593
11594
# Whether libtool must link a program against all its dependency libraries.
11595
link_all_deplibs=$link_all_deplibs
11596
11597
# Compile-time system search path for libraries
11598
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11599
11600
# Run-time system search path for libraries
11601
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11602
11603
# Fix the shell variable \$srcfile for the compiler.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
11604
fix_srcfile_path=$lt_fix_srcfile_path
1 by Sebastien Bacher
Import upstream version 0.7.1
11605
11606
# Set to yes if exported symbols are required.
11607
always_export_symbols=$always_export_symbols
11608
11609
# The commands to list exported symbols.
11610
export_symbols_cmds=$lt_export_symbols_cmds
11611
11612
# The commands to extract the exported symbol list from a shared archive.
11613
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11614
11615
# Symbols that should not be listed in the preloaded symbols.
11616
exclude_expsyms=$lt_exclude_expsyms
11617
11618
# Symbols that must always be exported.
11619
include_expsyms=$lt_include_expsyms
11620
11621
# ### END LIBTOOL CONFIG
11622
11623
__EOF__
11624
11625
11626
  case $host_os in
11627
  aix3*)
11628
    cat <<\EOF >> "$cfgfile"
11629
11630
# AIX sometimes has problems with the GCC collect2 program.  For some
11631
# reason, if we set the COLLECT_NAMES environment variable, the problems
11632
# vanish in a puff of smoke.
11633
if test "X${COLLECT_NAMES+set}" != Xset; then
11634
  COLLECT_NAMES=
11635
  export COLLECT_NAMES
11636
fi
11637
EOF
11638
    ;;
11639
  esac
11640
11641
  # We use sed instead of cat because bash on DJGPP gets confused if
11642
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11643
  # text mode, it properly converts lines to CR/LF.  This bash problem
11644
  # is reportedly fixed, but why not run on old versions too?
11645
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11646
11647
  mv -f "$cfgfile" "$ofile" || \
11648
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11649
  chmod +x "$ofile"
11650
11651
else
11652
  # If there is no Makefile yet, we rely on a make rule to execute
11653
  # `config.status --recheck' to rerun these tests and create the
11654
  # libtool script then.
11655
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11656
  if test -f "$ltmain_in"; then
11657
    test -f Makefile && make "$ltmain"
11658
  fi
11659
fi
11660
11661
11662
ac_ext=c
11663
ac_cpp='$CPP $CPPFLAGS'
11664
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11665
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11666
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11667
11668
CC="$lt_save_CC"
11669
11670
11671
# Check whether --with-tags was given.
11672
if test "${with_tags+set}" = set; then
11673
  withval=$with_tags; tagnames="$withval"
11674
fi
11675
11676
11677
if test -f "$ltmain" && test -n "$tagnames"; then
11678
  if test ! -f "${ofile}"; then
11679
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11680
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11681
  fi
11682
11683
  if test -z "$LTCC"; then
11684
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11685
    if test -z "$LTCC"; then
11686
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11687
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11688
    else
11689
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11690
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11691
    fi
11692
  fi
11693
  if test -z "$LTCFLAGS"; then
11694
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11695
  fi
11696
11697
  # Extract list of available tagged configurations in $ofile.
11698
  # Note that this assumes the entire list is on one line.
11699
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11700
11701
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11702
  for tagname in $tagnames; do
11703
    IFS="$lt_save_ifs"
11704
    # Check whether tagname contains only valid characters
11705
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11706
    "") ;;
11707
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11708
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11709
   { (exit 1); exit 1; }; }
11710
	;;
11711
    esac
11712
11713
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11714
    then
11715
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11716
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11717
   { (exit 1); exit 1; }; }
11718
    fi
11719
11720
    # Update the list of available tags.
11721
    if test -n "$tagname"; then
11722
      echo appending configuration tag \"$tagname\" to $ofile
11723
11724
      case $tagname in
11725
      CXX)
11726
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11727
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11728
	    (test "X$CXX" != "Xg++"))) ; then
11729
	  ac_ext=cpp
11730
ac_cpp='$CXXCPP $CPPFLAGS'
11731
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11732
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11733
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11734
11735
11736
11737
11738
archive_cmds_need_lc_CXX=no
11739
allow_undefined_flag_CXX=
11740
always_export_symbols_CXX=no
11741
archive_expsym_cmds_CXX=
11742
export_dynamic_flag_spec_CXX=
11743
hardcode_direct_CXX=no
11744
hardcode_libdir_flag_spec_CXX=
11745
hardcode_libdir_flag_spec_ld_CXX=
11746
hardcode_libdir_separator_CXX=
11747
hardcode_minus_L_CXX=no
11748
hardcode_shlibpath_var_CXX=unsupported
11749
hardcode_automatic_CXX=no
11750
module_cmds_CXX=
11751
module_expsym_cmds_CXX=
11752
link_all_deplibs_CXX=unknown
11753
old_archive_cmds_CXX=$old_archive_cmds
11754
no_undefined_flag_CXX=
11755
whole_archive_flag_spec_CXX=
11756
enable_shared_with_static_runtimes_CXX=no
11757
11758
# Dependencies to place before and after the object being linked:
11759
predep_objects_CXX=
11760
postdep_objects_CXX=
11761
predeps_CXX=
11762
postdeps_CXX=
11763
compiler_lib_search_path_CXX=
11764
11765
# Source file extension for C++ test sources.
11766
ac_ext=cpp
11767
11768
# Object file extension for compiled C++ test sources.
11769
objext=o
11770
objext_CXX=$objext
11771
11772
# Code to be used in simple compile tests
1.1.1 by Michael Vogt
Import upstream version 0.7.2
11773
lt_simple_compile_test_code="int some_variable = 0;"
1 by Sebastien Bacher
Import upstream version 0.7.1
11774
11775
# Code to be used in simple link tests
1.1.1 by Michael Vogt
Import upstream version 0.7.2
11776
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
1 by Sebastien Bacher
Import upstream version 0.7.1
11777
11778
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11779
11780
# If no C compiler was specified, use CC.
11781
LTCC=${LTCC-"$CC"}
11782
11783
# If no C compiler flags were specified, use CFLAGS.
11784
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11785
11786
# Allow CC to be a program name with arguments.
11787
compiler=$CC
11788
11789
11790
# save warnings/boilerplate of simple test code
11791
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
11792
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
11793
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11794
_lt_compiler_boilerplate=`cat conftest.err`
11795
$rm conftest*
11796
11797
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
11798
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
11799
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11800
_lt_linker_boilerplate=`cat conftest.err`
11801
$rm conftest*
11802
11803
11804
# Allow CC to be a program name with arguments.
11805
lt_save_CC=$CC
11806
lt_save_LD=$LD
11807
lt_save_GCC=$GCC
11808
GCC=$GXX
11809
lt_save_with_gnu_ld=$with_gnu_ld
11810
lt_save_path_LD=$lt_cv_path_LD
11811
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11812
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11813
else
11814
  $as_unset lt_cv_prog_gnu_ld
11815
fi
11816
if test -n "${lt_cv_path_LDCXX+set}"; then
11817
  lt_cv_path_LD=$lt_cv_path_LDCXX
11818
else
11819
  $as_unset lt_cv_path_LD
11820
fi
11821
test -z "${LDCXX+set}" || LD=$LDCXX
11822
CC=${CXX-"c++"}
11823
compiler=$CC
11824
compiler_CXX=$CC
11825
for cc_temp in $compiler""; do
11826
  case $cc_temp in
11827
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11828
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11829
    \-*) ;;
11830
    *) break;;
11831
  esac
11832
done
11833
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11834
11835
11836
# We don't want -fno-exception wen compiling C++ code, so set the
11837
# no_builtin_flag separately
11838
if test "$GXX" = yes; then
11839
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11840
else
11841
  lt_prog_compiler_no_builtin_flag_CXX=
11842
fi
11843
11844
if test "$GXX" = yes; then
11845
  # Set up default GNU C++ configuration
11846
11847
11848
# Check whether --with-gnu-ld was given.
11849
if test "${with_gnu_ld+set}" = set; then
11850
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11851
else
11852
  with_gnu_ld=no
11853
fi
11854
11855
ac_prog=ld
11856
if test "$GCC" = yes; then
11857
  # Check if gcc -print-prog-name=ld gives a path.
11858
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11859
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11860
  case $host in
11861
  *-*-mingw*)
11862
    # gcc leaves a trailing carriage return which upsets mingw
11863
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11864
  *)
11865
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11866
  esac
11867
  case $ac_prog in
11868
    # Accept absolute paths.
11869
    [\\/]* | ?:[\\/]*)
11870
      re_direlt='/[^/][^/]*/\.\./'
11871
      # Canonicalize the pathname of ld
11872
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11873
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11874
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11875
      done
11876
      test -z "$LD" && LD="$ac_prog"
11877
      ;;
11878
  "")
11879
    # If it fails, then pretend we aren't using GCC.
11880
    ac_prog=ld
11881
    ;;
11882
  *)
11883
    # If it is relative, then search for the first ld in PATH.
11884
    with_gnu_ld=unknown
11885
    ;;
11886
  esac
11887
elif test "$with_gnu_ld" = yes; then
11888
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11889
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11890
else
11891
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11892
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11893
fi
11894
if test "${lt_cv_path_LD+set}" = set; then
11895
  echo $ECHO_N "(cached) $ECHO_C" >&6
11896
else
11897
  if test -z "$LD"; then
11898
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11899
  for ac_dir in $PATH; do
11900
    IFS="$lt_save_ifs"
11901
    test -z "$ac_dir" && ac_dir=.
11902
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11903
      lt_cv_path_LD="$ac_dir/$ac_prog"
11904
      # Check to see if the program is GNU ld.  I'd rather use --version,
11905
      # but apparently some variants of GNU ld only accept -v.
11906
      # Break only if it was the GNU/non-GNU ld that we prefer.
11907
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11908
      *GNU* | *'with BFD'*)
11909
	test "$with_gnu_ld" != no && break
11910
	;;
11911
      *)
11912
	test "$with_gnu_ld" != yes && break
11913
	;;
11914
      esac
11915
    fi
11916
  done
11917
  IFS="$lt_save_ifs"
11918
else
11919
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11920
fi
11921
fi
11922
11923
LD="$lt_cv_path_LD"
11924
if test -n "$LD"; then
11925
  { echo "$as_me:$LINENO: result: $LD" >&5
11926
echo "${ECHO_T}$LD" >&6; }
11927
else
11928
  { echo "$as_me:$LINENO: result: no" >&5
11929
echo "${ECHO_T}no" >&6; }
11930
fi
11931
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11932
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11933
   { (exit 1); exit 1; }; }
11934
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11935
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11936
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11937
  echo $ECHO_N "(cached) $ECHO_C" >&6
11938
else
11939
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11940
case `$LD -v 2>&1 </dev/null` in
11941
*GNU* | *'with BFD'*)
11942
  lt_cv_prog_gnu_ld=yes
11943
  ;;
11944
*)
11945
  lt_cv_prog_gnu_ld=no
11946
  ;;
11947
esac
11948
fi
11949
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11950
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11951
with_gnu_ld=$lt_cv_prog_gnu_ld
11952
11953
11954
11955
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11956
  # archiving commands below assume that GNU ld is being used.
11957
  if test "$with_gnu_ld" = yes; then
11958
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11959
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11960
11961
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11962
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11963
11964
    # If archive_cmds runs LD, not CC, wlarc should be empty
11965
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11966
    #     investigate it a little bit more. (MM)
11967
    wlarc='${wl}'
11968
11969
    # ancient GNU ld didn't support --whole-archive et. al.
11970
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11971
	grep 'no-whole-archive' > /dev/null; then
11972
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11973
    else
11974
      whole_archive_flag_spec_CXX=
11975
    fi
11976
  else
11977
    with_gnu_ld=no
11978
    wlarc=
11979
11980
    # A generic and very simple default shared library creation
11981
    # command for GNU C++ for the case where it uses the native
11982
    # linker, instead of GNU ld.  If possible, this setting should
11983
    # overridden to take advantage of the native linker features on
11984
    # the platform it is being used on.
11985
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11986
  fi
11987
11988
  # Commands to make compiler produce verbose output that lists
11989
  # what "hidden" libraries, object files and flags are used when
11990
  # linking a shared library.
11991
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11992
11993
else
11994
  GXX=no
11995
  with_gnu_ld=no
11996
  wlarc=
11997
fi
11998
11999
# PORTME: fill in a description of your system's C++ link characteristics
12000
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12001
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12002
ld_shlibs_CXX=yes
12003
case $host_os in
12004
  aix3*)
12005
    # FIXME: insert proper C++ library support
12006
    ld_shlibs_CXX=no
12007
    ;;
12008
  aix4* | aix5*)
12009
    if test "$host_cpu" = ia64; then
12010
      # On IA64, the linker does run time linking by default, so we don't
12011
      # have to do anything special.
12012
      aix_use_runtimelinking=no
12013
      exp_sym_flag='-Bexport'
12014
      no_entry_flag=""
12015
    else
12016
      aix_use_runtimelinking=no
12017
12018
      # Test if we are trying to use run time linking or normal
12019
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12020
      # need to do runtime linking.
12021
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12022
	for ld_flag in $LDFLAGS; do
12023
	  case $ld_flag in
12024
	  *-brtl*)
12025
	    aix_use_runtimelinking=yes
12026
	    break
12027
	    ;;
12028
	  esac
12029
	done
12030
	;;
12031
      esac
12032
12033
      exp_sym_flag='-bexport'
12034
      no_entry_flag='-bnoentry'
12035
    fi
12036
12037
    # When large executables or shared objects are built, AIX ld can
12038
    # have problems creating the table of contents.  If linking a library
12039
    # or program results in "error TOC overflow" add -mminimal-toc to
12040
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12041
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12042
12043
    archive_cmds_CXX=''
12044
    hardcode_direct_CXX=yes
12045
    hardcode_libdir_separator_CXX=':'
12046
    link_all_deplibs_CXX=yes
12047
12048
    if test "$GXX" = yes; then
12049
      case $host_os in aix4.[012]|aix4.[012].*)
12050
      # We only want to do this on AIX 4.2 and lower, the check
12051
      # below for broken collect2 doesn't work under 4.3+
12052
	collect2name=`${CC} -print-prog-name=collect2`
12053
	if test -f "$collect2name" && \
12054
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12055
	then
12056
	  # We have reworked collect2
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12057
	  :
1 by Sebastien Bacher
Import upstream version 0.7.1
12058
	else
12059
	  # We have old collect2
12060
	  hardcode_direct_CXX=unsupported
12061
	  # It fails to find uninstalled libraries when the uninstalled
12062
	  # path is not listed in the libpath.  Setting hardcode_minus_L
12063
	  # to unsupported forces relinking
12064
	  hardcode_minus_L_CXX=yes
12065
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12066
	  hardcode_libdir_separator_CXX=
12067
	fi
12068
	;;
12069
      esac
12070
      shared_flag='-shared'
12071
      if test "$aix_use_runtimelinking" = yes; then
12072
	shared_flag="$shared_flag "'${wl}-G'
12073
      fi
12074
    else
12075
      # not using gcc
12076
      if test "$host_cpu" = ia64; then
12077
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12078
	# chokes on -Wl,-G. The following line is correct:
12079
	shared_flag='-G'
12080
      else
12081
	if test "$aix_use_runtimelinking" = yes; then
12082
	  shared_flag='${wl}-G'
12083
	else
12084
	  shared_flag='${wl}-bM:SRE'
12085
	fi
12086
      fi
12087
    fi
12088
12089
    # It seems that -bexpall does not export symbols beginning with
12090
    # underscore (_), so it is better to generate a list of symbols to export.
12091
    always_export_symbols_CXX=yes
12092
    if test "$aix_use_runtimelinking" = yes; then
12093
      # Warning - without using the other runtime loading flags (-brtl),
12094
      # -berok will link without error, but may produce a broken library.
12095
      allow_undefined_flag_CXX='-berok'
12096
      # Determine the default libpath from the value encoded in an empty executable.
12097
      cat >conftest.$ac_ext <<_ACEOF
12098
/* confdefs.h.  */
12099
_ACEOF
12100
cat confdefs.h >>conftest.$ac_ext
12101
cat >>conftest.$ac_ext <<_ACEOF
12102
/* end confdefs.h.  */
12103
12104
int
12105
main ()
12106
{
12107
12108
  ;
12109
  return 0;
12110
}
12111
_ACEOF
12112
rm -f conftest.$ac_objext conftest$ac_exeext
12113
if { (ac_try="$ac_link"
12114
case "(($ac_try" in
12115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116
  *) ac_try_echo=$ac_try;;
12117
esac
12118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119
  (eval "$ac_link") 2>conftest.er1
12120
  ac_status=$?
12121
  grep -v '^ *+' conftest.er1 >conftest.err
12122
  rm -f conftest.er1
12123
  cat conftest.err >&5
12124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12125
  (exit $ac_status); } && {
12126
	 test -z "$ac_cxx_werror_flag" ||
12127
	 test ! -s conftest.err
12128
       } && test -s conftest$ac_exeext &&
12129
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
12130
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12131
lt_aix_libpath_sed='
12132
    /Import File Strings/,/^$/ {
12133
	/^0/ {
12134
	    s/^0  *\(.*\)$/\1/
12135
	    p
12136
	}
12137
    }'
12138
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Sebastien Bacher
Import upstream version 0.7.1
12139
# Check for a 64-bit object if we didn't find anything.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12140
if test -z "$aix_libpath"; then
12141
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12142
fi
1 by Sebastien Bacher
Import upstream version 0.7.1
12143
else
12144
  echo "$as_me: failed program was:" >&5
12145
sed 's/^/| /' conftest.$ac_ext >&5
12146
12147
12148
fi
12149
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12150
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
12151
      conftest$ac_exeext conftest.$ac_ext
12152
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12153
12154
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12155
12156
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12157
     else
12158
      if test "$host_cpu" = ia64; then
12159
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12160
	allow_undefined_flag_CXX="-z nodefs"
12161
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12162
      else
12163
	# Determine the default libpath from the value encoded in an empty executable.
12164
	cat >conftest.$ac_ext <<_ACEOF
12165
/* confdefs.h.  */
12166
_ACEOF
12167
cat confdefs.h >>conftest.$ac_ext
12168
cat >>conftest.$ac_ext <<_ACEOF
12169
/* end confdefs.h.  */
12170
12171
int
12172
main ()
12173
{
12174
12175
  ;
12176
  return 0;
12177
}
12178
_ACEOF
12179
rm -f conftest.$ac_objext conftest$ac_exeext
12180
if { (ac_try="$ac_link"
12181
case "(($ac_try" in
12182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183
  *) ac_try_echo=$ac_try;;
12184
esac
12185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186
  (eval "$ac_link") 2>conftest.er1
12187
  ac_status=$?
12188
  grep -v '^ *+' conftest.er1 >conftest.err
12189
  rm -f conftest.er1
12190
  cat conftest.err >&5
12191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12192
  (exit $ac_status); } && {
12193
	 test -z "$ac_cxx_werror_flag" ||
12194
	 test ! -s conftest.err
12195
       } && test -s conftest$ac_exeext &&
12196
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
12197
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12198
lt_aix_libpath_sed='
12199
    /Import File Strings/,/^$/ {
12200
	/^0/ {
12201
	    s/^0  *\(.*\)$/\1/
12202
	    p
12203
	}
12204
    }'
12205
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Sebastien Bacher
Import upstream version 0.7.1
12206
# Check for a 64-bit object if we didn't find anything.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12207
if test -z "$aix_libpath"; then
12208
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12209
fi
1 by Sebastien Bacher
Import upstream version 0.7.1
12210
else
12211
  echo "$as_me: failed program was:" >&5
12212
sed 's/^/| /' conftest.$ac_ext >&5
12213
12214
12215
fi
12216
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12217
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
12218
      conftest$ac_exeext conftest.$ac_ext
12219
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12220
12221
	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12222
	# Warning - without using the other run time loading flags,
12223
	# -berok will link without error, but may produce a broken library.
12224
	no_undefined_flag_CXX=' ${wl}-bernotok'
12225
	allow_undefined_flag_CXX=' ${wl}-berok'
12226
	# Exported symbols can be pulled into shared objects from archives
12227
	whole_archive_flag_spec_CXX='$convenience'
12228
	archive_cmds_need_lc_CXX=yes
12229
	# This is similar to how AIX traditionally builds its shared libraries.
12230
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12231
      fi
12232
    fi
12233
    ;;
12234
12235
  beos*)
12236
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12237
      allow_undefined_flag_CXX=unsupported
12238
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12239
      # support --undefined.  This deserves some investigation.  FIXME
12240
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12241
    else
12242
      ld_shlibs_CXX=no
12243
    fi
12244
    ;;
12245
12246
  chorus*)
12247
    case $cc_basename in
12248
      *)
12249
	# FIXME: insert proper C++ library support
12250
	ld_shlibs_CXX=no
12251
	;;
12252
    esac
12253
    ;;
12254
12255
  cygwin* | mingw* | pw32*)
12256
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12257
    # as there is no search path for DLLs.
12258
    hardcode_libdir_flag_spec_CXX='-L$libdir'
12259
    allow_undefined_flag_CXX=unsupported
12260
    always_export_symbols_CXX=no
12261
    enable_shared_with_static_runtimes_CXX=yes
12262
12263
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12264
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12265
      # If the export-symbols file already is a .def file (1st line
12266
      # is EXPORTS), use it as is; otherwise, prepend...
12267
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12268
	cp $export_symbols $output_objdir/$soname.def;
12269
      else
12270
	echo EXPORTS > $output_objdir/$soname.def;
12271
	cat $export_symbols >> $output_objdir/$soname.def;
12272
      fi~
12273
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12274
    else
12275
      ld_shlibs_CXX=no
12276
    fi
12277
  ;;
12278
      darwin* | rhapsody*)
12279
        case $host_os in
12280
        rhapsody* | darwin1.[012])
12281
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12282
         ;;
12283
       *) # Darwin 1.3 on
12284
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12285
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12286
         else
12287
           case ${MACOSX_DEPLOYMENT_TARGET} in
12288
             10.[012])
12289
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12290
               ;;
12291
             10.*)
12292
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12293
               ;;
12294
           esac
12295
         fi
12296
         ;;
12297
        esac
12298
      archive_cmds_need_lc_CXX=no
12299
      hardcode_direct_CXX=no
12300
      hardcode_automatic_CXX=yes
12301
      hardcode_shlibpath_var_CXX=unsupported
12302
      whole_archive_flag_spec_CXX=''
12303
      link_all_deplibs_CXX=yes
12304
12305
    if test "$GXX" = yes ; then
12306
      lt_int_apple_cc_single_mod=no
12307
      output_verbose_link_cmd='echo'
12308
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12309
       lt_int_apple_cc_single_mod=yes
12310
      fi
12311
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12312
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12313
      else
12314
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12315
        fi
12316
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12317
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12318
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12319
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12320
          else
12321
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12322
          fi
12323
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12324
      else
12325
      case $cc_basename in
12326
        xlc*)
12327
         output_verbose_link_cmd='echo'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12328
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1 by Sebastien Bacher
Import upstream version 0.7.1
12329
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12330
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12331
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1 by Sebastien Bacher
Import upstream version 0.7.1
12332
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12333
          ;;
12334
       *)
12335
         ld_shlibs_CXX=no
12336
          ;;
12337
      esac
12338
      fi
12339
        ;;
12340
12341
  dgux*)
12342
    case $cc_basename in
12343
      ec++*)
12344
	# FIXME: insert proper C++ library support
12345
	ld_shlibs_CXX=no
12346
	;;
12347
      ghcx*)
12348
	# Green Hills C++ Compiler
12349
	# FIXME: insert proper C++ library support
12350
	ld_shlibs_CXX=no
12351
	;;
12352
      *)
12353
	# FIXME: insert proper C++ library support
12354
	ld_shlibs_CXX=no
12355
	;;
12356
    esac
12357
    ;;
12358
  freebsd[12]*)
12359
    # C++ shared libraries reported to be fairly broken before switch to ELF
12360
    ld_shlibs_CXX=no
12361
    ;;
12362
  freebsd-elf*)
12363
    archive_cmds_need_lc_CXX=no
12364
    ;;
12365
  freebsd* | dragonfly*)
12366
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12367
    # conventions
12368
    ld_shlibs_CXX=yes
12369
    ;;
12370
  gnu*)
12371
    ;;
12372
  hpux9*)
12373
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12374
    hardcode_libdir_separator_CXX=:
12375
    export_dynamic_flag_spec_CXX='${wl}-E'
12376
    hardcode_direct_CXX=yes
12377
    hardcode_minus_L_CXX=yes # Not in the search PATH,
12378
				# but as the default
12379
				# location of the library.
12380
12381
    case $cc_basename in
12382
    CC*)
12383
      # FIXME: insert proper C++ library support
12384
      ld_shlibs_CXX=no
12385
      ;;
12386
    aCC*)
12387
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12388
      # Commands to make compiler produce verbose output that lists
12389
      # what "hidden" libraries, object files and flags are used when
12390
      # linking a shared library.
12391
      #
12392
      # There doesn't appear to be a way to prevent this compiler from
12393
      # explicitly linking system object files so we need to strip them
12394
      # from the output so that they don't get included in the library
12395
      # dependencies.
12396
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12397
      ;;
12398
    *)
12399
      if test "$GXX" = yes; then
12400
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12401
      else
12402
        # FIXME: insert proper C++ library support
12403
        ld_shlibs_CXX=no
12404
      fi
12405
      ;;
12406
    esac
12407
    ;;
12408
  hpux10*|hpux11*)
12409
    if test $with_gnu_ld = no; then
12410
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12411
      hardcode_libdir_separator_CXX=:
12412
12413
      case $host_cpu in
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12414
      hppa*64*|ia64*) ;;
1 by Sebastien Bacher
Import upstream version 0.7.1
12415
      *)
12416
	export_dynamic_flag_spec_CXX='${wl}-E'
12417
        ;;
12418
      esac
12419
    fi
12420
    case $host_cpu in
12421
    hppa*64*|ia64*)
12422
      hardcode_direct_CXX=no
12423
      hardcode_shlibpath_var_CXX=no
12424
      ;;
12425
    *)
12426
      hardcode_direct_CXX=yes
12427
      hardcode_minus_L_CXX=yes # Not in the search PATH,
12428
					      # but as the default
12429
					      # location of the library.
12430
      ;;
12431
    esac
12432
12433
    case $cc_basename in
12434
      CC*)
12435
	# FIXME: insert proper C++ library support
12436
	ld_shlibs_CXX=no
12437
	;;
12438
      aCC*)
12439
	case $host_cpu in
12440
	hppa*64*)
12441
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12442
	  ;;
12443
	ia64*)
12444
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12445
	  ;;
12446
	*)
12447
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12448
	  ;;
12449
	esac
12450
	# Commands to make compiler produce verbose output that lists
12451
	# what "hidden" libraries, object files and flags are used when
12452
	# linking a shared library.
12453
	#
12454
	# There doesn't appear to be a way to prevent this compiler from
12455
	# explicitly linking system object files so we need to strip them
12456
	# from the output so that they don't get included in the library
12457
	# dependencies.
12458
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12459
	;;
12460
      *)
12461
	if test "$GXX" = yes; then
12462
	  if test $with_gnu_ld = no; then
12463
	    case $host_cpu in
12464
	    hppa*64*)
12465
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12466
	      ;;
12467
	    ia64*)
12468
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12469
	      ;;
12470
	    *)
12471
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12472
	      ;;
12473
	    esac
12474
	  fi
12475
	else
12476
	  # FIXME: insert proper C++ library support
12477
	  ld_shlibs_CXX=no
12478
	fi
12479
	;;
12480
    esac
12481
    ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12482
  interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
12483
    hardcode_direct_CXX=no
12484
    hardcode_shlibpath_var_CXX=no
12485
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12486
    export_dynamic_flag_spec_CXX='${wl}-E'
12487
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12488
    # Instead, shared libraries are loaded at an image base (0x10000000 by
12489
    # default) and relocated if they conflict, which is a slow very memory
12490
    # consuming and fragmenting process.  To avoid this, we pick a random,
12491
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12492
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12493
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12494
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12495
    ;;
12496
  irix5* | irix6*)
12497
    case $cc_basename in
12498
      CC*)
12499
	# SGI C++
12500
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12501
12502
	# Archives containing C++ object files must be created using
12503
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12504
	# necessary to make sure instantiated templates are included
12505
	# in the archive.
12506
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12507
	;;
12508
      *)
12509
	if test "$GXX" = yes; then
12510
	  if test "$with_gnu_ld" = no; then
12511
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12512
	  else
12513
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12514
	  fi
12515
	fi
12516
	link_all_deplibs_CXX=yes
12517
	;;
12518
    esac
12519
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12520
    hardcode_libdir_separator_CXX=:
12521
    ;;
12522
  linux* | k*bsd*-gnu)
12523
    case $cc_basename in
12524
      KCC*)
12525
	# Kuck and Associates, Inc. (KAI) C++ Compiler
12526
12527
	# KCC will only create a shared library if the output file
12528
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12529
	# to its proper name (with version) after linking.
12530
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12531
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12532
	# Commands to make compiler produce verbose output that lists
12533
	# what "hidden" libraries, object files and flags are used when
12534
	# linking a shared library.
12535
	#
12536
	# There doesn't appear to be a way to prevent this compiler from
12537
	# explicitly linking system object files so we need to strip them
12538
	# from the output so that they don't get included in the library
12539
	# dependencies.
12540
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12541
12542
	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12543
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12544
12545
	# Archives containing C++ object files must be created using
12546
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12547
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12548
	;;
12549
      icpc*)
12550
	# Intel C++
12551
	with_gnu_ld=yes
12552
	# version 8.0 and above of icpc choke on multiply defined symbols
12553
	# if we add $predep_objects and $postdep_objects, however 7.1 and
12554
	# earlier do not add the objects themselves.
12555
	case `$CC -V 2>&1` in
12556
	*"Version 7."*)
12557
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12558
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12559
	  ;;
12560
	*)  # Version 8.0 or newer
12561
	  tmp_idyn=
12562
	  case $host_cpu in
12563
	    ia64*) tmp_idyn=' -i_dynamic';;
12564
	  esac
12565
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12566
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12567
	  ;;
12568
	esac
12569
	archive_cmds_need_lc_CXX=no
12570
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12571
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12572
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12573
	;;
12574
      pgCC*)
12575
        # Portland Group C++ compiler
12576
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12577
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12578
12579
	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12580
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12581
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12582
        ;;
12583
      cxx*)
12584
	# Compaq C++
12585
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12586
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12587
12588
	runpath_var=LD_RUN_PATH
12589
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12590
	hardcode_libdir_separator_CXX=:
12591
12592
	# Commands to make compiler produce verbose output that lists
12593
	# what "hidden" libraries, object files and flags are used when
12594
	# linking a shared library.
12595
	#
12596
	# There doesn't appear to be a way to prevent this compiler from
12597
	# explicitly linking system object files so we need to strip them
12598
	# from the output so that they don't get included in the library
12599
	# dependencies.
12600
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12601
	;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12602
      *)
12603
	case `$CC -V 2>&1 | sed 5q` in
12604
	*Sun\ C*)
12605
	  # Sun C++ 5.9
12606
	  no_undefined_flag_CXX=' -zdefs'
12607
	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12608
	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12609
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12610
	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12611
12612
	  # Not sure whether something based on
12613
	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12614
	  # would be better.
12615
	  output_verbose_link_cmd='echo'
12616
12617
	  # Archives containing C++ object files must be created using
12618
	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12619
	  # necessary to make sure instantiated templates are included
12620
	  # in the archive.
12621
	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12622
	  ;;
12623
	esac
12624
	;;
1 by Sebastien Bacher
Import upstream version 0.7.1
12625
    esac
12626
    ;;
12627
  lynxos*)
12628
    # FIXME: insert proper C++ library support
12629
    ld_shlibs_CXX=no
12630
    ;;
12631
  m88k*)
12632
    # FIXME: insert proper C++ library support
12633
    ld_shlibs_CXX=no
12634
    ;;
12635
  mvs*)
12636
    case $cc_basename in
12637
      cxx*)
12638
	# FIXME: insert proper C++ library support
12639
	ld_shlibs_CXX=no
12640
	;;
12641
      *)
12642
	# FIXME: insert proper C++ library support
12643
	ld_shlibs_CXX=no
12644
	;;
12645
    esac
12646
    ;;
12647
  netbsd* | netbsdelf*-gnu)
12648
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12649
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12650
      wlarc=
12651
      hardcode_libdir_flag_spec_CXX='-R$libdir'
12652
      hardcode_direct_CXX=yes
12653
      hardcode_shlibpath_var_CXX=no
12654
    fi
12655
    # Workaround some broken pre-1.5 toolchains
12656
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12657
    ;;
12658
  openbsd2*)
12659
    # C++ shared libraries are fairly broken
12660
    ld_shlibs_CXX=no
12661
    ;;
12662
  openbsd*)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12663
    if test -f /usr/libexec/ld.so; then
12664
      hardcode_direct_CXX=yes
12665
      hardcode_shlibpath_var_CXX=no
12666
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12667
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12668
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12669
	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12670
	export_dynamic_flag_spec_CXX='${wl}-E'
12671
	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12672
      fi
12673
      output_verbose_link_cmd='echo'
12674
    else
12675
      ld_shlibs_CXX=no
1 by Sebastien Bacher
Import upstream version 0.7.1
12676
    fi
12677
    ;;
12678
  osf3*)
12679
    case $cc_basename in
12680
      KCC*)
12681
	# Kuck and Associates, Inc. (KAI) C++ Compiler
12682
12683
	# KCC will only create a shared library if the output file
12684
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12685
	# to its proper name (with version) after linking.
12686
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12687
12688
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12689
	hardcode_libdir_separator_CXX=:
12690
12691
	# Archives containing C++ object files must be created using
12692
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12693
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12694
12695
	;;
12696
      RCC*)
12697
	# Rational C++ 2.4.1
12698
	# FIXME: insert proper C++ library support
12699
	ld_shlibs_CXX=no
12700
	;;
12701
      cxx*)
12702
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12703
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12704
12705
	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12706
	hardcode_libdir_separator_CXX=:
12707
12708
	# Commands to make compiler produce verbose output that lists
12709
	# what "hidden" libraries, object files and flags are used when
12710
	# linking a shared library.
12711
	#
12712
	# There doesn't appear to be a way to prevent this compiler from
12713
	# explicitly linking system object files so we need to strip them
12714
	# from the output so that they don't get included in the library
12715
	# dependencies.
12716
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12717
	;;
12718
      *)
12719
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12720
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12721
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12722
12723
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12724
	  hardcode_libdir_separator_CXX=:
12725
12726
	  # Commands to make compiler produce verbose output that lists
12727
	  # what "hidden" libraries, object files and flags are used when
12728
	  # linking a shared library.
12729
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12730
12731
	else
12732
	  # FIXME: insert proper C++ library support
12733
	  ld_shlibs_CXX=no
12734
	fi
12735
	;;
12736
    esac
12737
    ;;
12738
  osf4* | osf5*)
12739
    case $cc_basename in
12740
      KCC*)
12741
	# Kuck and Associates, Inc. (KAI) C++ Compiler
12742
12743
	# KCC will only create a shared library if the output file
12744
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12745
	# to its proper name (with version) after linking.
12746
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12747
12748
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12749
	hardcode_libdir_separator_CXX=:
12750
12751
	# Archives containing C++ object files must be created using
12752
	# the KAI C++ compiler.
12753
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12754
	;;
12755
      RCC*)
12756
	# Rational C++ 2.4.1
12757
	# FIXME: insert proper C++ library support
12758
	ld_shlibs_CXX=no
12759
	;;
12760
      cxx*)
12761
	allow_undefined_flag_CXX=' -expect_unresolved \*'
12762
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12763
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12764
	  echo "-hidden">> $lib.exp~
12765
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12766
	  $rm $lib.exp'
12767
12768
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12769
	hardcode_libdir_separator_CXX=:
12770
12771
	# Commands to make compiler produce verbose output that lists
12772
	# what "hidden" libraries, object files and flags are used when
12773
	# linking a shared library.
12774
	#
12775
	# There doesn't appear to be a way to prevent this compiler from
12776
	# explicitly linking system object files so we need to strip them
12777
	# from the output so that they don't get included in the library
12778
	# dependencies.
12779
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12780
	;;
12781
      *)
12782
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12783
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12784
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12785
12786
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12787
	  hardcode_libdir_separator_CXX=:
12788
12789
	  # Commands to make compiler produce verbose output that lists
12790
	  # what "hidden" libraries, object files and flags are used when
12791
	  # linking a shared library.
12792
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12793
12794
	else
12795
	  # FIXME: insert proper C++ library support
12796
	  ld_shlibs_CXX=no
12797
	fi
12798
	;;
12799
    esac
12800
    ;;
12801
  psos*)
12802
    # FIXME: insert proper C++ library support
12803
    ld_shlibs_CXX=no
12804
    ;;
12805
  sunos4*)
12806
    case $cc_basename in
12807
      CC*)
12808
	# Sun C++ 4.x
12809
	# FIXME: insert proper C++ library support
12810
	ld_shlibs_CXX=no
12811
	;;
12812
      lcc*)
12813
	# Lucid
12814
	# FIXME: insert proper C++ library support
12815
	ld_shlibs_CXX=no
12816
	;;
12817
      *)
12818
	# FIXME: insert proper C++ library support
12819
	ld_shlibs_CXX=no
12820
	;;
12821
    esac
12822
    ;;
12823
  solaris*)
12824
    case $cc_basename in
12825
      CC*)
12826
	# Sun C++ 4.2, 5.x and Centerline C++
12827
        archive_cmds_need_lc_CXX=yes
12828
	no_undefined_flag_CXX=' -zdefs'
12829
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12830
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12831
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12832
12833
	hardcode_libdir_flag_spec_CXX='-R$libdir'
12834
	hardcode_shlibpath_var_CXX=no
12835
	case $host_os in
12836
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12837
	  *)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12838
	    # The compiler driver will combine and reorder linker options,
12839
	    # but understands `-z linker_flag'.
1 by Sebastien Bacher
Import upstream version 0.7.1
12840
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12841
	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
1 by Sebastien Bacher
Import upstream version 0.7.1
12842
	    ;;
12843
	esac
12844
	link_all_deplibs_CXX=yes
12845
12846
	output_verbose_link_cmd='echo'
12847
12848
	# Archives containing C++ object files must be created using
12849
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12850
	# necessary to make sure instantiated templates are included
12851
	# in the archive.
12852
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12853
	;;
12854
      gcx*)
12855
	# Green Hills C++ Compiler
12856
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12857
12858
	# The C++ compiler must be used to create the archive.
12859
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12860
	;;
12861
      *)
12862
	# GNU C++ compiler with Solaris linker
12863
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12864
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12865
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12866
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12867
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12868
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12869
12870
	    # Commands to make compiler produce verbose output that lists
12871
	    # what "hidden" libraries, object files and flags are used when
12872
	    # linking a shared library.
12873
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12874
	  else
12875
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12876
	    # platform.
12877
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12878
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12879
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12880
12881
	    # Commands to make compiler produce verbose output that lists
12882
	    # what "hidden" libraries, object files and flags are used when
12883
	    # linking a shared library.
12884
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12885
	  fi
12886
12887
	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
12888
	  case $host_os in
12889
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12890
	  *)
12891
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12892
	    ;;
12893
	  esac
1 by Sebastien Bacher
Import upstream version 0.7.1
12894
	fi
12895
	;;
12896
    esac
12897
    ;;
12898
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12899
    no_undefined_flag_CXX='${wl}-z,text'
12900
    archive_cmds_need_lc_CXX=no
12901
    hardcode_shlibpath_var_CXX=no
12902
    runpath_var='LD_RUN_PATH'
12903
12904
    case $cc_basename in
12905
      CC*)
12906
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12907
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12908
	;;
12909
      *)
12910
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12911
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12912
	;;
12913
    esac
12914
    ;;
12915
  sysv5* | sco3.2v5* | sco5v6*)
12916
    # Note: We can NOT use -z defs as we might desire, because we do not
12917
    # link with -lc, and that would cause any symbols used from libc to
12918
    # always be unresolved, which means just about no library would
12919
    # ever link correctly.  If we're not using GNU ld we use -z text
12920
    # though, which does catch some bad symbols but isn't as heavy-handed
12921
    # as -z defs.
12922
    # For security reasons, it is highly recommended that you always
12923
    # use absolute paths for naming shared libraries, and exclude the
12924
    # DT_RUNPATH tag from executables and libraries.  But doing so
12925
    # requires that you compile everything twice, which is a pain.
12926
    # So that behaviour is only enabled if SCOABSPATH is set to a
12927
    # non-empty value in the environment.  Most likely only useful for
12928
    # creating official distributions of packages.
12929
    # This is a hack until libtool officially supports absolute path
12930
    # names for shared libraries.
12931
    no_undefined_flag_CXX='${wl}-z,text'
12932
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12933
    archive_cmds_need_lc_CXX=no
12934
    hardcode_shlibpath_var_CXX=no
12935
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12936
    hardcode_libdir_separator_CXX=':'
12937
    link_all_deplibs_CXX=yes
12938
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12939
    runpath_var='LD_RUN_PATH'
12940
12941
    case $cc_basename in
12942
      CC*)
12943
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12944
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12945
	;;
12946
      *)
12947
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12948
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12949
	;;
12950
    esac
12951
    ;;
12952
  tandem*)
12953
    case $cc_basename in
12954
      NCC*)
12955
	# NonStop-UX NCC 3.20
12956
	# FIXME: insert proper C++ library support
12957
	ld_shlibs_CXX=no
12958
	;;
12959
      *)
12960
	# FIXME: insert proper C++ library support
12961
	ld_shlibs_CXX=no
12962
	;;
12963
    esac
12964
    ;;
12965
  vxworks*)
12966
    # FIXME: insert proper C++ library support
12967
    ld_shlibs_CXX=no
12968
    ;;
12969
  *)
12970
    # FIXME: insert proper C++ library support
12971
    ld_shlibs_CXX=no
12972
    ;;
12973
esac
12974
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12975
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12976
test "$ld_shlibs_CXX" = no && can_build_shared=no
12977
12978
GCC_CXX="$GXX"
12979
LD_CXX="$LD"
12980
12981
12982
cat > conftest.$ac_ext <<EOF
12983
class Foo
12984
{
12985
public:
12986
  Foo (void) { a = 0; }
12987
private:
12988
  int a;
12989
};
12990
EOF
12991
12992
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993
  (eval $ac_compile) 2>&5
12994
  ac_status=$?
12995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996
  (exit $ac_status); }; then
12997
  # Parse the compiler output and extract the necessary
12998
  # objects, libraries and library flags.
12999
13000
  # Sentinel used to keep track of whether or not we are before
13001
  # the conftest object file.
13002
  pre_test_object_deps_done=no
13003
13004
  # The `*' in the case matches for architectures that use `case' in
13005
  # $output_verbose_cmd can trigger glob expansion during the loop
13006
  # eval without this substitution.
13007
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13008
13009
  for p in `eval $output_verbose_link_cmd`; do
13010
    case $p in
13011
13012
    -L* | -R* | -l*)
13013
       # Some compilers place space between "-{L,R}" and the path.
13014
       # Remove the space.
13015
       if test $p = "-L" \
13016
	  || test $p = "-R"; then
13017
	 prev=$p
13018
	 continue
13019
       else
13020
	 prev=
13021
       fi
13022
13023
       if test "$pre_test_object_deps_done" = no; then
13024
	 case $p in
13025
	 -L* | -R*)
13026
	   # Internal compiler library paths should come after those
13027
	   # provided the user.  The postdeps already come after the
13028
	   # user supplied libs so there is no need to process them.
13029
	   if test -z "$compiler_lib_search_path_CXX"; then
13030
	     compiler_lib_search_path_CXX="${prev}${p}"
13031
	   else
13032
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13033
	   fi
13034
	   ;;
13035
	 # The "-l" case would never come before the object being
13036
	 # linked, so don't bother handling this case.
13037
	 esac
13038
       else
13039
	 if test -z "$postdeps_CXX"; then
13040
	   postdeps_CXX="${prev}${p}"
13041
	 else
13042
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13043
	 fi
13044
       fi
13045
       ;;
13046
13047
    *.$objext)
13048
       # This assumes that the test object file only shows up
13049
       # once in the compiler output.
13050
       if test "$p" = "conftest.$objext"; then
13051
	 pre_test_object_deps_done=yes
13052
	 continue
13053
       fi
13054
13055
       if test "$pre_test_object_deps_done" = no; then
13056
	 if test -z "$predep_objects_CXX"; then
13057
	   predep_objects_CXX="$p"
13058
	 else
13059
	   predep_objects_CXX="$predep_objects_CXX $p"
13060
	 fi
13061
       else
13062
	 if test -z "$postdep_objects_CXX"; then
13063
	   postdep_objects_CXX="$p"
13064
	 else
13065
	   postdep_objects_CXX="$postdep_objects_CXX $p"
13066
	 fi
13067
       fi
13068
       ;;
13069
13070
    *) ;; # Ignore the rest.
13071
13072
    esac
13073
  done
13074
13075
  # Clean up.
13076
  rm -f a.out a.exe
13077
else
13078
  echo "libtool.m4: error: problem compiling CXX test program"
13079
fi
13080
13081
$rm -f confest.$objext
13082
13083
# PORTME: override above test on systems where it is broken
13084
case $host_os in
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13085
interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
13086
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13087
  # hack all around it, let's just trust "g++" to DTRT.
13088
  predep_objects_CXX=
13089
  postdep_objects_CXX=
13090
  postdeps_CXX=
13091
  ;;
13092
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13093
linux*)
13094
  case `$CC -V 2>&1 | sed 5q` in
13095
  *Sun\ C*)
13096
    # Sun C++ 5.9
13097
    #
13098
    # The more standards-conforming stlport4 library is
13099
    # incompatible with the Cstd library. Avoid specifying
13100
    # it if it's in CXXFLAGS. Ignore libCrun as
13101
    # -library=stlport4 depends on it.
13102
    case " $CXX $CXXFLAGS " in
13103
    *" -library=stlport4 "*)
13104
      solaris_use_stlport4=yes
13105
      ;;
13106
    esac
13107
    if test "$solaris_use_stlport4" != yes; then
13108
      postdeps_CXX='-library=Cstd -library=Crun'
13109
    fi
13110
    ;;
13111
  esac
13112
  ;;
13113
1 by Sebastien Bacher
Import upstream version 0.7.1
13114
solaris*)
13115
  case $cc_basename in
13116
  CC*)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13117
    # The more standards-conforming stlport4 library is
13118
    # incompatible with the Cstd library. Avoid specifying
13119
    # it if it's in CXXFLAGS. Ignore libCrun as
13120
    # -library=stlport4 depends on it.
13121
    case " $CXX $CXXFLAGS " in
13122
    *" -library=stlport4 "*)
13123
      solaris_use_stlport4=yes
13124
      ;;
13125
    esac
13126
1 by Sebastien Bacher
Import upstream version 0.7.1
13127
    # Adding this requires a known-good setup of shared libraries for
13128
    # Sun compiler versions before 5.6, else PIC objects from an old
13129
    # archive will be linked into the output, leading to subtle bugs.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13130
    if test "$solaris_use_stlport4" != yes; then
13131
      postdeps_CXX='-library=Cstd -library=Crun'
13132
    fi
1 by Sebastien Bacher
Import upstream version 0.7.1
13133
    ;;
13134
  esac
13135
  ;;
13136
esac
13137
13138
13139
case " $postdeps_CXX " in
13140
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13141
esac
13142
13143
lt_prog_compiler_wl_CXX=
13144
lt_prog_compiler_pic_CXX=
13145
lt_prog_compiler_static_CXX=
13146
13147
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13148
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13149
13150
  # C++ specific cases for pic, static, wl, etc.
13151
  if test "$GXX" = yes; then
13152
    lt_prog_compiler_wl_CXX='-Wl,'
13153
    lt_prog_compiler_static_CXX='-static'
13154
13155
    case $host_os in
13156
    aix*)
13157
      # All AIX code is PIC.
13158
      if test "$host_cpu" = ia64; then
13159
	# AIX 5 now supports IA64 processor
13160
	lt_prog_compiler_static_CXX='-Bstatic'
13161
      fi
13162
      ;;
13163
    amigaos*)
13164
      # FIXME: we need at least 68020 code to build shared libraries, but
13165
      # adding the `-m68020' flag to GCC prevents building anything better,
13166
      # like `-m68040'.
13167
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13168
      ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13169
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Sebastien Bacher
Import upstream version 0.7.1
13170
      # PIC is the default for these OSes.
13171
      ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13172
    mingw* | cygwin* | os2* | pw32*)
1 by Sebastien Bacher
Import upstream version 0.7.1
13173
      # This hack is so that the source file can tell whether it is being
13174
      # built for inclusion in a dll (and should export symbols for example).
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13175
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13176
      # (--disable-auto-import) libraries
1 by Sebastien Bacher
Import upstream version 0.7.1
13177
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13178
      ;;
13179
    darwin* | rhapsody*)
13180
      # PIC is the default on this platform
13181
      # Common symbols not allowed in MH_DYLIB files
13182
      lt_prog_compiler_pic_CXX='-fno-common'
13183
      ;;
13184
    *djgpp*)
13185
      # DJGPP does not support shared libraries at all
13186
      lt_prog_compiler_pic_CXX=
13187
      ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13188
    interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
13189
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13190
      # Instead, we relocate shared libraries at runtime.
13191
      ;;
13192
    sysv4*MP*)
13193
      if test -d /usr/nec; then
13194
	lt_prog_compiler_pic_CXX=-Kconform_pic
13195
      fi
13196
      ;;
13197
    hpux*)
13198
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13199
      # not for PA HP-UX.
13200
      case $host_cpu in
13201
      hppa*64*|ia64*)
13202
	;;
13203
      *)
13204
	lt_prog_compiler_pic_CXX='-fPIC'
13205
	;;
13206
      esac
13207
      ;;
13208
    *)
13209
      lt_prog_compiler_pic_CXX='-fPIC'
13210
      ;;
13211
    esac
13212
  else
13213
    case $host_os in
13214
      aix4* | aix5*)
13215
	# All AIX code is PIC.
13216
	if test "$host_cpu" = ia64; then
13217
	  # AIX 5 now supports IA64 processor
13218
	  lt_prog_compiler_static_CXX='-Bstatic'
13219
	else
13220
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13221
	fi
13222
	;;
13223
      chorus*)
13224
	case $cc_basename in
13225
	cxch68*)
13226
	  # Green Hills C++ Compiler
13227
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13228
	  ;;
13229
	esac
13230
	;;
13231
       darwin*)
13232
         # PIC is the default on this platform
13233
         # Common symbols not allowed in MH_DYLIB files
13234
         case $cc_basename in
13235
           xlc*)
13236
           lt_prog_compiler_pic_CXX='-qnocommon'
13237
           lt_prog_compiler_wl_CXX='-Wl,'
13238
           ;;
13239
         esac
13240
       ;;
13241
      dgux*)
13242
	case $cc_basename in
13243
	  ec++*)
13244
	    lt_prog_compiler_pic_CXX='-KPIC'
13245
	    ;;
13246
	  ghcx*)
13247
	    # Green Hills C++ Compiler
13248
	    lt_prog_compiler_pic_CXX='-pic'
13249
	    ;;
13250
	  *)
13251
	    ;;
13252
	esac
13253
	;;
13254
      freebsd* | dragonfly*)
13255
	# FreeBSD uses GNU C++
13256
	;;
13257
      hpux9* | hpux10* | hpux11*)
13258
	case $cc_basename in
13259
	  CC*)
13260
	    lt_prog_compiler_wl_CXX='-Wl,'
13261
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13262
	    if test "$host_cpu" != ia64; then
13263
	      lt_prog_compiler_pic_CXX='+Z'
13264
	    fi
13265
	    ;;
13266
	  aCC*)
13267
	    lt_prog_compiler_wl_CXX='-Wl,'
13268
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13269
	    case $host_cpu in
13270
	    hppa*64*|ia64*)
13271
	      # +Z the default
13272
	      ;;
13273
	    *)
13274
	      lt_prog_compiler_pic_CXX='+Z'
13275
	      ;;
13276
	    esac
13277
	    ;;
13278
	  *)
13279
	    ;;
13280
	esac
13281
	;;
13282
      interix*)
13283
	# This is c89, which is MS Visual C++ (no shared libs)
13284
	# Anyone wants to do a port?
13285
	;;
13286
      irix5* | irix6* | nonstopux*)
13287
	case $cc_basename in
13288
	  CC*)
13289
	    lt_prog_compiler_wl_CXX='-Wl,'
13290
	    lt_prog_compiler_static_CXX='-non_shared'
13291
	    # CC pic flag -KPIC is the default.
13292
	    ;;
13293
	  *)
13294
	    ;;
13295
	esac
13296
	;;
13297
      linux* | k*bsd*-gnu)
13298
	case $cc_basename in
13299
	  KCC*)
13300
	    # KAI C++ Compiler
13301
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13302
	    lt_prog_compiler_pic_CXX='-fPIC'
13303
	    ;;
13304
	  icpc* | ecpc*)
13305
	    # Intel C++
13306
	    lt_prog_compiler_wl_CXX='-Wl,'
13307
	    lt_prog_compiler_pic_CXX='-KPIC'
13308
	    lt_prog_compiler_static_CXX='-static'
13309
	    ;;
13310
	  pgCC*)
13311
	    # Portland Group C++ compiler.
13312
	    lt_prog_compiler_wl_CXX='-Wl,'
13313
	    lt_prog_compiler_pic_CXX='-fpic'
13314
	    lt_prog_compiler_static_CXX='-Bstatic'
13315
	    ;;
13316
	  cxx*)
13317
	    # Compaq C++
13318
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13319
	    # Linux and Compaq Tru64 Unix objects are PIC.
13320
	    lt_prog_compiler_pic_CXX=
13321
	    lt_prog_compiler_static_CXX='-non_shared'
13322
	    ;;
13323
	  *)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13324
	    case `$CC -V 2>&1 | sed 5q` in
13325
	    *Sun\ C*)
13326
	      # Sun C++ 5.9
13327
	      lt_prog_compiler_pic_CXX='-KPIC'
13328
	      lt_prog_compiler_static_CXX='-Bstatic'
13329
	      lt_prog_compiler_wl_CXX='-Qoption ld '
13330
	      ;;
13331
	    esac
1 by Sebastien Bacher
Import upstream version 0.7.1
13332
	    ;;
13333
	esac
13334
	;;
13335
      lynxos*)
13336
	;;
13337
      m88k*)
13338
	;;
13339
      mvs*)
13340
	case $cc_basename in
13341
	  cxx*)
13342
	    lt_prog_compiler_pic_CXX='-W c,exportall'
13343
	    ;;
13344
	  *)
13345
	    ;;
13346
	esac
13347
	;;
13348
      netbsd* | netbsdelf*-gnu)
13349
	;;
13350
      osf3* | osf4* | osf5*)
13351
	case $cc_basename in
13352
	  KCC*)
13353
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13354
	    ;;
13355
	  RCC*)
13356
	    # Rational C++ 2.4.1
13357
	    lt_prog_compiler_pic_CXX='-pic'
13358
	    ;;
13359
	  cxx*)
13360
	    # Digital/Compaq C++
13361
	    lt_prog_compiler_wl_CXX='-Wl,'
13362
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13363
	    # Linux and Compaq Tru64 Unix objects are PIC.
13364
	    lt_prog_compiler_pic_CXX=
13365
	    lt_prog_compiler_static_CXX='-non_shared'
13366
	    ;;
13367
	  *)
13368
	    ;;
13369
	esac
13370
	;;
13371
      psos*)
13372
	;;
13373
      solaris*)
13374
	case $cc_basename in
13375
	  CC*)
13376
	    # Sun C++ 4.2, 5.x and Centerline C++
13377
	    lt_prog_compiler_pic_CXX='-KPIC'
13378
	    lt_prog_compiler_static_CXX='-Bstatic'
13379
	    lt_prog_compiler_wl_CXX='-Qoption ld '
13380
	    ;;
13381
	  gcx*)
13382
	    # Green Hills C++ Compiler
13383
	    lt_prog_compiler_pic_CXX='-PIC'
13384
	    ;;
13385
	  *)
13386
	    ;;
13387
	esac
13388
	;;
13389
      sunos4*)
13390
	case $cc_basename in
13391
	  CC*)
13392
	    # Sun C++ 4.x
13393
	    lt_prog_compiler_pic_CXX='-pic'
13394
	    lt_prog_compiler_static_CXX='-Bstatic'
13395
	    ;;
13396
	  lcc*)
13397
	    # Lucid
13398
	    lt_prog_compiler_pic_CXX='-pic'
13399
	    ;;
13400
	  *)
13401
	    ;;
13402
	esac
13403
	;;
13404
      tandem*)
13405
	case $cc_basename in
13406
	  NCC*)
13407
	    # NonStop-UX NCC 3.20
13408
	    lt_prog_compiler_pic_CXX='-KPIC'
13409
	    ;;
13410
	  *)
13411
	    ;;
13412
	esac
13413
	;;
13414
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13415
	case $cc_basename in
13416
	  CC*)
13417
	    lt_prog_compiler_wl_CXX='-Wl,'
13418
	    lt_prog_compiler_pic_CXX='-KPIC'
13419
	    lt_prog_compiler_static_CXX='-Bstatic'
13420
	    ;;
13421
	esac
13422
	;;
13423
      vxworks*)
13424
	;;
13425
      *)
13426
	lt_prog_compiler_can_build_shared_CXX=no
13427
	;;
13428
    esac
13429
  fi
13430
13431
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13432
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13433
13434
#
13435
# Check to make sure the PIC flag actually works.
13436
#
13437
if test -n "$lt_prog_compiler_pic_CXX"; then
13438
13439
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13440
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13441
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13442
  echo $ECHO_N "(cached) $ECHO_C" >&6
13443
else
13444
  lt_prog_compiler_pic_works_CXX=no
13445
  ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13446
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
13447
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13448
   # Insert the option either (1) after the last *FLAGS variable, or
13449
   # (2) before a word containing "conftest.", or (3) at the end.
13450
   # Note that $ac_compile itself does not contain backslashes and begins
13451
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13452
   # The option is referenced via a variable to avoid confusing sed.
13453
   lt_compile=`echo "$ac_compile" | $SED \
13454
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13455
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13457
   (eval echo "\"\$as_me:13466: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
13458
   (eval "$lt_compile" 2>conftest.err)
13459
   ac_status=$?
13460
   cat conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13461
   echo "$as_me:13470: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
13462
   if (exit $ac_status) && test -s "$ac_outfile"; then
13463
     # The compiler can only warn and ignore the option if not recognized
13464
     # So say no if there are warnings other than the usual output.
13465
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13466
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13467
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13468
       lt_prog_compiler_pic_works_CXX=yes
13469
     fi
13470
   fi
13471
   $rm conftest*
13472
13473
fi
13474
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13475
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13476
13477
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13478
    case $lt_prog_compiler_pic_CXX in
13479
     "" | " "*) ;;
13480
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13481
     esac
13482
else
13483
    lt_prog_compiler_pic_CXX=
13484
     lt_prog_compiler_can_build_shared_CXX=no
13485
fi
13486
13487
fi
13488
case $host_os in
13489
  # For platforms which do not support PIC, -DPIC is meaningless:
13490
  *djgpp*)
13491
    lt_prog_compiler_pic_CXX=
13492
    ;;
13493
  *)
13494
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13495
    ;;
13496
esac
13497
13498
#
13499
# Check to make sure the static flag actually works.
13500
#
13501
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13502
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13503
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13504
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13505
  echo $ECHO_N "(cached) $ECHO_C" >&6
13506
else
13507
  lt_prog_compiler_static_works_CXX=no
13508
   save_LDFLAGS="$LDFLAGS"
13509
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13510
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
13511
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13512
     # The linker can only warn and ignore the option if not recognized
13513
     # So say no if there are warnings
13514
     if test -s conftest.err; then
13515
       # Append any errors to the config.log.
13516
       cat conftest.err 1>&5
13517
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13518
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13519
       if diff conftest.exp conftest.er2 >/dev/null; then
13520
         lt_prog_compiler_static_works_CXX=yes
13521
       fi
13522
     else
13523
       lt_prog_compiler_static_works_CXX=yes
13524
     fi
13525
   fi
13526
   $rm conftest*
13527
   LDFLAGS="$save_LDFLAGS"
13528
13529
fi
13530
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13531
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13532
13533
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13534
    :
13535
else
13536
    lt_prog_compiler_static_CXX=
13537
fi
13538
13539
13540
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13541
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13542
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13543
  echo $ECHO_N "(cached) $ECHO_C" >&6
13544
else
13545
  lt_cv_prog_compiler_c_o_CXX=no
13546
   $rm -r conftest 2>/dev/null
13547
   mkdir conftest
13548
   cd conftest
13549
   mkdir out
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13550
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
13551
13552
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13553
   # Insert the option either (1) after the last *FLAGS variable, or
13554
   # (2) before a word containing "conftest.", or (3) at the end.
13555
   # Note that $ac_compile itself does not contain backslashes and begins
13556
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13557
   lt_compile=`echo "$ac_compile" | $SED \
13558
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13559
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13560
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13561
   (eval echo "\"\$as_me:13570: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
13562
   (eval "$lt_compile" 2>out/conftest.err)
13563
   ac_status=$?
13564
   cat out/conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13565
   echo "$as_me:13574: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
13566
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13567
   then
13568
     # The compiler can only warn and ignore the option if not recognized
13569
     # So say no if there are warnings
13570
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13571
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13572
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13573
       lt_cv_prog_compiler_c_o_CXX=yes
13574
     fi
13575
   fi
13576
   chmod u+w . 2>&5
13577
   $rm conftest*
13578
   # SGI C++ compiler will create directory out/ii_files/ for
13579
   # template instantiation
13580
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13581
   $rm out/* && rmdir out
13582
   cd ..
13583
   rmdir conftest
13584
   $rm conftest*
13585
13586
fi
13587
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13588
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13589
13590
13591
hard_links="nottested"
13592
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13593
  # do not overwrite the value of need_locks provided by the user
13594
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13595
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13596
  hard_links=yes
13597
  $rm conftest*
13598
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13599
  touch conftest.a
13600
  ln conftest.a conftest.b 2>&5 || hard_links=no
13601
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13602
  { echo "$as_me:$LINENO: result: $hard_links" >&5
13603
echo "${ECHO_T}$hard_links" >&6; }
13604
  if test "$hard_links" = no; then
13605
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13606
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13607
    need_locks=warn
13608
  fi
13609
else
13610
  need_locks=no
13611
fi
13612
13613
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13614
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13615
13616
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13617
  case $host_os in
13618
  aix4* | aix5*)
13619
    # If we're using GNU nm, then we don't want the "-C" option.
13620
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13621
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13622
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13623
    else
13624
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13625
    fi
13626
    ;;
13627
  pw32*)
13628
    export_symbols_cmds_CXX="$ltdll_cmds"
13629
  ;;
13630
  cygwin* | mingw*)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13631
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1 by Sebastien Bacher
Import upstream version 0.7.1
13632
  ;;
13633
  linux* | k*bsd*-gnu)
13634
    link_all_deplibs_CXX=no
13635
  ;;
13636
  *)
13637
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13638
  ;;
13639
  esac
13640
13641
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13642
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13643
test "$ld_shlibs_CXX" = no && can_build_shared=no
13644
13645
#
13646
# Do we need to explicitly link libc?
13647
#
13648
case "x$archive_cmds_need_lc_CXX" in
13649
x|xyes)
13650
  # Assume -lc should be added
13651
  archive_cmds_need_lc_CXX=yes
13652
13653
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13654
    case $archive_cmds_CXX in
13655
    *'~'*)
13656
      # FIXME: we may have to deal with multi-command sequences.
13657
      ;;
13658
    '$CC '*)
13659
      # Test whether the compiler implicitly links with -lc since on some
13660
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13661
      # to ld, don't add -lc before -lgcc.
13662
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13663
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13664
      $rm conftest*
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13665
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
13666
13667
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668
  (eval $ac_compile) 2>&5
13669
  ac_status=$?
13670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671
  (exit $ac_status); } 2>conftest.err; then
13672
        soname=conftest
13673
        lib=conftest
13674
        libobjs=conftest.$ac_objext
13675
        deplibs=
13676
        wl=$lt_prog_compiler_wl_CXX
13677
	pic_flag=$lt_prog_compiler_pic_CXX
13678
        compiler_flags=-v
13679
        linker_flags=-v
13680
        verstring=
13681
        output_objdir=.
13682
        libname=conftest
13683
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13684
        allow_undefined_flag_CXX=
13685
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13686
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13687
  ac_status=$?
13688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689
  (exit $ac_status); }
13690
        then
13691
	  archive_cmds_need_lc_CXX=no
13692
        else
13693
	  archive_cmds_need_lc_CXX=yes
13694
        fi
13695
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13696
      else
13697
        cat conftest.err 1>&5
13698
      fi
13699
      $rm conftest*
13700
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13701
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13702
      ;;
13703
    esac
13704
  fi
13705
  ;;
13706
esac
13707
13708
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13709
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13710
library_names_spec=
13711
libname_spec='lib$name'
13712
soname_spec=
13713
shrext_cmds=".so"
13714
postinstall_cmds=
13715
postuninstall_cmds=
13716
finish_cmds=
13717
finish_eval=
13718
shlibpath_var=
13719
shlibpath_overrides_runpath=unknown
13720
version_type=none
13721
dynamic_linker="$host_os ld.so"
13722
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13723
1 by Sebastien Bacher
Import upstream version 0.7.1
13724
need_lib_prefix=unknown
13725
hardcode_into_libs=no
13726
13727
# when you set need_version to no, make sure it does not cause -set_version
13728
# flags to be left without arguments
13729
need_version=unknown
13730
13731
case $host_os in
13732
aix3*)
13733
  version_type=linux
13734
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13735
  shlibpath_var=LIBPATH
13736
13737
  # AIX 3 has no versioning support, so we append a major version to the name.
13738
  soname_spec='${libname}${release}${shared_ext}$major'
13739
  ;;
13740
13741
aix4* | aix5*)
13742
  version_type=linux
13743
  need_lib_prefix=no
13744
  need_version=no
13745
  hardcode_into_libs=yes
13746
  if test "$host_cpu" = ia64; then
13747
    # AIX 5 supports IA64
13748
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13749
    shlibpath_var=LD_LIBRARY_PATH
13750
  else
13751
    # With GCC up to 2.95.x, collect2 would create an import file
13752
    # for dependence libraries.  The import file would start with
13753
    # the line `#! .'.  This would cause the generated library to
13754
    # depend on `.', always an invalid library.  This was fixed in
13755
    # development snapshots of GCC prior to 3.0.
13756
    case $host_os in
13757
      aix4 | aix4.[01] | aix4.[01].*)
13758
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13759
	   echo ' yes '
13760
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13761
	:
13762
      else
13763
	can_build_shared=no
13764
      fi
13765
      ;;
13766
    esac
13767
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13768
    # soname into executable. Probably we can add versioning support to
13769
    # collect2, so additional links can be useful in future.
13770
    if test "$aix_use_runtimelinking" = yes; then
13771
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13772
      # instead of lib<name>.a to let people know that these are not
13773
      # typical AIX shared libraries.
13774
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775
    else
13776
      # We preserve .a as extension for shared libraries through AIX4.2
13777
      # and later when we are not doing run time linking.
13778
      library_names_spec='${libname}${release}.a $libname.a'
13779
      soname_spec='${libname}${release}${shared_ext}$major'
13780
    fi
13781
    shlibpath_var=LIBPATH
13782
  fi
13783
  ;;
13784
13785
amigaos*)
13786
  library_names_spec='$libname.ixlibrary $libname.a'
13787
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13788
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13789
  ;;
13790
13791
beos*)
13792
  library_names_spec='${libname}${shared_ext}'
13793
  dynamic_linker="$host_os ld.so"
13794
  shlibpath_var=LIBRARY_PATH
13795
  ;;
13796
13797
bsdi[45]*)
13798
  version_type=linux
13799
  need_version=no
13800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13801
  soname_spec='${libname}${release}${shared_ext}$major'
13802
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13803
  shlibpath_var=LD_LIBRARY_PATH
13804
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13805
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13806
  # the default ld.so.conf also contains /usr/contrib/lib and
13807
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13808
  # libtool to hard-code these into programs
13809
  ;;
13810
13811
cygwin* | mingw* | pw32*)
13812
  version_type=windows
13813
  shrext_cmds=".dll"
13814
  need_version=no
13815
  need_lib_prefix=no
13816
13817
  case $GCC,$host_os in
13818
  yes,cygwin* | yes,mingw* | yes,pw32*)
13819
    library_names_spec='$libname.dll.a'
13820
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13821
    postinstall_cmds='base_file=`basename \${file}`~
13822
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13823
      dldir=$destdir/`dirname \$dlpath`~
13824
      test -d \$dldir || mkdir -p \$dldir~
13825
      $install_prog $dir/$dlname \$dldir/$dlname~
13826
      chmod a+x \$dldir/$dlname'
13827
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13828
      dlpath=$dir/\$dldll~
13829
       $rm \$dlpath'
13830
    shlibpath_overrides_runpath=yes
13831
13832
    case $host_os in
13833
    cygwin*)
13834
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13835
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13836
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13837
      ;;
13838
    mingw*)
13839
      # MinGW DLLs use traditional 'lib' prefix
13840
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13841
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13842
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13843
        # It is most probably a Windows format PATH printed by
13844
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13845
        # path with ; separators, and with drive letters. We can handle the
13846
        # drive letters (cygwin fileutils understands them), so leave them,
13847
        # especially as we might pass files found there to a mingw objdump,
13848
        # which wouldn't understand a cygwinified path. Ahh.
13849
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13850
      else
13851
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13852
      fi
13853
      ;;
13854
    pw32*)
13855
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13856
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13857
      ;;
13858
    esac
13859
    ;;
13860
13861
  *)
13862
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13863
    ;;
13864
  esac
13865
  dynamic_linker='Win32 ld.exe'
13866
  # FIXME: first we should search . and the directory the executable is in
13867
  shlibpath_var=PATH
13868
  ;;
13869
13870
darwin* | rhapsody*)
13871
  dynamic_linker="$host_os dyld"
13872
  version_type=darwin
13873
  need_lib_prefix=no
13874
  need_version=no
13875
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13876
  soname_spec='${libname}${release}${major}$shared_ext'
13877
  shlibpath_overrides_runpath=yes
13878
  shlibpath_var=DYLD_LIBRARY_PATH
13879
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13880
1 by Sebastien Bacher
Import upstream version 0.7.1
13881
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13882
  ;;
13883
13884
dgux*)
13885
  version_type=linux
13886
  need_lib_prefix=no
13887
  need_version=no
13888
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13889
  soname_spec='${libname}${release}${shared_ext}$major'
13890
  shlibpath_var=LD_LIBRARY_PATH
13891
  ;;
13892
13893
freebsd1*)
13894
  dynamic_linker=no
13895
  ;;
13896
13897
freebsd* | dragonfly*)
13898
  # DragonFly does not have aout.  When/if they implement a new
13899
  # versioning mechanism, adjust this.
13900
  if test -x /usr/bin/objformat; then
13901
    objformat=`/usr/bin/objformat`
13902
  else
13903
    case $host_os in
13904
    freebsd[123]*) objformat=aout ;;
13905
    *) objformat=elf ;;
13906
    esac
13907
  fi
13908
  version_type=freebsd-$objformat
13909
  case $version_type in
13910
    freebsd-elf*)
13911
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13912
      need_version=no
13913
      need_lib_prefix=no
13914
      ;;
13915
    freebsd-*)
13916
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13917
      need_version=yes
13918
      ;;
13919
  esac
13920
  shlibpath_var=LD_LIBRARY_PATH
13921
  case $host_os in
13922
  freebsd2*)
13923
    shlibpath_overrides_runpath=yes
13924
    ;;
13925
  freebsd3.[01]* | freebsdelf3.[01]*)
13926
    shlibpath_overrides_runpath=yes
13927
    hardcode_into_libs=yes
13928
    ;;
13929
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13930
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13931
    shlibpath_overrides_runpath=no
13932
    hardcode_into_libs=yes
13933
    ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13934
  *) # from 4.6 on, and DragonFly
1 by Sebastien Bacher
Import upstream version 0.7.1
13935
    shlibpath_overrides_runpath=yes
13936
    hardcode_into_libs=yes
13937
    ;;
13938
  esac
13939
  ;;
13940
13941
gnu*)
13942
  version_type=linux
13943
  need_lib_prefix=no
13944
  need_version=no
13945
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13946
  soname_spec='${libname}${release}${shared_ext}$major'
13947
  shlibpath_var=LD_LIBRARY_PATH
13948
  hardcode_into_libs=yes
13949
  ;;
13950
13951
hpux9* | hpux10* | hpux11*)
13952
  # Give a soname corresponding to the major version so that dld.sl refuses to
13953
  # link against other versions.
13954
  version_type=sunos
13955
  need_lib_prefix=no
13956
  need_version=no
13957
  case $host_cpu in
13958
  ia64*)
13959
    shrext_cmds='.so'
13960
    hardcode_into_libs=yes
13961
    dynamic_linker="$host_os dld.so"
13962
    shlibpath_var=LD_LIBRARY_PATH
13963
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13964
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965
    soname_spec='${libname}${release}${shared_ext}$major'
13966
    if test "X$HPUX_IA64_MODE" = X32; then
13967
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13968
    else
13969
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13970
    fi
13971
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13972
    ;;
13973
   hppa*64*)
13974
     shrext_cmds='.sl'
13975
     hardcode_into_libs=yes
13976
     dynamic_linker="$host_os dld.sl"
13977
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13978
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13979
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13980
     soname_spec='${libname}${release}${shared_ext}$major'
13981
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13982
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13983
     ;;
13984
   *)
13985
    shrext_cmds='.sl'
13986
    dynamic_linker="$host_os dld.sl"
13987
    shlibpath_var=SHLIB_PATH
13988
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13989
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990
    soname_spec='${libname}${release}${shared_ext}$major'
13991
    ;;
13992
  esac
13993
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13994
  postinstall_cmds='chmod 555 $lib'
13995
  ;;
13996
1.1.1 by Michael Vogt
Import upstream version 0.7.2
13997
interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
13998
  version_type=linux
13999
  need_lib_prefix=no
14000
  need_version=no
14001
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14002
  soname_spec='${libname}${release}${shared_ext}$major'
14003
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14004
  shlibpath_var=LD_LIBRARY_PATH
14005
  shlibpath_overrides_runpath=no
14006
  hardcode_into_libs=yes
14007
  ;;
14008
14009
irix5* | irix6* | nonstopux*)
14010
  case $host_os in
14011
    nonstopux*) version_type=nonstopux ;;
14012
    *)
14013
	if test "$lt_cv_prog_gnu_ld" = yes; then
14014
		version_type=linux
14015
	else
14016
		version_type=irix
14017
	fi ;;
14018
  esac
14019
  need_lib_prefix=no
14020
  need_version=no
14021
  soname_spec='${libname}${release}${shared_ext}$major'
14022
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14023
  case $host_os in
14024
  irix5* | nonstopux*)
14025
    libsuff= shlibsuff=
14026
    ;;
14027
  *)
14028
    case $LD in # libtool.m4 will add one of these switches to LD
14029
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14030
      libsuff= shlibsuff= libmagic=32-bit;;
14031
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14032
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14033
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14034
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14035
    *) libsuff= shlibsuff= libmagic=never-match;;
14036
    esac
14037
    ;;
14038
  esac
14039
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14040
  shlibpath_overrides_runpath=no
14041
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14042
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14043
  hardcode_into_libs=yes
14044
  ;;
14045
14046
# No shared lib support for Linux oldld, aout, or coff.
14047
linux*oldld* | linux*aout* | linux*coff*)
14048
  dynamic_linker=no
14049
  ;;
14050
14051
# This must be Linux ELF.
14052
linux* | k*bsd*-gnu)
14053
  version_type=linux
14054
  need_lib_prefix=no
14055
  need_version=no
14056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057
  soname_spec='${libname}${release}${shared_ext}$major'
14058
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14059
  shlibpath_var=LD_LIBRARY_PATH
14060
  shlibpath_overrides_runpath=no
14061
  # This implies no fast_install, which is unacceptable.
14062
  # Some rework will be needed to allow for fast_install
14063
  # before this can be enabled.
14064
  hardcode_into_libs=yes
14065
14066
  # Append ld.so.conf contents to the search path
14067
  if test -f /etc/ld.so.conf; then
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14068
    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;/^$/d' | tr '\n' ' '`
1 by Sebastien Bacher
Import upstream version 0.7.1
14069
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14070
  fi
14071
14072
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14073
  # powerpc, because MkLinux only supported shared libraries with the
14074
  # GNU dynamic linker.  Since this was broken with cross compilers,
14075
  # most powerpc-linux boxes support dynamic linking these days and
14076
  # people can always --disable-shared, the test was removed, and we
14077
  # assume the GNU/Linux dynamic linker is in use.
14078
  dynamic_linker='GNU/Linux ld.so'
14079
  ;;
14080
14081
netbsdelf*-gnu)
14082
  version_type=linux
14083
  need_lib_prefix=no
14084
  need_version=no
14085
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14086
  soname_spec='${libname}${release}${shared_ext}$major'
14087
  shlibpath_var=LD_LIBRARY_PATH
14088
  shlibpath_overrides_runpath=no
14089
  hardcode_into_libs=yes
14090
  dynamic_linker='NetBSD ld.elf_so'
14091
  ;;
14092
14093
netbsd*)
14094
  version_type=sunos
14095
  need_lib_prefix=no
14096
  need_version=no
14097
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14098
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14099
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14100
    dynamic_linker='NetBSD (a.out) ld.so'
14101
  else
14102
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14103
    soname_spec='${libname}${release}${shared_ext}$major'
14104
    dynamic_linker='NetBSD ld.elf_so'
14105
  fi
14106
  shlibpath_var=LD_LIBRARY_PATH
14107
  shlibpath_overrides_runpath=yes
14108
  hardcode_into_libs=yes
14109
  ;;
14110
14111
newsos6)
14112
  version_type=linux
14113
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114
  shlibpath_var=LD_LIBRARY_PATH
14115
  shlibpath_overrides_runpath=yes
14116
  ;;
14117
14118
nto-qnx*)
14119
  version_type=linux
14120
  need_lib_prefix=no
14121
  need_version=no
14122
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123
  soname_spec='${libname}${release}${shared_ext}$major'
14124
  shlibpath_var=LD_LIBRARY_PATH
14125
  shlibpath_overrides_runpath=yes
14126
  ;;
14127
14128
openbsd*)
14129
  version_type=sunos
14130
  sys_lib_dlsearch_path_spec="/usr/lib"
14131
  need_lib_prefix=no
14132
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14133
  case $host_os in
14134
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14135
    *)                         need_version=no  ;;
14136
  esac
14137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14138
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14139
  shlibpath_var=LD_LIBRARY_PATH
14140
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14141
    case $host_os in
14142
      openbsd2.[89] | openbsd2.[89].*)
14143
	shlibpath_overrides_runpath=no
14144
	;;
14145
      *)
14146
	shlibpath_overrides_runpath=yes
14147
	;;
14148
      esac
14149
  else
14150
    shlibpath_overrides_runpath=yes
14151
  fi
14152
  ;;
14153
14154
os2*)
14155
  libname_spec='$name'
14156
  shrext_cmds=".dll"
14157
  need_lib_prefix=no
14158
  library_names_spec='$libname${shared_ext} $libname.a'
14159
  dynamic_linker='OS/2 ld.exe'
14160
  shlibpath_var=LIBPATH
14161
  ;;
14162
14163
osf3* | osf4* | osf5*)
14164
  version_type=osf
14165
  need_lib_prefix=no
14166
  need_version=no
14167
  soname_spec='${libname}${release}${shared_ext}$major'
14168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169
  shlibpath_var=LD_LIBRARY_PATH
14170
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14171
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14172
  ;;
14173
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14174
rdos*)
14175
  dynamic_linker=no
14176
  ;;
14177
1 by Sebastien Bacher
Import upstream version 0.7.1
14178
solaris*)
14179
  version_type=linux
14180
  need_lib_prefix=no
14181
  need_version=no
14182
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183
  soname_spec='${libname}${release}${shared_ext}$major'
14184
  shlibpath_var=LD_LIBRARY_PATH
14185
  shlibpath_overrides_runpath=yes
14186
  hardcode_into_libs=yes
14187
  # ldd complains unless libraries are executable
14188
  postinstall_cmds='chmod +x $lib'
14189
  ;;
14190
14191
sunos4*)
14192
  version_type=sunos
14193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14194
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14195
  shlibpath_var=LD_LIBRARY_PATH
14196
  shlibpath_overrides_runpath=yes
14197
  if test "$with_gnu_ld" = yes; then
14198
    need_lib_prefix=no
14199
  fi
14200
  need_version=yes
14201
  ;;
14202
14203
sysv4 | sysv4.3*)
14204
  version_type=linux
14205
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14206
  soname_spec='${libname}${release}${shared_ext}$major'
14207
  shlibpath_var=LD_LIBRARY_PATH
14208
  case $host_vendor in
14209
    sni)
14210
      shlibpath_overrides_runpath=no
14211
      need_lib_prefix=no
14212
      export_dynamic_flag_spec='${wl}-Blargedynsym'
14213
      runpath_var=LD_RUN_PATH
14214
      ;;
14215
    siemens)
14216
      need_lib_prefix=no
14217
      ;;
14218
    motorola)
14219
      need_lib_prefix=no
14220
      need_version=no
14221
      shlibpath_overrides_runpath=no
14222
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14223
      ;;
14224
  esac
14225
  ;;
14226
14227
sysv4*MP*)
14228
  if test -d /usr/nec ;then
14229
    version_type=linux
14230
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14231
    soname_spec='$libname${shared_ext}.$major'
14232
    shlibpath_var=LD_LIBRARY_PATH
14233
  fi
14234
  ;;
14235
14236
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14237
  version_type=freebsd-elf
14238
  need_lib_prefix=no
14239
  need_version=no
14240
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14241
  soname_spec='${libname}${release}${shared_ext}$major'
14242
  shlibpath_var=LD_LIBRARY_PATH
14243
  hardcode_into_libs=yes
14244
  if test "$with_gnu_ld" = yes; then
14245
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14246
    shlibpath_overrides_runpath=no
14247
  else
14248
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14249
    shlibpath_overrides_runpath=yes
14250
    case $host_os in
14251
      sco3.2v5*)
14252
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14253
	;;
14254
    esac
14255
  fi
14256
  sys_lib_dlsearch_path_spec='/usr/lib'
14257
  ;;
14258
14259
uts4*)
14260
  version_type=linux
14261
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262
  soname_spec='${libname}${release}${shared_ext}$major'
14263
  shlibpath_var=LD_LIBRARY_PATH
14264
  ;;
14265
14266
*)
14267
  dynamic_linker=no
14268
  ;;
14269
esac
14270
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14271
echo "${ECHO_T}$dynamic_linker" >&6; }
14272
test "$dynamic_linker" = no && can_build_shared=no
14273
14274
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14275
if test "$GCC" = yes; then
14276
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14277
fi
14278
14279
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14280
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14281
hardcode_action_CXX=
14282
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14283
   test -n "$runpath_var_CXX" || \
14284
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14285
14286
  # We can hardcode non-existant directories.
14287
  if test "$hardcode_direct_CXX" != no &&
14288
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14289
     # have to relink, otherwise we might link with an installed library
14290
     # when we should be linking with a yet-to-be-installed one
14291
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14292
     test "$hardcode_minus_L_CXX" != no; then
14293
    # Linking always hardcodes the temporary library directory.
14294
    hardcode_action_CXX=relink
14295
  else
14296
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14297
    hardcode_action_CXX=immediate
14298
  fi
14299
else
14300
  # We cannot hardcode anything, or else we can only hardcode existing
14301
  # directories.
14302
  hardcode_action_CXX=unsupported
14303
fi
14304
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14305
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14306
14307
if test "$hardcode_action_CXX" = relink; then
14308
  # Fast installation is not supported
14309
  enable_fast_install=no
14310
elif test "$shlibpath_overrides_runpath" = yes ||
14311
     test "$enable_shared" = no; then
14312
  # Fast installation is not necessary
14313
  enable_fast_install=needless
14314
fi
14315
14316
14317
# The else clause should only fire when bootstrapping the
14318
# libtool distribution, otherwise you forgot to ship ltmain.sh
14319
# with your package, and you will get complaints that there are
14320
# no rules to generate ltmain.sh.
14321
if test -f "$ltmain"; then
14322
  # See if we are running on zsh, and set the options which allow our commands through
14323
  # without removal of \ escapes.
14324
  if test -n "${ZSH_VERSION+set}" ; then
14325
    setopt NO_GLOB_SUBST
14326
  fi
14327
  # Now quote all the things that may contain metacharacters while being
14328
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14329
  # variables and quote the copies for generation of the libtool script.
14330
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14331
    SED SHELL STRIP \
14332
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14333
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14334
    deplibs_check_method reload_flag reload_cmds need_locks \
14335
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14336
    lt_cv_sys_global_symbol_to_c_name_address \
14337
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14338
    old_postinstall_cmds old_postuninstall_cmds \
14339
    compiler_CXX \
14340
    CC_CXX \
14341
    LD_CXX \
14342
    lt_prog_compiler_wl_CXX \
14343
    lt_prog_compiler_pic_CXX \
14344
    lt_prog_compiler_static_CXX \
14345
    lt_prog_compiler_no_builtin_flag_CXX \
14346
    export_dynamic_flag_spec_CXX \
14347
    thread_safe_flag_spec_CXX \
14348
    whole_archive_flag_spec_CXX \
14349
    enable_shared_with_static_runtimes_CXX \
14350
    old_archive_cmds_CXX \
14351
    old_archive_from_new_cmds_CXX \
14352
    predep_objects_CXX \
14353
    postdep_objects_CXX \
14354
    predeps_CXX \
14355
    postdeps_CXX \
14356
    compiler_lib_search_path_CXX \
14357
    archive_cmds_CXX \
14358
    archive_expsym_cmds_CXX \
14359
    postinstall_cmds_CXX \
14360
    postuninstall_cmds_CXX \
14361
    old_archive_from_expsyms_cmds_CXX \
14362
    allow_undefined_flag_CXX \
14363
    no_undefined_flag_CXX \
14364
    export_symbols_cmds_CXX \
14365
    hardcode_libdir_flag_spec_CXX \
14366
    hardcode_libdir_flag_spec_ld_CXX \
14367
    hardcode_libdir_separator_CXX \
14368
    hardcode_automatic_CXX \
14369
    module_cmds_CXX \
14370
    module_expsym_cmds_CXX \
14371
    lt_cv_prog_compiler_c_o_CXX \
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14372
    fix_srcfile_path_CXX \
1 by Sebastien Bacher
Import upstream version 0.7.1
14373
    exclude_expsyms_CXX \
14374
    include_expsyms_CXX; do
14375
14376
    case $var in
14377
    old_archive_cmds_CXX | \
14378
    old_archive_from_new_cmds_CXX | \
14379
    archive_cmds_CXX | \
14380
    archive_expsym_cmds_CXX | \
14381
    module_cmds_CXX | \
14382
    module_expsym_cmds_CXX | \
14383
    old_archive_from_expsyms_cmds_CXX | \
14384
    export_symbols_cmds_CXX | \
14385
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14386
    postinstall_cmds | postuninstall_cmds | \
14387
    old_postinstall_cmds | old_postuninstall_cmds | \
14388
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14389
      # Double-quote double-evaled strings.
14390
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14391
      ;;
14392
    *)
14393
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14394
      ;;
14395
    esac
14396
  done
14397
14398
  case $lt_echo in
14399
  *'\$0 --fallback-echo"')
14400
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14401
    ;;
14402
  esac
14403
14404
cfgfile="$ofile"
14405
14406
  cat <<__EOF__ >> "$cfgfile"
14407
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14408
14409
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14410
14411
# Shell to use when invoking shell scripts.
14412
SHELL=$lt_SHELL
14413
14414
# Whether or not to build shared libraries.
14415
build_libtool_libs=$enable_shared
14416
14417
# Whether or not to build static libraries.
14418
build_old_libs=$enable_static
14419
14420
# Whether or not to add -lc for building shared libraries.
14421
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14422
14423
# Whether or not to disallow shared libs when runtime libs are static
14424
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14425
14426
# Whether or not to optimize for fast installation.
14427
fast_install=$enable_fast_install
14428
14429
# The host system.
14430
host_alias=$host_alias
14431
host=$host
14432
host_os=$host_os
14433
14434
# The build system.
14435
build_alias=$build_alias
14436
build=$build
14437
build_os=$build_os
14438
14439
# An echo program that does not interpret backslashes.
14440
echo=$lt_echo
14441
14442
# The archiver.
14443
AR=$lt_AR
14444
AR_FLAGS=$lt_AR_FLAGS
14445
14446
# A C compiler.
14447
LTCC=$lt_LTCC
14448
14449
# LTCC compiler flags.
14450
LTCFLAGS=$lt_LTCFLAGS
14451
14452
# A language-specific compiler.
14453
CC=$lt_compiler_CXX
14454
14455
# Is the compiler the GNU C compiler?
14456
with_gcc=$GCC_CXX
14457
14458
# An ERE matcher.
14459
EGREP=$lt_EGREP
14460
14461
# The linker used to build libraries.
14462
LD=$lt_LD_CXX
14463
14464
# Whether we need hard or soft links.
14465
LN_S=$lt_LN_S
14466
14467
# A BSD-compatible nm program.
14468
NM=$lt_NM
14469
14470
# A symbol stripping program
14471
STRIP=$lt_STRIP
14472
14473
# Used to examine libraries when file_magic_cmd begins "file"
14474
MAGIC_CMD=$MAGIC_CMD
14475
14476
# Used on cygwin: DLL creation program.
14477
DLLTOOL="$DLLTOOL"
14478
14479
# Used on cygwin: object dumper.
14480
OBJDUMP="$OBJDUMP"
14481
14482
# Used on cygwin: assembler.
14483
AS="$AS"
14484
14485
# The name of the directory that contains temporary libtool files.
14486
objdir=$objdir
14487
14488
# How to create reloadable object files.
14489
reload_flag=$lt_reload_flag
14490
reload_cmds=$lt_reload_cmds
14491
14492
# How to pass a linker flag through the compiler.
14493
wl=$lt_lt_prog_compiler_wl_CXX
14494
14495
# Object file suffix (normally "o").
14496
objext="$ac_objext"
14497
14498
# Old archive suffix (normally "a").
14499
libext="$libext"
14500
14501
# Shared library suffix (normally ".so").
14502
shrext_cmds='$shrext_cmds'
14503
14504
# Executable file suffix (normally "").
14505
exeext="$exeext"
14506
14507
# Additional compiler flags for building library objects.
14508
pic_flag=$lt_lt_prog_compiler_pic_CXX
14509
pic_mode=$pic_mode
14510
14511
# What is the maximum length of a command?
14512
max_cmd_len=$lt_cv_sys_max_cmd_len
14513
14514
# Does compiler simultaneously support -c and -o options?
14515
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14516
14517
# Must we lock files when doing compilation?
14518
need_locks=$lt_need_locks
14519
14520
# Do we need the lib prefix for modules?
14521
need_lib_prefix=$need_lib_prefix
14522
14523
# Do we need a version for libraries?
14524
need_version=$need_version
14525
14526
# Whether dlopen is supported.
14527
dlopen_support=$enable_dlopen
14528
14529
# Whether dlopen of programs is supported.
14530
dlopen_self=$enable_dlopen_self
14531
14532
# Whether dlopen of statically linked programs is supported.
14533
dlopen_self_static=$enable_dlopen_self_static
14534
14535
# Compiler flag to prevent dynamic linking.
14536
link_static_flag=$lt_lt_prog_compiler_static_CXX
14537
14538
# Compiler flag to turn off builtin functions.
14539
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14540
14541
# Compiler flag to allow reflexive dlopens.
14542
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14543
14544
# Compiler flag to generate shared objects directly from archives.
14545
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14546
14547
# Compiler flag to generate thread-safe objects.
14548
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14549
14550
# Library versioning type.
14551
version_type=$version_type
14552
14553
# Format of library name prefix.
14554
libname_spec=$lt_libname_spec
14555
14556
# List of archive names.  First name is the real one, the rest are links.
14557
# The last name is the one that the linker finds with -lNAME.
14558
library_names_spec=$lt_library_names_spec
14559
14560
# The coded name of the library, if different from the real name.
14561
soname_spec=$lt_soname_spec
14562
14563
# Commands used to build and install an old-style archive.
14564
RANLIB=$lt_RANLIB
14565
old_archive_cmds=$lt_old_archive_cmds_CXX
14566
old_postinstall_cmds=$lt_old_postinstall_cmds
14567
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14568
14569
# Create an old-style archive from a shared archive.
14570
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14571
14572
# Create a temporary old-style archive to link instead of a shared archive.
14573
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14574
14575
# Commands used to build and install a shared archive.
14576
archive_cmds=$lt_archive_cmds_CXX
14577
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14578
postinstall_cmds=$lt_postinstall_cmds
14579
postuninstall_cmds=$lt_postuninstall_cmds
14580
14581
# Commands used to build a loadable module (assumed same as above if empty)
14582
module_cmds=$lt_module_cmds_CXX
14583
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14584
14585
# Commands to strip libraries.
14586
old_striplib=$lt_old_striplib
14587
striplib=$lt_striplib
14588
14589
# Dependencies to place before the objects being linked to create a
14590
# shared library.
14591
predep_objects=$lt_predep_objects_CXX
14592
14593
# Dependencies to place after the objects being linked to create a
14594
# shared library.
14595
postdep_objects=$lt_postdep_objects_CXX
14596
14597
# Dependencies to place before the objects being linked to create a
14598
# shared library.
14599
predeps=$lt_predeps_CXX
14600
14601
# Dependencies to place after the objects being linked to create a
14602
# shared library.
14603
postdeps=$lt_postdeps_CXX
14604
14605
# The library search path used internally by the compiler when linking
14606
# a shared library.
14607
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14608
14609
# Method to check whether dependent libraries are shared objects.
14610
deplibs_check_method=$lt_deplibs_check_method
14611
14612
# Command to use when deplibs_check_method == file_magic.
14613
file_magic_cmd=$lt_file_magic_cmd
14614
14615
# Flag that allows shared libraries with undefined symbols to be built.
14616
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14617
14618
# Flag that forces no undefined symbols.
14619
no_undefined_flag=$lt_no_undefined_flag_CXX
14620
14621
# Commands used to finish a libtool library installation in a directory.
14622
finish_cmds=$lt_finish_cmds
14623
14624
# Same as above, but a single script fragment to be evaled but not shown.
14625
finish_eval=$lt_finish_eval
14626
14627
# Take the output of nm and produce a listing of raw symbols and C names.
14628
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14629
14630
# Transform the output of nm in a proper C declaration
14631
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14632
14633
# Transform the output of nm in a C name address pair
14634
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14635
14636
# This is the shared library runtime path variable.
14637
runpath_var=$runpath_var
14638
14639
# This is the shared library path variable.
14640
shlibpath_var=$shlibpath_var
14641
14642
# Is shlibpath searched before the hard-coded library search path?
14643
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14644
14645
# How to hardcode a shared library path into an executable.
14646
hardcode_action=$hardcode_action_CXX
14647
14648
# Whether we should hardcode library paths into libraries.
14649
hardcode_into_libs=$hardcode_into_libs
14650
14651
# Flag to hardcode \$libdir into a binary during linking.
14652
# This must work even if \$libdir does not exist.
14653
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14654
14655
# If ld is used when linking, flag to hardcode \$libdir into
14656
# a binary during linking. This must work even if \$libdir does
14657
# not exist.
14658
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14659
14660
# Whether we need a single -rpath flag with a separated argument.
14661
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14662
14663
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14664
# resulting binary.
14665
hardcode_direct=$hardcode_direct_CXX
14666
14667
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14668
# resulting binary.
14669
hardcode_minus_L=$hardcode_minus_L_CXX
14670
14671
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14672
# the resulting binary.
14673
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14674
14675
# Set to yes if building a shared library automatically hardcodes DIR into the library
14676
# and all subsequent libraries and executables linked against it.
14677
hardcode_automatic=$hardcode_automatic_CXX
14678
14679
# Variables whose values should be saved in libtool wrapper scripts and
14680
# restored at relink time.
14681
variables_saved_for_relink="$variables_saved_for_relink"
14682
14683
# Whether libtool must link a program against all its dependency libraries.
14684
link_all_deplibs=$link_all_deplibs_CXX
14685
14686
# Compile-time system search path for libraries
14687
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14688
14689
# Run-time system search path for libraries
14690
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14691
14692
# Fix the shell variable \$srcfile for the compiler.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14693
fix_srcfile_path=$lt_fix_srcfile_path
1 by Sebastien Bacher
Import upstream version 0.7.1
14694
14695
# Set to yes if exported symbols are required.
14696
always_export_symbols=$always_export_symbols_CXX
14697
14698
# The commands to list exported symbols.
14699
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14700
14701
# The commands to extract the exported symbol list from a shared archive.
14702
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14703
14704
# Symbols that should not be listed in the preloaded symbols.
14705
exclude_expsyms=$lt_exclude_expsyms_CXX
14706
14707
# Symbols that must always be exported.
14708
include_expsyms=$lt_include_expsyms_CXX
14709
14710
# ### END LIBTOOL TAG CONFIG: $tagname
14711
14712
__EOF__
14713
14714
14715
else
14716
  # If there is no Makefile yet, we rely on a make rule to execute
14717
  # `config.status --recheck' to rerun these tests and create the
14718
  # libtool script then.
14719
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14720
  if test -f "$ltmain_in"; then
14721
    test -f Makefile && make "$ltmain"
14722
  fi
14723
fi
14724
14725
14726
ac_ext=c
14727
ac_cpp='$CPP $CPPFLAGS'
14728
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14729
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14730
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14731
14732
CC=$lt_save_CC
14733
LDCXX=$LD
14734
LD=$lt_save_LD
14735
GCC=$lt_save_GCC
14736
with_gnu_ldcxx=$with_gnu_ld
14737
with_gnu_ld=$lt_save_with_gnu_ld
14738
lt_cv_path_LDCXX=$lt_cv_path_LD
14739
lt_cv_path_LD=$lt_save_path_LD
14740
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14741
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14742
14743
	else
14744
	  tagname=""
14745
	fi
14746
	;;
14747
14748
      F77)
14749
	if test -n "$F77" && test "X$F77" != "Xno"; then
14750
14751
ac_ext=f
14752
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14753
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14754
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14755
14756
14757
archive_cmds_need_lc_F77=no
14758
allow_undefined_flag_F77=
14759
always_export_symbols_F77=no
14760
archive_expsym_cmds_F77=
14761
export_dynamic_flag_spec_F77=
14762
hardcode_direct_F77=no
14763
hardcode_libdir_flag_spec_F77=
14764
hardcode_libdir_flag_spec_ld_F77=
14765
hardcode_libdir_separator_F77=
14766
hardcode_minus_L_F77=no
14767
hardcode_automatic_F77=no
14768
module_cmds_F77=
14769
module_expsym_cmds_F77=
14770
link_all_deplibs_F77=unknown
14771
old_archive_cmds_F77=$old_archive_cmds
14772
no_undefined_flag_F77=
14773
whole_archive_flag_spec_F77=
14774
enable_shared_with_static_runtimes_F77=no
14775
14776
# Source file extension for f77 test sources.
14777
ac_ext=f
14778
14779
# Object file extension for compiled f77 test sources.
14780
objext=o
14781
objext_F77=$objext
14782
14783
# Code to be used in simple compile tests
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14784
lt_simple_compile_test_code="\
14785
      subroutine t
14786
      return
14787
      end
14788
"
1 by Sebastien Bacher
Import upstream version 0.7.1
14789
14790
# Code to be used in simple link tests
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14791
lt_simple_link_test_code="\
14792
      program t
14793
      end
14794
"
1 by Sebastien Bacher
Import upstream version 0.7.1
14795
14796
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14797
14798
# If no C compiler was specified, use CC.
14799
LTCC=${LTCC-"$CC"}
14800
14801
# If no C compiler flags were specified, use CFLAGS.
14802
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14803
14804
# Allow CC to be a program name with arguments.
14805
compiler=$CC
14806
14807
14808
# save warnings/boilerplate of simple test code
14809
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14810
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
14811
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14812
_lt_compiler_boilerplate=`cat conftest.err`
14813
$rm conftest*
14814
14815
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14816
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
14817
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14818
_lt_linker_boilerplate=`cat conftest.err`
14819
$rm conftest*
14820
14821
14822
# Allow CC to be a program name with arguments.
14823
lt_save_CC="$CC"
14824
CC=${F77-"f77"}
14825
compiler=$CC
14826
compiler_F77=$CC
14827
for cc_temp in $compiler""; do
14828
  case $cc_temp in
14829
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14830
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14831
    \-*) ;;
14832
    *) break;;
14833
  esac
14834
done
14835
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14836
14837
14838
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14839
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14840
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14841
echo "${ECHO_T}$can_build_shared" >&6; }
14842
14843
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14844
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14845
test "$can_build_shared" = "no" && enable_shared=no
14846
14847
# On AIX, shared libraries and static libraries use the same namespace, and
14848
# are all built from PIC.
14849
case $host_os in
14850
aix3*)
14851
  test "$enable_shared" = yes && enable_static=no
14852
  if test -n "$RANLIB"; then
14853
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14854
    postinstall_cmds='$RANLIB $lib'
14855
  fi
14856
  ;;
14857
aix4* | aix5*)
14858
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14859
    test "$enable_shared" = yes && enable_static=no
14860
  fi
14861
  ;;
14862
esac
14863
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14864
echo "${ECHO_T}$enable_shared" >&6; }
14865
14866
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14867
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14868
# Make sure either enable_shared or enable_static is yes.
14869
test "$enable_shared" = yes || enable_static=yes
14870
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14871
echo "${ECHO_T}$enable_static" >&6; }
14872
14873
GCC_F77="$G77"
14874
LD_F77="$LD"
14875
14876
lt_prog_compiler_wl_F77=
14877
lt_prog_compiler_pic_F77=
14878
lt_prog_compiler_static_F77=
14879
14880
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14881
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14882
14883
  if test "$GCC" = yes; then
14884
    lt_prog_compiler_wl_F77='-Wl,'
14885
    lt_prog_compiler_static_F77='-static'
14886
14887
    case $host_os in
14888
      aix*)
14889
      # All AIX code is PIC.
14890
      if test "$host_cpu" = ia64; then
14891
	# AIX 5 now supports IA64 processor
14892
	lt_prog_compiler_static_F77='-Bstatic'
14893
      fi
14894
      ;;
14895
14896
    amigaos*)
14897
      # FIXME: we need at least 68020 code to build shared libraries, but
14898
      # adding the `-m68020' flag to GCC prevents building anything better,
14899
      # like `-m68040'.
14900
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14901
      ;;
14902
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14903
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Sebastien Bacher
Import upstream version 0.7.1
14904
      # PIC is the default for these OSes.
14905
      ;;
14906
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14907
    mingw* | cygwin* | pw32* | os2*)
1 by Sebastien Bacher
Import upstream version 0.7.1
14908
      # This hack is so that the source file can tell whether it is being
14909
      # built for inclusion in a dll (and should export symbols for example).
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14910
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14911
      # (--disable-auto-import) libraries
1 by Sebastien Bacher
Import upstream version 0.7.1
14912
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14913
      ;;
14914
14915
    darwin* | rhapsody*)
14916
      # PIC is the default on this platform
14917
      # Common symbols not allowed in MH_DYLIB files
14918
      lt_prog_compiler_pic_F77='-fno-common'
14919
      ;;
14920
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14921
    interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
14922
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14923
      # Instead, we relocate shared libraries at runtime.
14924
      ;;
14925
14926
    msdosdjgpp*)
14927
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14928
      # on systems that don't support them.
14929
      lt_prog_compiler_can_build_shared_F77=no
14930
      enable_shared=no
14931
      ;;
14932
14933
    sysv4*MP*)
14934
      if test -d /usr/nec; then
14935
	lt_prog_compiler_pic_F77=-Kconform_pic
14936
      fi
14937
      ;;
14938
14939
    hpux*)
14940
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14941
      # not for PA HP-UX.
14942
      case $host_cpu in
14943
      hppa*64*|ia64*)
14944
	# +Z the default
14945
	;;
14946
      *)
14947
	lt_prog_compiler_pic_F77='-fPIC'
14948
	;;
14949
      esac
14950
      ;;
14951
14952
    *)
14953
      lt_prog_compiler_pic_F77='-fPIC'
14954
      ;;
14955
    esac
14956
  else
14957
    # PORTME Check for flag to pass linker flags through the system compiler.
14958
    case $host_os in
14959
    aix*)
14960
      lt_prog_compiler_wl_F77='-Wl,'
14961
      if test "$host_cpu" = ia64; then
14962
	# AIX 5 now supports IA64 processor
14963
	lt_prog_compiler_static_F77='-Bstatic'
14964
      else
14965
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14966
      fi
14967
      ;;
14968
      darwin*)
14969
        # PIC is the default on this platform
14970
        # Common symbols not allowed in MH_DYLIB files
14971
       case $cc_basename in
14972
         xlc*)
14973
         lt_prog_compiler_pic_F77='-qnocommon'
14974
         lt_prog_compiler_wl_F77='-Wl,'
14975
         ;;
14976
       esac
14977
       ;;
14978
1.1.1 by Michael Vogt
Import upstream version 0.7.2
14979
    mingw* | cygwin* | pw32* | os2*)
1 by Sebastien Bacher
Import upstream version 0.7.1
14980
      # This hack is so that the source file can tell whether it is being
14981
      # built for inclusion in a dll (and should export symbols for example).
14982
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14983
      ;;
14984
14985
    hpux9* | hpux10* | hpux11*)
14986
      lt_prog_compiler_wl_F77='-Wl,'
14987
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14988
      # not for PA HP-UX.
14989
      case $host_cpu in
14990
      hppa*64*|ia64*)
14991
	# +Z the default
14992
	;;
14993
      *)
14994
	lt_prog_compiler_pic_F77='+Z'
14995
	;;
14996
      esac
14997
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14998
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14999
      ;;
15000
15001
    irix5* | irix6* | nonstopux*)
15002
      lt_prog_compiler_wl_F77='-Wl,'
15003
      # PIC (with -KPIC) is the default.
15004
      lt_prog_compiler_static_F77='-non_shared'
15005
      ;;
15006
15007
    newsos6)
15008
      lt_prog_compiler_pic_F77='-KPIC'
15009
      lt_prog_compiler_static_F77='-Bstatic'
15010
      ;;
15011
15012
    linux* | k*bsd*-gnu)
15013
      case $cc_basename in
15014
      icc* | ecc*)
15015
	lt_prog_compiler_wl_F77='-Wl,'
15016
	lt_prog_compiler_pic_F77='-KPIC'
15017
	lt_prog_compiler_static_F77='-static'
15018
        ;;
15019
      pgcc* | pgf77* | pgf90* | pgf95*)
15020
        # Portland Group compilers (*not* the Pentium gcc compiler,
15021
	# which looks to be a dead project)
15022
	lt_prog_compiler_wl_F77='-Wl,'
15023
	lt_prog_compiler_pic_F77='-fpic'
15024
	lt_prog_compiler_static_F77='-Bstatic'
15025
        ;;
15026
      ccc*)
15027
        lt_prog_compiler_wl_F77='-Wl,'
15028
        # All Alpha code is PIC.
15029
        lt_prog_compiler_static_F77='-non_shared'
15030
        ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15031
      *)
15032
        case `$CC -V 2>&1 | sed 5q` in
15033
	*Sun\ C*)
15034
	  # Sun C 5.9
15035
	  lt_prog_compiler_pic_F77='-KPIC'
15036
	  lt_prog_compiler_static_F77='-Bstatic'
15037
	  lt_prog_compiler_wl_F77='-Wl,'
15038
	  ;;
15039
	*Sun\ F*)
15040
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15041
	  lt_prog_compiler_pic_F77='-KPIC'
15042
	  lt_prog_compiler_static_F77='-Bstatic'
15043
	  lt_prog_compiler_wl_F77=''
15044
	  ;;
15045
	esac
15046
	;;
1 by Sebastien Bacher
Import upstream version 0.7.1
15047
      esac
15048
      ;;
15049
15050
    osf3* | osf4* | osf5*)
15051
      lt_prog_compiler_wl_F77='-Wl,'
15052
      # All OSF/1 code is PIC.
15053
      lt_prog_compiler_static_F77='-non_shared'
15054
      ;;
15055
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15056
    rdos*)
15057
      lt_prog_compiler_static_F77='-non_shared'
15058
      ;;
15059
1 by Sebastien Bacher
Import upstream version 0.7.1
15060
    solaris*)
15061
      lt_prog_compiler_pic_F77='-KPIC'
15062
      lt_prog_compiler_static_F77='-Bstatic'
15063
      case $cc_basename in
15064
      f77* | f90* | f95*)
15065
	lt_prog_compiler_wl_F77='-Qoption ld ';;
15066
      *)
15067
	lt_prog_compiler_wl_F77='-Wl,';;
15068
      esac
15069
      ;;
15070
15071
    sunos4*)
15072
      lt_prog_compiler_wl_F77='-Qoption ld '
15073
      lt_prog_compiler_pic_F77='-PIC'
15074
      lt_prog_compiler_static_F77='-Bstatic'
15075
      ;;
15076
15077
    sysv4 | sysv4.2uw2* | sysv4.3*)
15078
      lt_prog_compiler_wl_F77='-Wl,'
15079
      lt_prog_compiler_pic_F77='-KPIC'
15080
      lt_prog_compiler_static_F77='-Bstatic'
15081
      ;;
15082
15083
    sysv4*MP*)
15084
      if test -d /usr/nec ;then
15085
	lt_prog_compiler_pic_F77='-Kconform_pic'
15086
	lt_prog_compiler_static_F77='-Bstatic'
15087
      fi
15088
      ;;
15089
15090
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15091
      lt_prog_compiler_wl_F77='-Wl,'
15092
      lt_prog_compiler_pic_F77='-KPIC'
15093
      lt_prog_compiler_static_F77='-Bstatic'
15094
      ;;
15095
15096
    unicos*)
15097
      lt_prog_compiler_wl_F77='-Wl,'
15098
      lt_prog_compiler_can_build_shared_F77=no
15099
      ;;
15100
15101
    uts4*)
15102
      lt_prog_compiler_pic_F77='-pic'
15103
      lt_prog_compiler_static_F77='-Bstatic'
15104
      ;;
15105
15106
    *)
15107
      lt_prog_compiler_can_build_shared_F77=no
15108
      ;;
15109
    esac
15110
  fi
15111
15112
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15113
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15114
15115
#
15116
# Check to make sure the PIC flag actually works.
15117
#
15118
if test -n "$lt_prog_compiler_pic_F77"; then
15119
15120
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15121
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15122
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15123
  echo $ECHO_N "(cached) $ECHO_C" >&6
15124
else
15125
  lt_prog_compiler_pic_works_F77=no
15126
  ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15127
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
15128
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15129
   # Insert the option either (1) after the last *FLAGS variable, or
15130
   # (2) before a word containing "conftest.", or (3) at the end.
15131
   # Note that $ac_compile itself does not contain backslashes and begins
15132
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15133
   # The option is referenced via a variable to avoid confusing sed.
15134
   lt_compile=`echo "$ac_compile" | $SED \
15135
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15136
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15137
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15138
   (eval echo "\"\$as_me:15147: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
15139
   (eval "$lt_compile" 2>conftest.err)
15140
   ac_status=$?
15141
   cat conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15142
   echo "$as_me:15151: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
15143
   if (exit $ac_status) && test -s "$ac_outfile"; then
15144
     # The compiler can only warn and ignore the option if not recognized
15145
     # So say no if there are warnings other than the usual output.
15146
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15147
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15148
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15149
       lt_prog_compiler_pic_works_F77=yes
15150
     fi
15151
   fi
15152
   $rm conftest*
15153
15154
fi
15155
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15156
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15157
15158
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15159
    case $lt_prog_compiler_pic_F77 in
15160
     "" | " "*) ;;
15161
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15162
     esac
15163
else
15164
    lt_prog_compiler_pic_F77=
15165
     lt_prog_compiler_can_build_shared_F77=no
15166
fi
15167
15168
fi
15169
case $host_os in
15170
  # For platforms which do not support PIC, -DPIC is meaningless:
15171
  *djgpp*)
15172
    lt_prog_compiler_pic_F77=
15173
    ;;
15174
  *)
15175
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15176
    ;;
15177
esac
15178
15179
#
15180
# Check to make sure the static flag actually works.
15181
#
15182
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15183
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15184
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15185
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15186
  echo $ECHO_N "(cached) $ECHO_C" >&6
15187
else
15188
  lt_prog_compiler_static_works_F77=no
15189
   save_LDFLAGS="$LDFLAGS"
15190
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15191
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
15192
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15193
     # The linker can only warn and ignore the option if not recognized
15194
     # So say no if there are warnings
15195
     if test -s conftest.err; then
15196
       # Append any errors to the config.log.
15197
       cat conftest.err 1>&5
15198
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15199
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15200
       if diff conftest.exp conftest.er2 >/dev/null; then
15201
         lt_prog_compiler_static_works_F77=yes
15202
       fi
15203
     else
15204
       lt_prog_compiler_static_works_F77=yes
15205
     fi
15206
   fi
15207
   $rm conftest*
15208
   LDFLAGS="$save_LDFLAGS"
15209
15210
fi
15211
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15212
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15213
15214
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15215
    :
15216
else
15217
    lt_prog_compiler_static_F77=
15218
fi
15219
15220
15221
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15222
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15223
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15224
  echo $ECHO_N "(cached) $ECHO_C" >&6
15225
else
15226
  lt_cv_prog_compiler_c_o_F77=no
15227
   $rm -r conftest 2>/dev/null
15228
   mkdir conftest
15229
   cd conftest
15230
   mkdir out
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15231
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
15232
15233
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15234
   # Insert the option either (1) after the last *FLAGS variable, or
15235
   # (2) before a word containing "conftest.", or (3) at the end.
15236
   # Note that $ac_compile itself does not contain backslashes and begins
15237
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15238
   lt_compile=`echo "$ac_compile" | $SED \
15239
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15240
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15241
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15242
   (eval echo "\"\$as_me:15251: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
15243
   (eval "$lt_compile" 2>out/conftest.err)
15244
   ac_status=$?
15245
   cat out/conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15246
   echo "$as_me:15255: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
15247
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15248
   then
15249
     # The compiler can only warn and ignore the option if not recognized
15250
     # So say no if there are warnings
15251
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15252
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15253
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15254
       lt_cv_prog_compiler_c_o_F77=yes
15255
     fi
15256
   fi
15257
   chmod u+w . 2>&5
15258
   $rm conftest*
15259
   # SGI C++ compiler will create directory out/ii_files/ for
15260
   # template instantiation
15261
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15262
   $rm out/* && rmdir out
15263
   cd ..
15264
   rmdir conftest
15265
   $rm conftest*
15266
15267
fi
15268
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15269
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15270
15271
15272
hard_links="nottested"
15273
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15274
  # do not overwrite the value of need_locks provided by the user
15275
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15276
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15277
  hard_links=yes
15278
  $rm conftest*
15279
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15280
  touch conftest.a
15281
  ln conftest.a conftest.b 2>&5 || hard_links=no
15282
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15283
  { echo "$as_me:$LINENO: result: $hard_links" >&5
15284
echo "${ECHO_T}$hard_links" >&6; }
15285
  if test "$hard_links" = no; then
15286
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15287
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15288
    need_locks=warn
15289
  fi
15290
else
15291
  need_locks=no
15292
fi
15293
15294
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15295
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15296
15297
  runpath_var=
15298
  allow_undefined_flag_F77=
15299
  enable_shared_with_static_runtimes_F77=no
15300
  archive_cmds_F77=
15301
  archive_expsym_cmds_F77=
15302
  old_archive_From_new_cmds_F77=
15303
  old_archive_from_expsyms_cmds_F77=
15304
  export_dynamic_flag_spec_F77=
15305
  whole_archive_flag_spec_F77=
15306
  thread_safe_flag_spec_F77=
15307
  hardcode_libdir_flag_spec_F77=
15308
  hardcode_libdir_flag_spec_ld_F77=
15309
  hardcode_libdir_separator_F77=
15310
  hardcode_direct_F77=no
15311
  hardcode_minus_L_F77=no
15312
  hardcode_shlibpath_var_F77=unsupported
15313
  link_all_deplibs_F77=unknown
15314
  hardcode_automatic_F77=no
15315
  module_cmds_F77=
15316
  module_expsym_cmds_F77=
15317
  always_export_symbols_F77=no
15318
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15319
  # include_expsyms should be a list of space-separated symbols to be *always*
15320
  # included in the symbol list
15321
  include_expsyms_F77=
15322
  # exclude_expsyms can be an extended regexp of symbols to exclude
15323
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15324
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15325
  # as well as any symbol that contains `d'.
15326
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15327
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15328
  # platforms (ab)use it in PIC code, but their linkers get confused if
15329
  # the symbol is explicitly referenced.  Since portable code cannot
15330
  # rely on this symbol name, it's probably fine to never include it in
15331
  # preloaded symbol tables.
15332
  extract_expsyms_cmds=
15333
  # Just being paranoid about ensuring that cc_basename is set.
15334
  for cc_temp in $compiler""; do
15335
  case $cc_temp in
15336
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15337
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15338
    \-*) ;;
15339
    *) break;;
15340
  esac
15341
done
15342
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15343
15344
  case $host_os in
15345
  cygwin* | mingw* | pw32*)
15346
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15347
    # When not using gcc, we currently assume that we are using
15348
    # Microsoft Visual C++.
15349
    if test "$GCC" != yes; then
15350
      with_gnu_ld=no
15351
    fi
15352
    ;;
15353
  interix*)
15354
    # we just hope/assume this is gcc and not c89 (= MSVC++)
15355
    with_gnu_ld=yes
15356
    ;;
15357
  openbsd*)
15358
    with_gnu_ld=no
15359
    ;;
15360
  esac
15361
15362
  ld_shlibs_F77=yes
15363
  if test "$with_gnu_ld" = yes; then
15364
    # If archive_cmds runs LD, not CC, wlarc should be empty
15365
    wlarc='${wl}'
15366
15367
    # Set some defaults for GNU ld with shared library support. These
15368
    # are reset later if shared libraries are not supported. Putting them
15369
    # here allows them to be overridden if necessary.
15370
    runpath_var=LD_RUN_PATH
15371
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15372
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15373
    # ancient GNU ld didn't support --whole-archive et. al.
15374
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15375
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15376
      else
15377
  	whole_archive_flag_spec_F77=
15378
    fi
15379
    supports_anon_versioning=no
15380
    case `$LD -v 2>/dev/null` in
15381
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15382
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15383
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15384
      *\ 2.11.*) ;; # other 2.11 versions
15385
      *) supports_anon_versioning=yes ;;
15386
    esac
15387
15388
    # See if GNU ld supports shared libraries.
15389
    case $host_os in
15390
    aix3* | aix4* | aix5*)
15391
      # On AIX/PPC, the GNU linker is very broken
15392
      if test "$host_cpu" != ia64; then
15393
	ld_shlibs_F77=no
15394
	cat <<EOF 1>&2
15395
15396
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15397
*** to be unable to reliably create shared libraries on AIX.
15398
*** Therefore, libtool is disabling shared libraries support.  If you
15399
*** really care for shared libraries, you may want to modify your PATH
15400
*** so that a non-GNU linker is found, and then restart.
15401
15402
EOF
15403
      fi
15404
      ;;
15405
15406
    amigaos*)
15407
      archive_cmds_F77='$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)'
15408
      hardcode_libdir_flag_spec_F77='-L$libdir'
15409
      hardcode_minus_L_F77=yes
15410
15411
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15412
      # that the semantics of dynamic libraries on AmigaOS, at least up
15413
      # to version 4, is to share data among multiple programs linked
15414
      # with the same dynamic library.  Since this doesn't match the
15415
      # behavior of shared libraries on other platforms, we can't use
15416
      # them.
15417
      ld_shlibs_F77=no
15418
      ;;
15419
15420
    beos*)
15421
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15422
	allow_undefined_flag_F77=unsupported
15423
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15424
	# support --undefined.  This deserves some investigation.  FIXME
15425
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426
      else
15427
	ld_shlibs_F77=no
15428
      fi
15429
      ;;
15430
15431
    cygwin* | mingw* | pw32*)
15432
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15433
      # as there is no search path for DLLs.
15434
      hardcode_libdir_flag_spec_F77='-L$libdir'
15435
      allow_undefined_flag_F77=unsupported
15436
      always_export_symbols_F77=no
15437
      enable_shared_with_static_runtimes_F77=yes
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15438
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1 by Sebastien Bacher
Import upstream version 0.7.1
15439
15440
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15441
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15442
	# If the export-symbols file already is a .def file (1st line
15443
	# is EXPORTS), use it as is; otherwise, prepend...
15444
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15445
	  cp $export_symbols $output_objdir/$soname.def;
15446
	else
15447
	  echo EXPORTS > $output_objdir/$soname.def;
15448
	  cat $export_symbols >> $output_objdir/$soname.def;
15449
	fi~
15450
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15451
      else
15452
	ld_shlibs_F77=no
15453
      fi
15454
      ;;
15455
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15456
    interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
15457
      hardcode_direct_F77=no
15458
      hardcode_shlibpath_var_F77=no
15459
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15460
      export_dynamic_flag_spec_F77='${wl}-E'
15461
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15462
      # Instead, shared libraries are loaded at an image base (0x10000000 by
15463
      # default) and relocated if they conflict, which is a slow very memory
15464
      # consuming and fragmenting process.  To avoid this, we pick a random,
15465
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15466
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15467
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15468
      archive_expsym_cmds_F77='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'
15469
      ;;
15470
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15471
    gnu* | linux* | k*bsd*-gnu)
1 by Sebastien Bacher
Import upstream version 0.7.1
15472
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15473
	tmp_addflag=
15474
	case $cc_basename,$host_cpu in
15475
	pgcc*)				# Portland Group C compiler
15476
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15477
	  tmp_addflag=' $pic_flag'
15478
	  ;;
15479
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15480
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15481
	  tmp_addflag=' $pic_flag -Mnomain' ;;
15482
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15483
	  tmp_addflag=' -i_dynamic' ;;
15484
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15485
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15486
	ifc* | ifort*)			# Intel Fortran compiler
15487
	  tmp_addflag=' -nofor_main' ;;
15488
	esac
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15489
	case `$CC -V 2>&1 | sed 5q` in
15490
	*Sun\ C*)			# Sun C 5.9
15491
	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15492
	  tmp_sharedflag='-G' ;;
15493
	*Sun\ F*)			# Sun Fortran 8.3
15494
	  tmp_sharedflag='-G' ;;
15495
	*)
15496
	  tmp_sharedflag='-shared' ;;
15497
	esac
15498
	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1 by Sebastien Bacher
Import upstream version 0.7.1
15499
15500
	if test $supports_anon_versioning = yes; then
15501
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15502
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15503
  $echo "local: *; };" >> $output_objdir/$libname.ver~
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15504
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1 by Sebastien Bacher
Import upstream version 0.7.1
15505
	fi
15506
	link_all_deplibs_F77=no
15507
      else
15508
	ld_shlibs_F77=no
15509
      fi
15510
      ;;
15511
15512
    netbsd* | netbsdelf*-gnu)
15513
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15514
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15515
	wlarc=
15516
      else
15517
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15518
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15519
      fi
15520
      ;;
15521
15522
    solaris*)
15523
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15524
	ld_shlibs_F77=no
15525
	cat <<EOF 1>&2
15526
15527
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15528
*** create shared libraries on Solaris systems.  Therefore, libtool
15529
*** is disabling shared libraries support.  We urge you to upgrade GNU
15530
*** binutils to release 2.9.1 or newer.  Another option is to modify
15531
*** your PATH or compiler configuration so that the native linker is
15532
*** used, and then restart.
15533
15534
EOF
15535
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15536
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15538
      else
15539
	ld_shlibs_F77=no
15540
      fi
15541
      ;;
15542
15543
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15544
      case `$LD -v 2>&1` in
15545
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15546
	ld_shlibs_F77=no
15547
	cat <<_LT_EOF 1>&2
15548
15549
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15550
*** reliably create shared libraries on SCO systems.  Therefore, libtool
15551
*** is disabling shared libraries support.  We urge you to upgrade GNU
15552
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15553
*** your PATH or compiler configuration so that the native linker is
15554
*** used, and then restart.
15555
15556
_LT_EOF
15557
	;;
15558
	*)
15559
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15560
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15561
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15562
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15563
	  else
15564
	    ld_shlibs_F77=no
15565
	  fi
15566
	;;
15567
      esac
15568
      ;;
15569
15570
    sunos4*)
15571
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15572
      wlarc=
15573
      hardcode_direct_F77=yes
15574
      hardcode_shlibpath_var_F77=no
15575
      ;;
15576
15577
    *)
15578
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15579
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15580
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15581
      else
15582
	ld_shlibs_F77=no
15583
      fi
15584
      ;;
15585
    esac
15586
15587
    if test "$ld_shlibs_F77" = no; then
15588
      runpath_var=
15589
      hardcode_libdir_flag_spec_F77=
15590
      export_dynamic_flag_spec_F77=
15591
      whole_archive_flag_spec_F77=
15592
    fi
15593
  else
15594
    # PORTME fill in a description of your system's linker (not GNU ld)
15595
    case $host_os in
15596
    aix3*)
15597
      allow_undefined_flag_F77=unsupported
15598
      always_export_symbols_F77=yes
15599
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15600
      # Note: this linker hardcodes the directories in LIBPATH if there
15601
      # are no directories specified by -L.
15602
      hardcode_minus_L_F77=yes
15603
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15604
	# Neither direct hardcoding nor static linking is supported with a
15605
	# broken collect2.
15606
	hardcode_direct_F77=unsupported
15607
      fi
15608
      ;;
15609
15610
    aix4* | aix5*)
15611
      if test "$host_cpu" = ia64; then
15612
	# On IA64, the linker does run time linking by default, so we don't
15613
	# have to do anything special.
15614
	aix_use_runtimelinking=no
15615
	exp_sym_flag='-Bexport'
15616
	no_entry_flag=""
15617
      else
15618
	# If we're using GNU nm, then we don't want the "-C" option.
15619
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15620
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15621
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15622
	else
15623
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15624
	fi
15625
	aix_use_runtimelinking=no
15626
15627
	# Test if we are trying to use run time linking or normal
15628
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15629
	# need to do runtime linking.
15630
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15631
	  for ld_flag in $LDFLAGS; do
15632
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15633
  	    aix_use_runtimelinking=yes
15634
  	    break
15635
  	  fi
15636
	  done
15637
	  ;;
15638
	esac
15639
15640
	exp_sym_flag='-bexport'
15641
	no_entry_flag='-bnoentry'
15642
      fi
15643
15644
      # When large executables or shared objects are built, AIX ld can
15645
      # have problems creating the table of contents.  If linking a library
15646
      # or program results in "error TOC overflow" add -mminimal-toc to
15647
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15648
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15649
15650
      archive_cmds_F77=''
15651
      hardcode_direct_F77=yes
15652
      hardcode_libdir_separator_F77=':'
15653
      link_all_deplibs_F77=yes
15654
15655
      if test "$GCC" = yes; then
15656
	case $host_os in aix4.[012]|aix4.[012].*)
15657
	# We only want to do this on AIX 4.2 and lower, the check
15658
	# below for broken collect2 doesn't work under 4.3+
15659
	  collect2name=`${CC} -print-prog-name=collect2`
15660
	  if test -f "$collect2name" && \
15661
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15662
	  then
15663
  	  # We have reworked collect2
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15664
  	  :
1 by Sebastien Bacher
Import upstream version 0.7.1
15665
	  else
15666
  	  # We have old collect2
15667
  	  hardcode_direct_F77=unsupported
15668
  	  # It fails to find uninstalled libraries when the uninstalled
15669
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15670
  	  # to unsupported forces relinking
15671
  	  hardcode_minus_L_F77=yes
15672
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15673
  	  hardcode_libdir_separator_F77=
15674
	  fi
15675
	  ;;
15676
	esac
15677
	shared_flag='-shared'
15678
	if test "$aix_use_runtimelinking" = yes; then
15679
	  shared_flag="$shared_flag "'${wl}-G'
15680
	fi
15681
      else
15682
	# not using gcc
15683
	if test "$host_cpu" = ia64; then
15684
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15685
  	# chokes on -Wl,-G. The following line is correct:
15686
	  shared_flag='-G'
15687
	else
15688
	  if test "$aix_use_runtimelinking" = yes; then
15689
	    shared_flag='${wl}-G'
15690
	  else
15691
	    shared_flag='${wl}-bM:SRE'
15692
	  fi
15693
	fi
15694
      fi
15695
15696
      # It seems that -bexpall does not export symbols beginning with
15697
      # underscore (_), so it is better to generate a list of symbols to export.
15698
      always_export_symbols_F77=yes
15699
      if test "$aix_use_runtimelinking" = yes; then
15700
	# Warning - without using the other runtime loading flags (-brtl),
15701
	# -berok will link without error, but may produce a broken library.
15702
	allow_undefined_flag_F77='-berok'
15703
       # Determine the default libpath from the value encoded in an empty executable.
15704
       cat >conftest.$ac_ext <<_ACEOF
15705
      program main
15706
15707
      end
15708
_ACEOF
15709
rm -f conftest.$ac_objext conftest$ac_exeext
15710
if { (ac_try="$ac_link"
15711
case "(($ac_try" in
15712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713
  *) ac_try_echo=$ac_try;;
15714
esac
15715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716
  (eval "$ac_link") 2>conftest.er1
15717
  ac_status=$?
15718
  grep -v '^ *+' conftest.er1 >conftest.err
15719
  rm -f conftest.er1
15720
  cat conftest.err >&5
15721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15722
  (exit $ac_status); } && {
15723
	 test -z "$ac_f77_werror_flag" ||
15724
	 test ! -s conftest.err
15725
       } && test -s conftest$ac_exeext &&
15726
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
15727
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15728
lt_aix_libpath_sed='
15729
    /Import File Strings/,/^$/ {
15730
	/^0/ {
15731
	    s/^0  *\(.*\)$/\1/
15732
	    p
15733
	}
15734
    }'
15735
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Sebastien Bacher
Import upstream version 0.7.1
15736
# Check for a 64-bit object if we didn't find anything.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15737
if test -z "$aix_libpath"; then
15738
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15739
fi
1 by Sebastien Bacher
Import upstream version 0.7.1
15740
else
15741
  echo "$as_me: failed program was:" >&5
15742
sed 's/^/| /' conftest.$ac_ext >&5
15743
15744
15745
fi
15746
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15747
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
15748
      conftest$ac_exeext conftest.$ac_ext
15749
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15750
15751
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15752
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15753
       else
15754
	if test "$host_cpu" = ia64; then
15755
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15756
	  allow_undefined_flag_F77="-z nodefs"
15757
	  archive_expsym_cmds_F77="\$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"
15758
	else
15759
	 # Determine the default libpath from the value encoded in an empty executable.
15760
	 cat >conftest.$ac_ext <<_ACEOF
15761
      program main
15762
15763
      end
15764
_ACEOF
15765
rm -f conftest.$ac_objext conftest$ac_exeext
15766
if { (ac_try="$ac_link"
15767
case "(($ac_try" in
15768
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769
  *) ac_try_echo=$ac_try;;
15770
esac
15771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772
  (eval "$ac_link") 2>conftest.er1
15773
  ac_status=$?
15774
  grep -v '^ *+' conftest.er1 >conftest.err
15775
  rm -f conftest.er1
15776
  cat conftest.err >&5
15777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15778
  (exit $ac_status); } && {
15779
	 test -z "$ac_f77_werror_flag" ||
15780
	 test ! -s conftest.err
15781
       } && test -s conftest$ac_exeext &&
15782
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
15783
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15784
lt_aix_libpath_sed='
15785
    /Import File Strings/,/^$/ {
15786
	/^0/ {
15787
	    s/^0  *\(.*\)$/\1/
15788
	    p
15789
	}
15790
    }'
15791
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Sebastien Bacher
Import upstream version 0.7.1
15792
# Check for a 64-bit object if we didn't find anything.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15793
if test -z "$aix_libpath"; then
15794
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15795
fi
1 by Sebastien Bacher
Import upstream version 0.7.1
15796
else
15797
  echo "$as_me: failed program was:" >&5
15798
sed 's/^/| /' conftest.$ac_ext >&5
15799
15800
15801
fi
15802
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15803
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
15804
      conftest$ac_exeext conftest.$ac_ext
15805
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15806
15807
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15808
	  # Warning - without using the other run time loading flags,
15809
	  # -berok will link without error, but may produce a broken library.
15810
	  no_undefined_flag_F77=' ${wl}-bernotok'
15811
	  allow_undefined_flag_F77=' ${wl}-berok'
15812
	  # Exported symbols can be pulled into shared objects from archives
15813
	  whole_archive_flag_spec_F77='$convenience'
15814
	  archive_cmds_need_lc_F77=yes
15815
	  # This is similar to how AIX traditionally builds its shared libraries.
15816
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15817
	fi
15818
      fi
15819
      ;;
15820
15821
    amigaos*)
15822
      archive_cmds_F77='$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)'
15823
      hardcode_libdir_flag_spec_F77='-L$libdir'
15824
      hardcode_minus_L_F77=yes
15825
      # see comment about different semantics on the GNU ld section
15826
      ld_shlibs_F77=no
15827
      ;;
15828
15829
    bsdi[45]*)
15830
      export_dynamic_flag_spec_F77=-rdynamic
15831
      ;;
15832
15833
    cygwin* | mingw* | pw32*)
15834
      # When not using gcc, we currently assume that we are using
15835
      # Microsoft Visual C++.
15836
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15837
      # no search path for DLLs.
15838
      hardcode_libdir_flag_spec_F77=' '
15839
      allow_undefined_flag_F77=unsupported
15840
      # Tell ltmain to make .lib files, not .a files.
15841
      libext=lib
15842
      # Tell ltmain to make .dll files, not .so files.
15843
      shrext_cmds=".dll"
15844
      # FIXME: Setting linknames here is a bad hack.
15845
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15846
      # The linker will automatically build a .lib file if we build a DLL.
15847
      old_archive_From_new_cmds_F77='true'
15848
      # FIXME: Should let the user specify the lib program.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15849
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
1 by Sebastien Bacher
Import upstream version 0.7.1
15850
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15851
      enable_shared_with_static_runtimes_F77=yes
15852
      ;;
15853
15854
    darwin* | rhapsody*)
15855
      case $host_os in
15856
        rhapsody* | darwin1.[012])
15857
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15858
         ;;
15859
       *) # Darwin 1.3 on
15860
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15861
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15862
         else
15863
           case ${MACOSX_DEPLOYMENT_TARGET} in
15864
             10.[012])
15865
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15866
               ;;
15867
             10.*)
15868
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15869
               ;;
15870
           esac
15871
         fi
15872
         ;;
15873
      esac
15874
      archive_cmds_need_lc_F77=no
15875
      hardcode_direct_F77=no
15876
      hardcode_automatic_F77=yes
15877
      hardcode_shlibpath_var_F77=unsupported
15878
      whole_archive_flag_spec_F77=''
15879
      link_all_deplibs_F77=yes
15880
    if test "$GCC" = yes ; then
15881
    	output_verbose_link_cmd='echo'
15882
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15883
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15884
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15885
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15886
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15887
    else
15888
      case $cc_basename in
15889
        xlc*)
15890
         output_verbose_link_cmd='echo'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15891
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1 by Sebastien Bacher
Import upstream version 0.7.1
15892
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15893
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1.1 by Michael Vogt
Import upstream version 0.7.2
15894
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1 by Sebastien Bacher
Import upstream version 0.7.1
15895
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15896
          ;;
15897
       *)
15898
         ld_shlibs_F77=no
15899
          ;;
15900
      esac
15901
    fi
15902
      ;;
15903
15904
    dgux*)
15905
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906
      hardcode_libdir_flag_spec_F77='-L$libdir'
15907
      hardcode_shlibpath_var_F77=no
15908
      ;;
15909
15910
    freebsd1*)
15911
      ld_shlibs_F77=no
15912
      ;;
15913
15914
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15915
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15916
    # does not break anything, and helps significantly (at the cost of a little
15917
    # extra space).
15918
    freebsd2.2*)
15919
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15920
      hardcode_libdir_flag_spec_F77='-R$libdir'
15921
      hardcode_direct_F77=yes
15922
      hardcode_shlibpath_var_F77=no
15923
      ;;
15924
15925
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15926
    freebsd2*)
15927
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15928
      hardcode_direct_F77=yes
15929
      hardcode_minus_L_F77=yes
15930
      hardcode_shlibpath_var_F77=no
15931
      ;;
15932
15933
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15934
    freebsd* | dragonfly*)
15935
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15936
      hardcode_libdir_flag_spec_F77='-R$libdir'
15937
      hardcode_direct_F77=yes
15938
      hardcode_shlibpath_var_F77=no
15939
      ;;
15940
15941
    hpux9*)
15942
      if test "$GCC" = yes; then
15943
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15944
      else
15945
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15946
      fi
15947
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15948
      hardcode_libdir_separator_F77=:
15949
      hardcode_direct_F77=yes
15950
15951
      # hardcode_minus_L: Not really in the search PATH,
15952
      # but as the default location of the library.
15953
      hardcode_minus_L_F77=yes
15954
      export_dynamic_flag_spec_F77='${wl}-E'
15955
      ;;
15956
15957
    hpux10*)
15958
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15959
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15960
      else
15961
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15962
      fi
15963
      if test "$with_gnu_ld" = no; then
15964
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15965
	hardcode_libdir_separator_F77=:
15966
15967
	hardcode_direct_F77=yes
15968
	export_dynamic_flag_spec_F77='${wl}-E'
15969
15970
	# hardcode_minus_L: Not really in the search PATH,
15971
	# but as the default location of the library.
15972
	hardcode_minus_L_F77=yes
15973
      fi
15974
      ;;
15975
15976
    hpux11*)
15977
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15978
	case $host_cpu in
15979
	hppa*64*)
15980
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15981
	  ;;
15982
	ia64*)
15983
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15984
	  ;;
15985
	*)
15986
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15987
	  ;;
15988
	esac
15989
      else
15990
	case $host_cpu in
15991
	hppa*64*)
15992
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15993
	  ;;
15994
	ia64*)
15995
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15996
	  ;;
15997
	*)
15998
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15999
	  ;;
16000
	esac
16001
      fi
16002
      if test "$with_gnu_ld" = no; then
16003
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16004
	hardcode_libdir_separator_F77=:
16005
16006
	case $host_cpu in
16007
	hppa*64*|ia64*)
16008
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16009
	  hardcode_direct_F77=no
16010
	  hardcode_shlibpath_var_F77=no
16011
	  ;;
16012
	*)
16013
	  hardcode_direct_F77=yes
16014
	  export_dynamic_flag_spec_F77='${wl}-E'
16015
16016
	  # hardcode_minus_L: Not really in the search PATH,
16017
	  # but as the default location of the library.
16018
	  hardcode_minus_L_F77=yes
16019
	  ;;
16020
	esac
16021
      fi
16022
      ;;
16023
16024
    irix5* | irix6* | nonstopux*)
16025
      if test "$GCC" = yes; then
16026
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16027
      else
16028
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16029
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16030
      fi
16031
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16032
      hardcode_libdir_separator_F77=:
16033
      link_all_deplibs_F77=yes
16034
      ;;
16035
16036
    netbsd* | netbsdelf*-gnu)
16037
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16038
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16039
      else
16040
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16041
      fi
16042
      hardcode_libdir_flag_spec_F77='-R$libdir'
16043
      hardcode_direct_F77=yes
16044
      hardcode_shlibpath_var_F77=no
16045
      ;;
16046
16047
    newsos6)
16048
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049
      hardcode_direct_F77=yes
16050
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16051
      hardcode_libdir_separator_F77=:
16052
      hardcode_shlibpath_var_F77=no
16053
      ;;
16054
16055
    openbsd*)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16056
      if test -f /usr/libexec/ld.so; then
16057
	hardcode_direct_F77=yes
16058
	hardcode_shlibpath_var_F77=no
16059
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16060
	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16061
	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16062
	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16063
	  export_dynamic_flag_spec_F77='${wl}-E'
16064
	else
16065
	  case $host_os in
16066
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16067
	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16068
	     hardcode_libdir_flag_spec_F77='-R$libdir'
16069
	     ;;
16070
	   *)
16071
	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16072
	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16073
	     ;;
16074
	  esac
16075
        fi
1 by Sebastien Bacher
Import upstream version 0.7.1
16076
      else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16077
	ld_shlibs_F77=no
1 by Sebastien Bacher
Import upstream version 0.7.1
16078
      fi
16079
      ;;
16080
16081
    os2*)
16082
      hardcode_libdir_flag_spec_F77='-L$libdir'
16083
      hardcode_minus_L_F77=yes
16084
      allow_undefined_flag_F77=unsupported
16085
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16086
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16087
      ;;
16088
16089
    osf3*)
16090
      if test "$GCC" = yes; then
16091
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16092
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16093
      else
16094
	allow_undefined_flag_F77=' -expect_unresolved \*'
16095
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16096
      fi
16097
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16098
      hardcode_libdir_separator_F77=:
16099
      ;;
16100
16101
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16102
      if test "$GCC" = yes; then
16103
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16104
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16105
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16106
      else
16107
	allow_undefined_flag_F77=' -expect_unresolved \*'
16108
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16109
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16110
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16111
16112
	# Both c and cxx compiler support -rpath directly
16113
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16114
      fi
16115
      hardcode_libdir_separator_F77=:
16116
      ;;
16117
16118
    solaris*)
16119
      no_undefined_flag_F77=' -z text'
16120
      if test "$GCC" = yes; then
16121
	wlarc='${wl}'
16122
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16123
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16124
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16125
      else
16126
	wlarc=''
16127
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16129
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16130
      fi
16131
      hardcode_libdir_flag_spec_F77='-R$libdir'
16132
      hardcode_shlibpath_var_F77=no
16133
      case $host_os in
16134
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16135
      *)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16136
	# The compiler driver will combine and reorder linker options,
16137
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16138
	# but is careful enough not to reorder.
1 by Sebastien Bacher
Import upstream version 0.7.1
16139
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16140
	if test "$GCC" = yes; then
16141
	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16142
	else
16143
	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16144
	fi
16145
	;;
1 by Sebastien Bacher
Import upstream version 0.7.1
16146
      esac
16147
      link_all_deplibs_F77=yes
16148
      ;;
16149
16150
    sunos4*)
16151
      if test "x$host_vendor" = xsequent; then
16152
	# Use $CC to link under sequent, because it throws in some extra .o
16153
	# files that make .init and .fini sections work.
16154
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16155
      else
16156
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16157
      fi
16158
      hardcode_libdir_flag_spec_F77='-L$libdir'
16159
      hardcode_direct_F77=yes
16160
      hardcode_minus_L_F77=yes
16161
      hardcode_shlibpath_var_F77=no
16162
      ;;
16163
16164
    sysv4)
16165
      case $host_vendor in
16166
	sni)
16167
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16168
	  hardcode_direct_F77=yes # is this really true???
16169
	;;
16170
	siemens)
16171
	  ## LD is ld it makes a PLAMLIB
16172
	  ## CC just makes a GrossModule.
16173
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16174
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16175
	  hardcode_direct_F77=no
16176
        ;;
16177
	motorola)
16178
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16179
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16180
	;;
16181
      esac
16182
      runpath_var='LD_RUN_PATH'
16183
      hardcode_shlibpath_var_F77=no
16184
      ;;
16185
16186
    sysv4.3*)
16187
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16188
      hardcode_shlibpath_var_F77=no
16189
      export_dynamic_flag_spec_F77='-Bexport'
16190
      ;;
16191
16192
    sysv4*MP*)
16193
      if test -d /usr/nec; then
16194
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16195
	hardcode_shlibpath_var_F77=no
16196
	runpath_var=LD_RUN_PATH
16197
	hardcode_runpath_var=yes
16198
	ld_shlibs_F77=yes
16199
      fi
16200
      ;;
16201
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16202
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
16203
      no_undefined_flag_F77='${wl}-z,text'
16204
      archive_cmds_need_lc_F77=no
16205
      hardcode_shlibpath_var_F77=no
16206
      runpath_var='LD_RUN_PATH'
16207
16208
      if test "$GCC" = yes; then
16209
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16210
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16211
      else
16212
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16213
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16214
      fi
16215
      ;;
16216
16217
    sysv5* | sco3.2v5* | sco5v6*)
16218
      # Note: We can NOT use -z defs as we might desire, because we do not
16219
      # link with -lc, and that would cause any symbols used from libc to
16220
      # always be unresolved, which means just about no library would
16221
      # ever link correctly.  If we're not using GNU ld we use -z text
16222
      # though, which does catch some bad symbols but isn't as heavy-handed
16223
      # as -z defs.
16224
      no_undefined_flag_F77='${wl}-z,text'
16225
      allow_undefined_flag_F77='${wl}-z,nodefs'
16226
      archive_cmds_need_lc_F77=no
16227
      hardcode_shlibpath_var_F77=no
16228
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16229
      hardcode_libdir_separator_F77=':'
16230
      link_all_deplibs_F77=yes
16231
      export_dynamic_flag_spec_F77='${wl}-Bexport'
16232
      runpath_var='LD_RUN_PATH'
16233
16234
      if test "$GCC" = yes; then
16235
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16236
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16237
      else
16238
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16239
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16240
      fi
16241
      ;;
16242
16243
    uts4*)
16244
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245
      hardcode_libdir_flag_spec_F77='-L$libdir'
16246
      hardcode_shlibpath_var_F77=no
16247
      ;;
16248
16249
    *)
16250
      ld_shlibs_F77=no
16251
      ;;
16252
    esac
16253
  fi
16254
16255
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16256
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16257
test "$ld_shlibs_F77" = no && can_build_shared=no
16258
16259
#
16260
# Do we need to explicitly link libc?
16261
#
16262
case "x$archive_cmds_need_lc_F77" in
16263
x|xyes)
16264
  # Assume -lc should be added
16265
  archive_cmds_need_lc_F77=yes
16266
16267
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16268
    case $archive_cmds_F77 in
16269
    *'~'*)
16270
      # FIXME: we may have to deal with multi-command sequences.
16271
      ;;
16272
    '$CC '*)
16273
      # Test whether the compiler implicitly links with -lc since on some
16274
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16275
      # to ld, don't add -lc before -lgcc.
16276
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16277
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16278
      $rm conftest*
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16279
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
16280
16281
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16282
  (eval $ac_compile) 2>&5
16283
  ac_status=$?
16284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285
  (exit $ac_status); } 2>conftest.err; then
16286
        soname=conftest
16287
        lib=conftest
16288
        libobjs=conftest.$ac_objext
16289
        deplibs=
16290
        wl=$lt_prog_compiler_wl_F77
16291
	pic_flag=$lt_prog_compiler_pic_F77
16292
        compiler_flags=-v
16293
        linker_flags=-v
16294
        verstring=
16295
        output_objdir=.
16296
        libname=conftest
16297
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16298
        allow_undefined_flag_F77=
16299
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16300
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16301
  ac_status=$?
16302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303
  (exit $ac_status); }
16304
        then
16305
	  archive_cmds_need_lc_F77=no
16306
        else
16307
	  archive_cmds_need_lc_F77=yes
16308
        fi
16309
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16310
      else
16311
        cat conftest.err 1>&5
16312
      fi
16313
      $rm conftest*
16314
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16315
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16316
      ;;
16317
    esac
16318
  fi
16319
  ;;
16320
esac
16321
16322
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16323
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16324
library_names_spec=
16325
libname_spec='lib$name'
16326
soname_spec=
16327
shrext_cmds=".so"
16328
postinstall_cmds=
16329
postuninstall_cmds=
16330
finish_cmds=
16331
finish_eval=
16332
shlibpath_var=
16333
shlibpath_overrides_runpath=unknown
16334
version_type=none
16335
dynamic_linker="$host_os ld.so"
16336
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16337
1 by Sebastien Bacher
Import upstream version 0.7.1
16338
need_lib_prefix=unknown
16339
hardcode_into_libs=no
16340
16341
# when you set need_version to no, make sure it does not cause -set_version
16342
# flags to be left without arguments
16343
need_version=unknown
16344
16345
case $host_os in
16346
aix3*)
16347
  version_type=linux
16348
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16349
  shlibpath_var=LIBPATH
16350
16351
  # AIX 3 has no versioning support, so we append a major version to the name.
16352
  soname_spec='${libname}${release}${shared_ext}$major'
16353
  ;;
16354
16355
aix4* | aix5*)
16356
  version_type=linux
16357
  need_lib_prefix=no
16358
  need_version=no
16359
  hardcode_into_libs=yes
16360
  if test "$host_cpu" = ia64; then
16361
    # AIX 5 supports IA64
16362
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16363
    shlibpath_var=LD_LIBRARY_PATH
16364
  else
16365
    # With GCC up to 2.95.x, collect2 would create an import file
16366
    # for dependence libraries.  The import file would start with
16367
    # the line `#! .'.  This would cause the generated library to
16368
    # depend on `.', always an invalid library.  This was fixed in
16369
    # development snapshots of GCC prior to 3.0.
16370
    case $host_os in
16371
      aix4 | aix4.[01] | aix4.[01].*)
16372
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16373
	   echo ' yes '
16374
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16375
	:
16376
      else
16377
	can_build_shared=no
16378
      fi
16379
      ;;
16380
    esac
16381
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16382
    # soname into executable. Probably we can add versioning support to
16383
    # collect2, so additional links can be useful in future.
16384
    if test "$aix_use_runtimelinking" = yes; then
16385
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16386
      # instead of lib<name>.a to let people know that these are not
16387
      # typical AIX shared libraries.
16388
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389
    else
16390
      # We preserve .a as extension for shared libraries through AIX4.2
16391
      # and later when we are not doing run time linking.
16392
      library_names_spec='${libname}${release}.a $libname.a'
16393
      soname_spec='${libname}${release}${shared_ext}$major'
16394
    fi
16395
    shlibpath_var=LIBPATH
16396
  fi
16397
  ;;
16398
16399
amigaos*)
16400
  library_names_spec='$libname.ixlibrary $libname.a'
16401
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16402
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16403
  ;;
16404
16405
beos*)
16406
  library_names_spec='${libname}${shared_ext}'
16407
  dynamic_linker="$host_os ld.so"
16408
  shlibpath_var=LIBRARY_PATH
16409
  ;;
16410
16411
bsdi[45]*)
16412
  version_type=linux
16413
  need_version=no
16414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415
  soname_spec='${libname}${release}${shared_ext}$major'
16416
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16417
  shlibpath_var=LD_LIBRARY_PATH
16418
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16419
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16420
  # the default ld.so.conf also contains /usr/contrib/lib and
16421
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16422
  # libtool to hard-code these into programs
16423
  ;;
16424
16425
cygwin* | mingw* | pw32*)
16426
  version_type=windows
16427
  shrext_cmds=".dll"
16428
  need_version=no
16429
  need_lib_prefix=no
16430
16431
  case $GCC,$host_os in
16432
  yes,cygwin* | yes,mingw* | yes,pw32*)
16433
    library_names_spec='$libname.dll.a'
16434
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16435
    postinstall_cmds='base_file=`basename \${file}`~
16436
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16437
      dldir=$destdir/`dirname \$dlpath`~
16438
      test -d \$dldir || mkdir -p \$dldir~
16439
      $install_prog $dir/$dlname \$dldir/$dlname~
16440
      chmod a+x \$dldir/$dlname'
16441
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16442
      dlpath=$dir/\$dldll~
16443
       $rm \$dlpath'
16444
    shlibpath_overrides_runpath=yes
16445
16446
    case $host_os in
16447
    cygwin*)
16448
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16449
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16450
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16451
      ;;
16452
    mingw*)
16453
      # MinGW DLLs use traditional 'lib' prefix
16454
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16456
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16457
        # It is most probably a Windows format PATH printed by
16458
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16459
        # path with ; separators, and with drive letters. We can handle the
16460
        # drive letters (cygwin fileutils understands them), so leave them,
16461
        # especially as we might pass files found there to a mingw objdump,
16462
        # which wouldn't understand a cygwinified path. Ahh.
16463
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16464
      else
16465
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16466
      fi
16467
      ;;
16468
    pw32*)
16469
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16470
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16471
      ;;
16472
    esac
16473
    ;;
16474
16475
  *)
16476
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16477
    ;;
16478
  esac
16479
  dynamic_linker='Win32 ld.exe'
16480
  # FIXME: first we should search . and the directory the executable is in
16481
  shlibpath_var=PATH
16482
  ;;
16483
16484
darwin* | rhapsody*)
16485
  dynamic_linker="$host_os dyld"
16486
  version_type=darwin
16487
  need_lib_prefix=no
16488
  need_version=no
16489
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16490
  soname_spec='${libname}${release}${major}$shared_ext'
16491
  shlibpath_overrides_runpath=yes
16492
  shlibpath_var=DYLD_LIBRARY_PATH
16493
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16494
1 by Sebastien Bacher
Import upstream version 0.7.1
16495
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16496
  ;;
16497
16498
dgux*)
16499
  version_type=linux
16500
  need_lib_prefix=no
16501
  need_version=no
16502
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16503
  soname_spec='${libname}${release}${shared_ext}$major'
16504
  shlibpath_var=LD_LIBRARY_PATH
16505
  ;;
16506
16507
freebsd1*)
16508
  dynamic_linker=no
16509
  ;;
16510
16511
freebsd* | dragonfly*)
16512
  # DragonFly does not have aout.  When/if they implement a new
16513
  # versioning mechanism, adjust this.
16514
  if test -x /usr/bin/objformat; then
16515
    objformat=`/usr/bin/objformat`
16516
  else
16517
    case $host_os in
16518
    freebsd[123]*) objformat=aout ;;
16519
    *) objformat=elf ;;
16520
    esac
16521
  fi
16522
  version_type=freebsd-$objformat
16523
  case $version_type in
16524
    freebsd-elf*)
16525
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16526
      need_version=no
16527
      need_lib_prefix=no
16528
      ;;
16529
    freebsd-*)
16530
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16531
      need_version=yes
16532
      ;;
16533
  esac
16534
  shlibpath_var=LD_LIBRARY_PATH
16535
  case $host_os in
16536
  freebsd2*)
16537
    shlibpath_overrides_runpath=yes
16538
    ;;
16539
  freebsd3.[01]* | freebsdelf3.[01]*)
16540
    shlibpath_overrides_runpath=yes
16541
    hardcode_into_libs=yes
16542
    ;;
16543
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16544
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16545
    shlibpath_overrides_runpath=no
16546
    hardcode_into_libs=yes
16547
    ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16548
  *) # from 4.6 on, and DragonFly
1 by Sebastien Bacher
Import upstream version 0.7.1
16549
    shlibpath_overrides_runpath=yes
16550
    hardcode_into_libs=yes
16551
    ;;
16552
  esac
16553
  ;;
16554
16555
gnu*)
16556
  version_type=linux
16557
  need_lib_prefix=no
16558
  need_version=no
16559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16560
  soname_spec='${libname}${release}${shared_ext}$major'
16561
  shlibpath_var=LD_LIBRARY_PATH
16562
  hardcode_into_libs=yes
16563
  ;;
16564
16565
hpux9* | hpux10* | hpux11*)
16566
  # Give a soname corresponding to the major version so that dld.sl refuses to
16567
  # link against other versions.
16568
  version_type=sunos
16569
  need_lib_prefix=no
16570
  need_version=no
16571
  case $host_cpu in
16572
  ia64*)
16573
    shrext_cmds='.so'
16574
    hardcode_into_libs=yes
16575
    dynamic_linker="$host_os dld.so"
16576
    shlibpath_var=LD_LIBRARY_PATH
16577
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16578
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579
    soname_spec='${libname}${release}${shared_ext}$major'
16580
    if test "X$HPUX_IA64_MODE" = X32; then
16581
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16582
    else
16583
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16584
    fi
16585
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16586
    ;;
16587
   hppa*64*)
16588
     shrext_cmds='.sl'
16589
     hardcode_into_libs=yes
16590
     dynamic_linker="$host_os dld.sl"
16591
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16592
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16593
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594
     soname_spec='${libname}${release}${shared_ext}$major'
16595
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16596
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16597
     ;;
16598
   *)
16599
    shrext_cmds='.sl'
16600
    dynamic_linker="$host_os dld.sl"
16601
    shlibpath_var=SHLIB_PATH
16602
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16603
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16604
    soname_spec='${libname}${release}${shared_ext}$major'
16605
    ;;
16606
  esac
16607
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16608
  postinstall_cmds='chmod 555 $lib'
16609
  ;;
16610
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16611
interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
16612
  version_type=linux
16613
  need_lib_prefix=no
16614
  need_version=no
16615
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16616
  soname_spec='${libname}${release}${shared_ext}$major'
16617
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16618
  shlibpath_var=LD_LIBRARY_PATH
16619
  shlibpath_overrides_runpath=no
16620
  hardcode_into_libs=yes
16621
  ;;
16622
16623
irix5* | irix6* | nonstopux*)
16624
  case $host_os in
16625
    nonstopux*) version_type=nonstopux ;;
16626
    *)
16627
	if test "$lt_cv_prog_gnu_ld" = yes; then
16628
		version_type=linux
16629
	else
16630
		version_type=irix
16631
	fi ;;
16632
  esac
16633
  need_lib_prefix=no
16634
  need_version=no
16635
  soname_spec='${libname}${release}${shared_ext}$major'
16636
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16637
  case $host_os in
16638
  irix5* | nonstopux*)
16639
    libsuff= shlibsuff=
16640
    ;;
16641
  *)
16642
    case $LD in # libtool.m4 will add one of these switches to LD
16643
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16644
      libsuff= shlibsuff= libmagic=32-bit;;
16645
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16646
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16647
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16648
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16649
    *) libsuff= shlibsuff= libmagic=never-match;;
16650
    esac
16651
    ;;
16652
  esac
16653
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16654
  shlibpath_overrides_runpath=no
16655
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16656
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16657
  hardcode_into_libs=yes
16658
  ;;
16659
16660
# No shared lib support for Linux oldld, aout, or coff.
16661
linux*oldld* | linux*aout* | linux*coff*)
16662
  dynamic_linker=no
16663
  ;;
16664
16665
# This must be Linux ELF.
16666
linux* | k*bsd*-gnu)
16667
  version_type=linux
16668
  need_lib_prefix=no
16669
  need_version=no
16670
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671
  soname_spec='${libname}${release}${shared_ext}$major'
16672
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16673
  shlibpath_var=LD_LIBRARY_PATH
16674
  shlibpath_overrides_runpath=no
16675
  # This implies no fast_install, which is unacceptable.
16676
  # Some rework will be needed to allow for fast_install
16677
  # before this can be enabled.
16678
  hardcode_into_libs=yes
16679
16680
  # Append ld.so.conf contents to the search path
16681
  if test -f /etc/ld.so.conf; then
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16682
    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;/^$/d' | tr '\n' ' '`
1 by Sebastien Bacher
Import upstream version 0.7.1
16683
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16684
  fi
16685
16686
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16687
  # powerpc, because MkLinux only supported shared libraries with the
16688
  # GNU dynamic linker.  Since this was broken with cross compilers,
16689
  # most powerpc-linux boxes support dynamic linking these days and
16690
  # people can always --disable-shared, the test was removed, and we
16691
  # assume the GNU/Linux dynamic linker is in use.
16692
  dynamic_linker='GNU/Linux ld.so'
16693
  ;;
16694
16695
netbsdelf*-gnu)
16696
  version_type=linux
16697
  need_lib_prefix=no
16698
  need_version=no
16699
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16700
  soname_spec='${libname}${release}${shared_ext}$major'
16701
  shlibpath_var=LD_LIBRARY_PATH
16702
  shlibpath_overrides_runpath=no
16703
  hardcode_into_libs=yes
16704
  dynamic_linker='NetBSD ld.elf_so'
16705
  ;;
16706
16707
netbsd*)
16708
  version_type=sunos
16709
  need_lib_prefix=no
16710
  need_version=no
16711
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16712
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16713
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16714
    dynamic_linker='NetBSD (a.out) ld.so'
16715
  else
16716
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16717
    soname_spec='${libname}${release}${shared_ext}$major'
16718
    dynamic_linker='NetBSD ld.elf_so'
16719
  fi
16720
  shlibpath_var=LD_LIBRARY_PATH
16721
  shlibpath_overrides_runpath=yes
16722
  hardcode_into_libs=yes
16723
  ;;
16724
16725
newsos6)
16726
  version_type=linux
16727
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728
  shlibpath_var=LD_LIBRARY_PATH
16729
  shlibpath_overrides_runpath=yes
16730
  ;;
16731
16732
nto-qnx*)
16733
  version_type=linux
16734
  need_lib_prefix=no
16735
  need_version=no
16736
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737
  soname_spec='${libname}${release}${shared_ext}$major'
16738
  shlibpath_var=LD_LIBRARY_PATH
16739
  shlibpath_overrides_runpath=yes
16740
  ;;
16741
16742
openbsd*)
16743
  version_type=sunos
16744
  sys_lib_dlsearch_path_spec="/usr/lib"
16745
  need_lib_prefix=no
16746
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16747
  case $host_os in
16748
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16749
    *)                         need_version=no  ;;
16750
  esac
16751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16752
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16753
  shlibpath_var=LD_LIBRARY_PATH
16754
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16755
    case $host_os in
16756
      openbsd2.[89] | openbsd2.[89].*)
16757
	shlibpath_overrides_runpath=no
16758
	;;
16759
      *)
16760
	shlibpath_overrides_runpath=yes
16761
	;;
16762
      esac
16763
  else
16764
    shlibpath_overrides_runpath=yes
16765
  fi
16766
  ;;
16767
16768
os2*)
16769
  libname_spec='$name'
16770
  shrext_cmds=".dll"
16771
  need_lib_prefix=no
16772
  library_names_spec='$libname${shared_ext} $libname.a'
16773
  dynamic_linker='OS/2 ld.exe'
16774
  shlibpath_var=LIBPATH
16775
  ;;
16776
16777
osf3* | osf4* | osf5*)
16778
  version_type=osf
16779
  need_lib_prefix=no
16780
  need_version=no
16781
  soname_spec='${libname}${release}${shared_ext}$major'
16782
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783
  shlibpath_var=LD_LIBRARY_PATH
16784
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16785
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16786
  ;;
16787
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16788
rdos*)
16789
  dynamic_linker=no
16790
  ;;
16791
1 by Sebastien Bacher
Import upstream version 0.7.1
16792
solaris*)
16793
  version_type=linux
16794
  need_lib_prefix=no
16795
  need_version=no
16796
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797
  soname_spec='${libname}${release}${shared_ext}$major'
16798
  shlibpath_var=LD_LIBRARY_PATH
16799
  shlibpath_overrides_runpath=yes
16800
  hardcode_into_libs=yes
16801
  # ldd complains unless libraries are executable
16802
  postinstall_cmds='chmod +x $lib'
16803
  ;;
16804
16805
sunos4*)
16806
  version_type=sunos
16807
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16808
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16809
  shlibpath_var=LD_LIBRARY_PATH
16810
  shlibpath_overrides_runpath=yes
16811
  if test "$with_gnu_ld" = yes; then
16812
    need_lib_prefix=no
16813
  fi
16814
  need_version=yes
16815
  ;;
16816
16817
sysv4 | sysv4.3*)
16818
  version_type=linux
16819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16820
  soname_spec='${libname}${release}${shared_ext}$major'
16821
  shlibpath_var=LD_LIBRARY_PATH
16822
  case $host_vendor in
16823
    sni)
16824
      shlibpath_overrides_runpath=no
16825
      need_lib_prefix=no
16826
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16827
      runpath_var=LD_RUN_PATH
16828
      ;;
16829
    siemens)
16830
      need_lib_prefix=no
16831
      ;;
16832
    motorola)
16833
      need_lib_prefix=no
16834
      need_version=no
16835
      shlibpath_overrides_runpath=no
16836
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16837
      ;;
16838
  esac
16839
  ;;
16840
16841
sysv4*MP*)
16842
  if test -d /usr/nec ;then
16843
    version_type=linux
16844
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16845
    soname_spec='$libname${shared_ext}.$major'
16846
    shlibpath_var=LD_LIBRARY_PATH
16847
  fi
16848
  ;;
16849
16850
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16851
  version_type=freebsd-elf
16852
  need_lib_prefix=no
16853
  need_version=no
16854
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16855
  soname_spec='${libname}${release}${shared_ext}$major'
16856
  shlibpath_var=LD_LIBRARY_PATH
16857
  hardcode_into_libs=yes
16858
  if test "$with_gnu_ld" = yes; then
16859
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16860
    shlibpath_overrides_runpath=no
16861
  else
16862
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16863
    shlibpath_overrides_runpath=yes
16864
    case $host_os in
16865
      sco3.2v5*)
16866
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16867
	;;
16868
    esac
16869
  fi
16870
  sys_lib_dlsearch_path_spec='/usr/lib'
16871
  ;;
16872
16873
uts4*)
16874
  version_type=linux
16875
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876
  soname_spec='${libname}${release}${shared_ext}$major'
16877
  shlibpath_var=LD_LIBRARY_PATH
16878
  ;;
16879
16880
*)
16881
  dynamic_linker=no
16882
  ;;
16883
esac
16884
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16885
echo "${ECHO_T}$dynamic_linker" >&6; }
16886
test "$dynamic_linker" = no && can_build_shared=no
16887
16888
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16889
if test "$GCC" = yes; then
16890
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16891
fi
16892
16893
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16894
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16895
hardcode_action_F77=
16896
if test -n "$hardcode_libdir_flag_spec_F77" || \
16897
   test -n "$runpath_var_F77" || \
16898
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16899
16900
  # We can hardcode non-existant directories.
16901
  if test "$hardcode_direct_F77" != no &&
16902
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16903
     # have to relink, otherwise we might link with an installed library
16904
     # when we should be linking with a yet-to-be-installed one
16905
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16906
     test "$hardcode_minus_L_F77" != no; then
16907
    # Linking always hardcodes the temporary library directory.
16908
    hardcode_action_F77=relink
16909
  else
16910
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16911
    hardcode_action_F77=immediate
16912
  fi
16913
else
16914
  # We cannot hardcode anything, or else we can only hardcode existing
16915
  # directories.
16916
  hardcode_action_F77=unsupported
16917
fi
16918
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16919
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16920
16921
if test "$hardcode_action_F77" = relink; then
16922
  # Fast installation is not supported
16923
  enable_fast_install=no
16924
elif test "$shlibpath_overrides_runpath" = yes ||
16925
     test "$enable_shared" = no; then
16926
  # Fast installation is not necessary
16927
  enable_fast_install=needless
16928
fi
16929
16930
16931
# The else clause should only fire when bootstrapping the
16932
# libtool distribution, otherwise you forgot to ship ltmain.sh
16933
# with your package, and you will get complaints that there are
16934
# no rules to generate ltmain.sh.
16935
if test -f "$ltmain"; then
16936
  # See if we are running on zsh, and set the options which allow our commands through
16937
  # without removal of \ escapes.
16938
  if test -n "${ZSH_VERSION+set}" ; then
16939
    setopt NO_GLOB_SUBST
16940
  fi
16941
  # Now quote all the things that may contain metacharacters while being
16942
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16943
  # variables and quote the copies for generation of the libtool script.
16944
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16945
    SED SHELL STRIP \
16946
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16947
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16948
    deplibs_check_method reload_flag reload_cmds need_locks \
16949
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16950
    lt_cv_sys_global_symbol_to_c_name_address \
16951
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16952
    old_postinstall_cmds old_postuninstall_cmds \
16953
    compiler_F77 \
16954
    CC_F77 \
16955
    LD_F77 \
16956
    lt_prog_compiler_wl_F77 \
16957
    lt_prog_compiler_pic_F77 \
16958
    lt_prog_compiler_static_F77 \
16959
    lt_prog_compiler_no_builtin_flag_F77 \
16960
    export_dynamic_flag_spec_F77 \
16961
    thread_safe_flag_spec_F77 \
16962
    whole_archive_flag_spec_F77 \
16963
    enable_shared_with_static_runtimes_F77 \
16964
    old_archive_cmds_F77 \
16965
    old_archive_from_new_cmds_F77 \
16966
    predep_objects_F77 \
16967
    postdep_objects_F77 \
16968
    predeps_F77 \
16969
    postdeps_F77 \
16970
    compiler_lib_search_path_F77 \
16971
    archive_cmds_F77 \
16972
    archive_expsym_cmds_F77 \
16973
    postinstall_cmds_F77 \
16974
    postuninstall_cmds_F77 \
16975
    old_archive_from_expsyms_cmds_F77 \
16976
    allow_undefined_flag_F77 \
16977
    no_undefined_flag_F77 \
16978
    export_symbols_cmds_F77 \
16979
    hardcode_libdir_flag_spec_F77 \
16980
    hardcode_libdir_flag_spec_ld_F77 \
16981
    hardcode_libdir_separator_F77 \
16982
    hardcode_automatic_F77 \
16983
    module_cmds_F77 \
16984
    module_expsym_cmds_F77 \
16985
    lt_cv_prog_compiler_c_o_F77 \
1.1.1 by Michael Vogt
Import upstream version 0.7.2
16986
    fix_srcfile_path_F77 \
1 by Sebastien Bacher
Import upstream version 0.7.1
16987
    exclude_expsyms_F77 \
16988
    include_expsyms_F77; do
16989
16990
    case $var in
16991
    old_archive_cmds_F77 | \
16992
    old_archive_from_new_cmds_F77 | \
16993
    archive_cmds_F77 | \
16994
    archive_expsym_cmds_F77 | \
16995
    module_cmds_F77 | \
16996
    module_expsym_cmds_F77 | \
16997
    old_archive_from_expsyms_cmds_F77 | \
16998
    export_symbols_cmds_F77 | \
16999
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17000
    postinstall_cmds | postuninstall_cmds | \
17001
    old_postinstall_cmds | old_postuninstall_cmds | \
17002
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17003
      # Double-quote double-evaled strings.
17004
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17005
      ;;
17006
    *)
17007
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17008
      ;;
17009
    esac
17010
  done
17011
17012
  case $lt_echo in
17013
  *'\$0 --fallback-echo"')
17014
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17015
    ;;
17016
  esac
17017
17018
cfgfile="$ofile"
17019
17020
  cat <<__EOF__ >> "$cfgfile"
17021
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17022
17023
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17024
17025
# Shell to use when invoking shell scripts.
17026
SHELL=$lt_SHELL
17027
17028
# Whether or not to build shared libraries.
17029
build_libtool_libs=$enable_shared
17030
17031
# Whether or not to build static libraries.
17032
build_old_libs=$enable_static
17033
17034
# Whether or not to add -lc for building shared libraries.
17035
build_libtool_need_lc=$archive_cmds_need_lc_F77
17036
17037
# Whether or not to disallow shared libs when runtime libs are static
17038
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17039
17040
# Whether or not to optimize for fast installation.
17041
fast_install=$enable_fast_install
17042
17043
# The host system.
17044
host_alias=$host_alias
17045
host=$host
17046
host_os=$host_os
17047
17048
# The build system.
17049
build_alias=$build_alias
17050
build=$build
17051
build_os=$build_os
17052
17053
# An echo program that does not interpret backslashes.
17054
echo=$lt_echo
17055
17056
# The archiver.
17057
AR=$lt_AR
17058
AR_FLAGS=$lt_AR_FLAGS
17059
17060
# A C compiler.
17061
LTCC=$lt_LTCC
17062
17063
# LTCC compiler flags.
17064
LTCFLAGS=$lt_LTCFLAGS
17065
17066
# A language-specific compiler.
17067
CC=$lt_compiler_F77
17068
17069
# Is the compiler the GNU C compiler?
17070
with_gcc=$GCC_F77
17071
17072
# An ERE matcher.
17073
EGREP=$lt_EGREP
17074
17075
# The linker used to build libraries.
17076
LD=$lt_LD_F77
17077
17078
# Whether we need hard or soft links.
17079
LN_S=$lt_LN_S
17080
17081
# A BSD-compatible nm program.
17082
NM=$lt_NM
17083
17084
# A symbol stripping program
17085
STRIP=$lt_STRIP
17086
17087
# Used to examine libraries when file_magic_cmd begins "file"
17088
MAGIC_CMD=$MAGIC_CMD
17089
17090
# Used on cygwin: DLL creation program.
17091
DLLTOOL="$DLLTOOL"
17092
17093
# Used on cygwin: object dumper.
17094
OBJDUMP="$OBJDUMP"
17095
17096
# Used on cygwin: assembler.
17097
AS="$AS"
17098
17099
# The name of the directory that contains temporary libtool files.
17100
objdir=$objdir
17101
17102
# How to create reloadable object files.
17103
reload_flag=$lt_reload_flag
17104
reload_cmds=$lt_reload_cmds
17105
17106
# How to pass a linker flag through the compiler.
17107
wl=$lt_lt_prog_compiler_wl_F77
17108
17109
# Object file suffix (normally "o").
17110
objext="$ac_objext"
17111
17112
# Old archive suffix (normally "a").
17113
libext="$libext"
17114
17115
# Shared library suffix (normally ".so").
17116
shrext_cmds='$shrext_cmds'
17117
17118
# Executable file suffix (normally "").
17119
exeext="$exeext"
17120
17121
# Additional compiler flags for building library objects.
17122
pic_flag=$lt_lt_prog_compiler_pic_F77
17123
pic_mode=$pic_mode
17124
17125
# What is the maximum length of a command?
17126
max_cmd_len=$lt_cv_sys_max_cmd_len
17127
17128
# Does compiler simultaneously support -c and -o options?
17129
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17130
17131
# Must we lock files when doing compilation?
17132
need_locks=$lt_need_locks
17133
17134
# Do we need the lib prefix for modules?
17135
need_lib_prefix=$need_lib_prefix
17136
17137
# Do we need a version for libraries?
17138
need_version=$need_version
17139
17140
# Whether dlopen is supported.
17141
dlopen_support=$enable_dlopen
17142
17143
# Whether dlopen of programs is supported.
17144
dlopen_self=$enable_dlopen_self
17145
17146
# Whether dlopen of statically linked programs is supported.
17147
dlopen_self_static=$enable_dlopen_self_static
17148
17149
# Compiler flag to prevent dynamic linking.
17150
link_static_flag=$lt_lt_prog_compiler_static_F77
17151
17152
# Compiler flag to turn off builtin functions.
17153
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17154
17155
# Compiler flag to allow reflexive dlopens.
17156
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17157
17158
# Compiler flag to generate shared objects directly from archives.
17159
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17160
17161
# Compiler flag to generate thread-safe objects.
17162
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17163
17164
# Library versioning type.
17165
version_type=$version_type
17166
17167
# Format of library name prefix.
17168
libname_spec=$lt_libname_spec
17169
17170
# List of archive names.  First name is the real one, the rest are links.
17171
# The last name is the one that the linker finds with -lNAME.
17172
library_names_spec=$lt_library_names_spec
17173
17174
# The coded name of the library, if different from the real name.
17175
soname_spec=$lt_soname_spec
17176
17177
# Commands used to build and install an old-style archive.
17178
RANLIB=$lt_RANLIB
17179
old_archive_cmds=$lt_old_archive_cmds_F77
17180
old_postinstall_cmds=$lt_old_postinstall_cmds
17181
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17182
17183
# Create an old-style archive from a shared archive.
17184
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17185
17186
# Create a temporary old-style archive to link instead of a shared archive.
17187
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17188
17189
# Commands used to build and install a shared archive.
17190
archive_cmds=$lt_archive_cmds_F77
17191
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17192
postinstall_cmds=$lt_postinstall_cmds
17193
postuninstall_cmds=$lt_postuninstall_cmds
17194
17195
# Commands used to build a loadable module (assumed same as above if empty)
17196
module_cmds=$lt_module_cmds_F77
17197
module_expsym_cmds=$lt_module_expsym_cmds_F77
17198
17199
# Commands to strip libraries.
17200
old_striplib=$lt_old_striplib
17201
striplib=$lt_striplib
17202
17203
# Dependencies to place before the objects being linked to create a
17204
# shared library.
17205
predep_objects=$lt_predep_objects_F77
17206
17207
# Dependencies to place after the objects being linked to create a
17208
# shared library.
17209
postdep_objects=$lt_postdep_objects_F77
17210
17211
# Dependencies to place before the objects being linked to create a
17212
# shared library.
17213
predeps=$lt_predeps_F77
17214
17215
# Dependencies to place after the objects being linked to create a
17216
# shared library.
17217
postdeps=$lt_postdeps_F77
17218
17219
# The library search path used internally by the compiler when linking
17220
# a shared library.
17221
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17222
17223
# Method to check whether dependent libraries are shared objects.
17224
deplibs_check_method=$lt_deplibs_check_method
17225
17226
# Command to use when deplibs_check_method == file_magic.
17227
file_magic_cmd=$lt_file_magic_cmd
17228
17229
# Flag that allows shared libraries with undefined symbols to be built.
17230
allow_undefined_flag=$lt_allow_undefined_flag_F77
17231
17232
# Flag that forces no undefined symbols.
17233
no_undefined_flag=$lt_no_undefined_flag_F77
17234
17235
# Commands used to finish a libtool library installation in a directory.
17236
finish_cmds=$lt_finish_cmds
17237
17238
# Same as above, but a single script fragment to be evaled but not shown.
17239
finish_eval=$lt_finish_eval
17240
17241
# Take the output of nm and produce a listing of raw symbols and C names.
17242
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17243
17244
# Transform the output of nm in a proper C declaration
17245
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17246
17247
# Transform the output of nm in a C name address pair
17248
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17249
17250
# This is the shared library runtime path variable.
17251
runpath_var=$runpath_var
17252
17253
# This is the shared library path variable.
17254
shlibpath_var=$shlibpath_var
17255
17256
# Is shlibpath searched before the hard-coded library search path?
17257
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17258
17259
# How to hardcode a shared library path into an executable.
17260
hardcode_action=$hardcode_action_F77
17261
17262
# Whether we should hardcode library paths into libraries.
17263
hardcode_into_libs=$hardcode_into_libs
17264
17265
# Flag to hardcode \$libdir into a binary during linking.
17266
# This must work even if \$libdir does not exist.
17267
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17268
17269
# If ld is used when linking, flag to hardcode \$libdir into
17270
# a binary during linking. This must work even if \$libdir does
17271
# not exist.
17272
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17273
17274
# Whether we need a single -rpath flag with a separated argument.
17275
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17276
17277
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17278
# resulting binary.
17279
hardcode_direct=$hardcode_direct_F77
17280
17281
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17282
# resulting binary.
17283
hardcode_minus_L=$hardcode_minus_L_F77
17284
17285
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17286
# the resulting binary.
17287
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17288
17289
# Set to yes if building a shared library automatically hardcodes DIR into the library
17290
# and all subsequent libraries and executables linked against it.
17291
hardcode_automatic=$hardcode_automatic_F77
17292
17293
# Variables whose values should be saved in libtool wrapper scripts and
17294
# restored at relink time.
17295
variables_saved_for_relink="$variables_saved_for_relink"
17296
17297
# Whether libtool must link a program against all its dependency libraries.
17298
link_all_deplibs=$link_all_deplibs_F77
17299
17300
# Compile-time system search path for libraries
17301
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17302
17303
# Run-time system search path for libraries
17304
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17305
17306
# Fix the shell variable \$srcfile for the compiler.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17307
fix_srcfile_path=$lt_fix_srcfile_path
1 by Sebastien Bacher
Import upstream version 0.7.1
17308
17309
# Set to yes if exported symbols are required.
17310
always_export_symbols=$always_export_symbols_F77
17311
17312
# The commands to list exported symbols.
17313
export_symbols_cmds=$lt_export_symbols_cmds_F77
17314
17315
# The commands to extract the exported symbol list from a shared archive.
17316
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17317
17318
# Symbols that should not be listed in the preloaded symbols.
17319
exclude_expsyms=$lt_exclude_expsyms_F77
17320
17321
# Symbols that must always be exported.
17322
include_expsyms=$lt_include_expsyms_F77
17323
17324
# ### END LIBTOOL TAG CONFIG: $tagname
17325
17326
__EOF__
17327
17328
17329
else
17330
  # If there is no Makefile yet, we rely on a make rule to execute
17331
  # `config.status --recheck' to rerun these tests and create the
17332
  # libtool script then.
17333
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17334
  if test -f "$ltmain_in"; then
17335
    test -f Makefile && make "$ltmain"
17336
  fi
17337
fi
17338
17339
17340
ac_ext=c
17341
ac_cpp='$CPP $CPPFLAGS'
17342
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17343
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17344
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17345
17346
CC="$lt_save_CC"
17347
17348
	else
17349
	  tagname=""
17350
	fi
17351
	;;
17352
17353
      GCJ)
17354
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17355
17356
17357
# Source file extension for Java test sources.
17358
ac_ext=java
17359
17360
# Object file extension for compiled Java test sources.
17361
objext=o
17362
objext_GCJ=$objext
17363
17364
# Code to be used in simple compile tests
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17365
lt_simple_compile_test_code="class foo {}"
1 by Sebastien Bacher
Import upstream version 0.7.1
17366
17367
# Code to be used in simple link tests
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17368
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
1 by Sebastien Bacher
Import upstream version 0.7.1
17369
17370
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17371
17372
# If no C compiler was specified, use CC.
17373
LTCC=${LTCC-"$CC"}
17374
17375
# If no C compiler flags were specified, use CFLAGS.
17376
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17377
17378
# Allow CC to be a program name with arguments.
17379
compiler=$CC
17380
17381
17382
# save warnings/boilerplate of simple test code
17383
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17384
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
17385
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17386
_lt_compiler_boilerplate=`cat conftest.err`
17387
$rm conftest*
17388
17389
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17390
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
17391
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17392
_lt_linker_boilerplate=`cat conftest.err`
17393
$rm conftest*
17394
17395
17396
# Allow CC to be a program name with arguments.
17397
lt_save_CC="$CC"
17398
CC=${GCJ-"gcj"}
17399
compiler=$CC
17400
compiler_GCJ=$CC
17401
for cc_temp in $compiler""; do
17402
  case $cc_temp in
17403
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17404
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17405
    \-*) ;;
17406
    *) break;;
17407
  esac
17408
done
17409
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17410
17411
17412
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17413
archive_cmds_need_lc_GCJ=no
17414
17415
old_archive_cmds_GCJ=$old_archive_cmds
17416
17417
17418
lt_prog_compiler_no_builtin_flag_GCJ=
17419
17420
if test "$GCC" = yes; then
17421
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17422
17423
17424
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17425
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17426
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17427
  echo $ECHO_N "(cached) $ECHO_C" >&6
17428
else
17429
  lt_cv_prog_compiler_rtti_exceptions=no
17430
  ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17431
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
17432
   lt_compiler_flag="-fno-rtti -fno-exceptions"
17433
   # Insert the option either (1) after the last *FLAGS variable, or
17434
   # (2) before a word containing "conftest.", or (3) at the end.
17435
   # Note that $ac_compile itself does not contain backslashes and begins
17436
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17437
   # The option is referenced via a variable to avoid confusing sed.
17438
   lt_compile=`echo "$ac_compile" | $SED \
17439
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17440
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17441
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17442
   (eval echo "\"\$as_me:17451: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
17443
   (eval "$lt_compile" 2>conftest.err)
17444
   ac_status=$?
17445
   cat conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17446
   echo "$as_me:17455: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
17447
   if (exit $ac_status) && test -s "$ac_outfile"; then
17448
     # The compiler can only warn and ignore the option if not recognized
17449
     # So say no if there are warnings other than the usual output.
17450
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17451
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17452
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17453
       lt_cv_prog_compiler_rtti_exceptions=yes
17454
     fi
17455
   fi
17456
   $rm conftest*
17457
17458
fi
17459
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17460
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17461
17462
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17463
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17464
else
17465
    :
17466
fi
17467
17468
fi
17469
17470
lt_prog_compiler_wl_GCJ=
17471
lt_prog_compiler_pic_GCJ=
17472
lt_prog_compiler_static_GCJ=
17473
17474
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17475
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17476
17477
  if test "$GCC" = yes; then
17478
    lt_prog_compiler_wl_GCJ='-Wl,'
17479
    lt_prog_compiler_static_GCJ='-static'
17480
17481
    case $host_os in
17482
      aix*)
17483
      # All AIX code is PIC.
17484
      if test "$host_cpu" = ia64; then
17485
	# AIX 5 now supports IA64 processor
17486
	lt_prog_compiler_static_GCJ='-Bstatic'
17487
      fi
17488
      ;;
17489
17490
    amigaos*)
17491
      # FIXME: we need at least 68020 code to build shared libraries, but
17492
      # adding the `-m68020' flag to GCC prevents building anything better,
17493
      # like `-m68040'.
17494
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17495
      ;;
17496
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17497
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Sebastien Bacher
Import upstream version 0.7.1
17498
      # PIC is the default for these OSes.
17499
      ;;
17500
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17501
    mingw* | cygwin* | pw32* | os2*)
1 by Sebastien Bacher
Import upstream version 0.7.1
17502
      # This hack is so that the source file can tell whether it is being
17503
      # built for inclusion in a dll (and should export symbols for example).
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17504
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17505
      # (--disable-auto-import) libraries
1 by Sebastien Bacher
Import upstream version 0.7.1
17506
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17507
      ;;
17508
17509
    darwin* | rhapsody*)
17510
      # PIC is the default on this platform
17511
      # Common symbols not allowed in MH_DYLIB files
17512
      lt_prog_compiler_pic_GCJ='-fno-common'
17513
      ;;
17514
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17515
    interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
17516
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17517
      # Instead, we relocate shared libraries at runtime.
17518
      ;;
17519
17520
    msdosdjgpp*)
17521
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17522
      # on systems that don't support them.
17523
      lt_prog_compiler_can_build_shared_GCJ=no
17524
      enable_shared=no
17525
      ;;
17526
17527
    sysv4*MP*)
17528
      if test -d /usr/nec; then
17529
	lt_prog_compiler_pic_GCJ=-Kconform_pic
17530
      fi
17531
      ;;
17532
17533
    hpux*)
17534
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17535
      # not for PA HP-UX.
17536
      case $host_cpu in
17537
      hppa*64*|ia64*)
17538
	# +Z the default
17539
	;;
17540
      *)
17541
	lt_prog_compiler_pic_GCJ='-fPIC'
17542
	;;
17543
      esac
17544
      ;;
17545
17546
    *)
17547
      lt_prog_compiler_pic_GCJ='-fPIC'
17548
      ;;
17549
    esac
17550
  else
17551
    # PORTME Check for flag to pass linker flags through the system compiler.
17552
    case $host_os in
17553
    aix*)
17554
      lt_prog_compiler_wl_GCJ='-Wl,'
17555
      if test "$host_cpu" = ia64; then
17556
	# AIX 5 now supports IA64 processor
17557
	lt_prog_compiler_static_GCJ='-Bstatic'
17558
      else
17559
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17560
      fi
17561
      ;;
17562
      darwin*)
17563
        # PIC is the default on this platform
17564
        # Common symbols not allowed in MH_DYLIB files
17565
       case $cc_basename in
17566
         xlc*)
17567
         lt_prog_compiler_pic_GCJ='-qnocommon'
17568
         lt_prog_compiler_wl_GCJ='-Wl,'
17569
         ;;
17570
       esac
17571
       ;;
17572
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17573
    mingw* | cygwin* | pw32* | os2*)
1 by Sebastien Bacher
Import upstream version 0.7.1
17574
      # This hack is so that the source file can tell whether it is being
17575
      # built for inclusion in a dll (and should export symbols for example).
17576
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17577
      ;;
17578
17579
    hpux9* | hpux10* | hpux11*)
17580
      lt_prog_compiler_wl_GCJ='-Wl,'
17581
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17582
      # not for PA HP-UX.
17583
      case $host_cpu in
17584
      hppa*64*|ia64*)
17585
	# +Z the default
17586
	;;
17587
      *)
17588
	lt_prog_compiler_pic_GCJ='+Z'
17589
	;;
17590
      esac
17591
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17592
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17593
      ;;
17594
17595
    irix5* | irix6* | nonstopux*)
17596
      lt_prog_compiler_wl_GCJ='-Wl,'
17597
      # PIC (with -KPIC) is the default.
17598
      lt_prog_compiler_static_GCJ='-non_shared'
17599
      ;;
17600
17601
    newsos6)
17602
      lt_prog_compiler_pic_GCJ='-KPIC'
17603
      lt_prog_compiler_static_GCJ='-Bstatic'
17604
      ;;
17605
17606
    linux* | k*bsd*-gnu)
17607
      case $cc_basename in
17608
      icc* | ecc*)
17609
	lt_prog_compiler_wl_GCJ='-Wl,'
17610
	lt_prog_compiler_pic_GCJ='-KPIC'
17611
	lt_prog_compiler_static_GCJ='-static'
17612
        ;;
17613
      pgcc* | pgf77* | pgf90* | pgf95*)
17614
        # Portland Group compilers (*not* the Pentium gcc compiler,
17615
	# which looks to be a dead project)
17616
	lt_prog_compiler_wl_GCJ='-Wl,'
17617
	lt_prog_compiler_pic_GCJ='-fpic'
17618
	lt_prog_compiler_static_GCJ='-Bstatic'
17619
        ;;
17620
      ccc*)
17621
        lt_prog_compiler_wl_GCJ='-Wl,'
17622
        # All Alpha code is PIC.
17623
        lt_prog_compiler_static_GCJ='-non_shared'
17624
        ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17625
      *)
17626
        case `$CC -V 2>&1 | sed 5q` in
17627
	*Sun\ C*)
17628
	  # Sun C 5.9
17629
	  lt_prog_compiler_pic_GCJ='-KPIC'
17630
	  lt_prog_compiler_static_GCJ='-Bstatic'
17631
	  lt_prog_compiler_wl_GCJ='-Wl,'
17632
	  ;;
17633
	*Sun\ F*)
17634
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17635
	  lt_prog_compiler_pic_GCJ='-KPIC'
17636
	  lt_prog_compiler_static_GCJ='-Bstatic'
17637
	  lt_prog_compiler_wl_GCJ=''
17638
	  ;;
17639
	esac
17640
	;;
1 by Sebastien Bacher
Import upstream version 0.7.1
17641
      esac
17642
      ;;
17643
17644
    osf3* | osf4* | osf5*)
17645
      lt_prog_compiler_wl_GCJ='-Wl,'
17646
      # All OSF/1 code is PIC.
17647
      lt_prog_compiler_static_GCJ='-non_shared'
17648
      ;;
17649
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17650
    rdos*)
17651
      lt_prog_compiler_static_GCJ='-non_shared'
17652
      ;;
17653
1 by Sebastien Bacher
Import upstream version 0.7.1
17654
    solaris*)
17655
      lt_prog_compiler_pic_GCJ='-KPIC'
17656
      lt_prog_compiler_static_GCJ='-Bstatic'
17657
      case $cc_basename in
17658
      f77* | f90* | f95*)
17659
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17660
      *)
17661
	lt_prog_compiler_wl_GCJ='-Wl,';;
17662
      esac
17663
      ;;
17664
17665
    sunos4*)
17666
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17667
      lt_prog_compiler_pic_GCJ='-PIC'
17668
      lt_prog_compiler_static_GCJ='-Bstatic'
17669
      ;;
17670
17671
    sysv4 | sysv4.2uw2* | sysv4.3*)
17672
      lt_prog_compiler_wl_GCJ='-Wl,'
17673
      lt_prog_compiler_pic_GCJ='-KPIC'
17674
      lt_prog_compiler_static_GCJ='-Bstatic'
17675
      ;;
17676
17677
    sysv4*MP*)
17678
      if test -d /usr/nec ;then
17679
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17680
	lt_prog_compiler_static_GCJ='-Bstatic'
17681
      fi
17682
      ;;
17683
17684
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17685
      lt_prog_compiler_wl_GCJ='-Wl,'
17686
      lt_prog_compiler_pic_GCJ='-KPIC'
17687
      lt_prog_compiler_static_GCJ='-Bstatic'
17688
      ;;
17689
17690
    unicos*)
17691
      lt_prog_compiler_wl_GCJ='-Wl,'
17692
      lt_prog_compiler_can_build_shared_GCJ=no
17693
      ;;
17694
17695
    uts4*)
17696
      lt_prog_compiler_pic_GCJ='-pic'
17697
      lt_prog_compiler_static_GCJ='-Bstatic'
17698
      ;;
17699
17700
    *)
17701
      lt_prog_compiler_can_build_shared_GCJ=no
17702
      ;;
17703
    esac
17704
  fi
17705
17706
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17707
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17708
17709
#
17710
# Check to make sure the PIC flag actually works.
17711
#
17712
if test -n "$lt_prog_compiler_pic_GCJ"; then
17713
17714
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17715
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17716
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17717
  echo $ECHO_N "(cached) $ECHO_C" >&6
17718
else
17719
  lt_prog_compiler_pic_works_GCJ=no
17720
  ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17721
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
17722
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17723
   # Insert the option either (1) after the last *FLAGS variable, or
17724
   # (2) before a word containing "conftest.", or (3) at the end.
17725
   # Note that $ac_compile itself does not contain backslashes and begins
17726
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17727
   # The option is referenced via a variable to avoid confusing sed.
17728
   lt_compile=`echo "$ac_compile" | $SED \
17729
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17730
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17731
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17732
   (eval echo "\"\$as_me:17741: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
17733
   (eval "$lt_compile" 2>conftest.err)
17734
   ac_status=$?
17735
   cat conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17736
   echo "$as_me:17745: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
17737
   if (exit $ac_status) && test -s "$ac_outfile"; then
17738
     # The compiler can only warn and ignore the option if not recognized
17739
     # So say no if there are warnings other than the usual output.
17740
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17741
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17742
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17743
       lt_prog_compiler_pic_works_GCJ=yes
17744
     fi
17745
   fi
17746
   $rm conftest*
17747
17748
fi
17749
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17750
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17751
17752
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17753
    case $lt_prog_compiler_pic_GCJ in
17754
     "" | " "*) ;;
17755
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17756
     esac
17757
else
17758
    lt_prog_compiler_pic_GCJ=
17759
     lt_prog_compiler_can_build_shared_GCJ=no
17760
fi
17761
17762
fi
17763
case $host_os in
17764
  # For platforms which do not support PIC, -DPIC is meaningless:
17765
  *djgpp*)
17766
    lt_prog_compiler_pic_GCJ=
17767
    ;;
17768
  *)
17769
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17770
    ;;
17771
esac
17772
17773
#
17774
# Check to make sure the static flag actually works.
17775
#
17776
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17777
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17778
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17779
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17780
  echo $ECHO_N "(cached) $ECHO_C" >&6
17781
else
17782
  lt_prog_compiler_static_works_GCJ=no
17783
   save_LDFLAGS="$LDFLAGS"
17784
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17785
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
17786
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17787
     # The linker can only warn and ignore the option if not recognized
17788
     # So say no if there are warnings
17789
     if test -s conftest.err; then
17790
       # Append any errors to the config.log.
17791
       cat conftest.err 1>&5
17792
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17793
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17794
       if diff conftest.exp conftest.er2 >/dev/null; then
17795
         lt_prog_compiler_static_works_GCJ=yes
17796
       fi
17797
     else
17798
       lt_prog_compiler_static_works_GCJ=yes
17799
     fi
17800
   fi
17801
   $rm conftest*
17802
   LDFLAGS="$save_LDFLAGS"
17803
17804
fi
17805
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17806
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17807
17808
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17809
    :
17810
else
17811
    lt_prog_compiler_static_GCJ=
17812
fi
17813
17814
17815
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17816
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17817
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17818
  echo $ECHO_N "(cached) $ECHO_C" >&6
17819
else
17820
  lt_cv_prog_compiler_c_o_GCJ=no
17821
   $rm -r conftest 2>/dev/null
17822
   mkdir conftest
17823
   cd conftest
17824
   mkdir out
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17825
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
17826
17827
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17828
   # Insert the option either (1) after the last *FLAGS variable, or
17829
   # (2) before a word containing "conftest.", or (3) at the end.
17830
   # Note that $ac_compile itself does not contain backslashes and begins
17831
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17832
   lt_compile=`echo "$ac_compile" | $SED \
17833
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17834
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17835
   -e 's:$: $lt_compiler_flag:'`
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17836
   (eval echo "\"\$as_me:17845: $lt_compile\"" >&5)
1 by Sebastien Bacher
Import upstream version 0.7.1
17837
   (eval "$lt_compile" 2>out/conftest.err)
17838
   ac_status=$?
17839
   cat out/conftest.err >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
17840
   echo "$as_me:17849: \$? = $ac_status" >&5
1 by Sebastien Bacher
Import upstream version 0.7.1
17841
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17842
   then
17843
     # The compiler can only warn and ignore the option if not recognized
17844
     # So say no if there are warnings
17845
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17846
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17847
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17848
       lt_cv_prog_compiler_c_o_GCJ=yes
17849
     fi
17850
   fi
17851
   chmod u+w . 2>&5
17852
   $rm conftest*
17853
   # SGI C++ compiler will create directory out/ii_files/ for
17854
   # template instantiation
17855
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17856
   $rm out/* && rmdir out
17857
   cd ..
17858
   rmdir conftest
17859
   $rm conftest*
17860
17861
fi
17862
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17863
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17864
17865
17866
hard_links="nottested"
17867
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17868
  # do not overwrite the value of need_locks provided by the user
17869
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17870
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17871
  hard_links=yes
17872
  $rm conftest*
17873
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17874
  touch conftest.a
17875
  ln conftest.a conftest.b 2>&5 || hard_links=no
17876
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17877
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17878
echo "${ECHO_T}$hard_links" >&6; }
17879
  if test "$hard_links" = no; then
17880
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17881
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17882
    need_locks=warn
17883
  fi
17884
else
17885
  need_locks=no
17886
fi
17887
17888
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17889
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17890
17891
  runpath_var=
17892
  allow_undefined_flag_GCJ=
17893
  enable_shared_with_static_runtimes_GCJ=no
17894
  archive_cmds_GCJ=
17895
  archive_expsym_cmds_GCJ=
17896
  old_archive_From_new_cmds_GCJ=
17897
  old_archive_from_expsyms_cmds_GCJ=
17898
  export_dynamic_flag_spec_GCJ=
17899
  whole_archive_flag_spec_GCJ=
17900
  thread_safe_flag_spec_GCJ=
17901
  hardcode_libdir_flag_spec_GCJ=
17902
  hardcode_libdir_flag_spec_ld_GCJ=
17903
  hardcode_libdir_separator_GCJ=
17904
  hardcode_direct_GCJ=no
17905
  hardcode_minus_L_GCJ=no
17906
  hardcode_shlibpath_var_GCJ=unsupported
17907
  link_all_deplibs_GCJ=unknown
17908
  hardcode_automatic_GCJ=no
17909
  module_cmds_GCJ=
17910
  module_expsym_cmds_GCJ=
17911
  always_export_symbols_GCJ=no
17912
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17913
  # include_expsyms should be a list of space-separated symbols to be *always*
17914
  # included in the symbol list
17915
  include_expsyms_GCJ=
17916
  # exclude_expsyms can be an extended regexp of symbols to exclude
17917
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17918
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17919
  # as well as any symbol that contains `d'.
17920
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17921
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17922
  # platforms (ab)use it in PIC code, but their linkers get confused if
17923
  # the symbol is explicitly referenced.  Since portable code cannot
17924
  # rely on this symbol name, it's probably fine to never include it in
17925
  # preloaded symbol tables.
17926
  extract_expsyms_cmds=
17927
  # Just being paranoid about ensuring that cc_basename is set.
17928
  for cc_temp in $compiler""; do
17929
  case $cc_temp in
17930
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17931
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17932
    \-*) ;;
17933
    *) break;;
17934
  esac
17935
done
17936
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17937
17938
  case $host_os in
17939
  cygwin* | mingw* | pw32*)
17940
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17941
    # When not using gcc, we currently assume that we are using
17942
    # Microsoft Visual C++.
17943
    if test "$GCC" != yes; then
17944
      with_gnu_ld=no
17945
    fi
17946
    ;;
17947
  interix*)
17948
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17949
    with_gnu_ld=yes
17950
    ;;
17951
  openbsd*)
17952
    with_gnu_ld=no
17953
    ;;
17954
  esac
17955
17956
  ld_shlibs_GCJ=yes
17957
  if test "$with_gnu_ld" = yes; then
17958
    # If archive_cmds runs LD, not CC, wlarc should be empty
17959
    wlarc='${wl}'
17960
17961
    # Set some defaults for GNU ld with shared library support. These
17962
    # are reset later if shared libraries are not supported. Putting them
17963
    # here allows them to be overridden if necessary.
17964
    runpath_var=LD_RUN_PATH
17965
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17966
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17967
    # ancient GNU ld didn't support --whole-archive et. al.
17968
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17969
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17970
      else
17971
  	whole_archive_flag_spec_GCJ=
17972
    fi
17973
    supports_anon_versioning=no
17974
    case `$LD -v 2>/dev/null` in
17975
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17976
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17977
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17978
      *\ 2.11.*) ;; # other 2.11 versions
17979
      *) supports_anon_versioning=yes ;;
17980
    esac
17981
17982
    # See if GNU ld supports shared libraries.
17983
    case $host_os in
17984
    aix3* | aix4* | aix5*)
17985
      # On AIX/PPC, the GNU linker is very broken
17986
      if test "$host_cpu" != ia64; then
17987
	ld_shlibs_GCJ=no
17988
	cat <<EOF 1>&2
17989
17990
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17991
*** to be unable to reliably create shared libraries on AIX.
17992
*** Therefore, libtool is disabling shared libraries support.  If you
17993
*** really care for shared libraries, you may want to modify your PATH
17994
*** so that a non-GNU linker is found, and then restart.
17995
17996
EOF
17997
      fi
17998
      ;;
17999
18000
    amigaos*)
18001
      archive_cmds_GCJ='$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)'
18002
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18003
      hardcode_minus_L_GCJ=yes
18004
18005
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18006
      # that the semantics of dynamic libraries on AmigaOS, at least up
18007
      # to version 4, is to share data among multiple programs linked
18008
      # with the same dynamic library.  Since this doesn't match the
18009
      # behavior of shared libraries on other platforms, we can't use
18010
      # them.
18011
      ld_shlibs_GCJ=no
18012
      ;;
18013
18014
    beos*)
18015
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18016
	allow_undefined_flag_GCJ=unsupported
18017
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18018
	# support --undefined.  This deserves some investigation.  FIXME
18019
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18020
      else
18021
	ld_shlibs_GCJ=no
18022
      fi
18023
      ;;
18024
18025
    cygwin* | mingw* | pw32*)
18026
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18027
      # as there is no search path for DLLs.
18028
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18029
      allow_undefined_flag_GCJ=unsupported
18030
      always_export_symbols_GCJ=no
18031
      enable_shared_with_static_runtimes_GCJ=yes
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18032
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1 by Sebastien Bacher
Import upstream version 0.7.1
18033
18034
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18035
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18036
	# If the export-symbols file already is a .def file (1st line
18037
	# is EXPORTS), use it as is; otherwise, prepend...
18038
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18039
	  cp $export_symbols $output_objdir/$soname.def;
18040
	else
18041
	  echo EXPORTS > $output_objdir/$soname.def;
18042
	  cat $export_symbols >> $output_objdir/$soname.def;
18043
	fi~
18044
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18045
      else
18046
	ld_shlibs_GCJ=no
18047
      fi
18048
      ;;
18049
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18050
    interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
18051
      hardcode_direct_GCJ=no
18052
      hardcode_shlibpath_var_GCJ=no
18053
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18054
      export_dynamic_flag_spec_GCJ='${wl}-E'
18055
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18056
      # Instead, shared libraries are loaded at an image base (0x10000000 by
18057
      # default) and relocated if they conflict, which is a slow very memory
18058
      # consuming and fragmenting process.  To avoid this, we pick a random,
18059
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18060
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18061
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18062
      archive_expsym_cmds_GCJ='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'
18063
      ;;
18064
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18065
    gnu* | linux* | k*bsd*-gnu)
1 by Sebastien Bacher
Import upstream version 0.7.1
18066
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18067
	tmp_addflag=
18068
	case $cc_basename,$host_cpu in
18069
	pgcc*)				# Portland Group C compiler
18070
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18071
	  tmp_addflag=' $pic_flag'
18072
	  ;;
18073
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18074
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18075
	  tmp_addflag=' $pic_flag -Mnomain' ;;
18076
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18077
	  tmp_addflag=' -i_dynamic' ;;
18078
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18079
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18080
	ifc* | ifort*)			# Intel Fortran compiler
18081
	  tmp_addflag=' -nofor_main' ;;
18082
	esac
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18083
	case `$CC -V 2>&1 | sed 5q` in
18084
	*Sun\ C*)			# Sun C 5.9
18085
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18086
	  tmp_sharedflag='-G' ;;
18087
	*Sun\ F*)			# Sun Fortran 8.3
18088
	  tmp_sharedflag='-G' ;;
18089
	*)
18090
	  tmp_sharedflag='-shared' ;;
18091
	esac
18092
	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1 by Sebastien Bacher
Import upstream version 0.7.1
18093
18094
	if test $supports_anon_versioning = yes; then
18095
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18096
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18097
  $echo "local: *; };" >> $output_objdir/$libname.ver~
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18098
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1 by Sebastien Bacher
Import upstream version 0.7.1
18099
	fi
18100
	link_all_deplibs_GCJ=no
18101
      else
18102
	ld_shlibs_GCJ=no
18103
      fi
18104
      ;;
18105
18106
    netbsd* | netbsdelf*-gnu)
18107
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18108
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18109
	wlarc=
18110
      else
18111
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18112
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18113
      fi
18114
      ;;
18115
18116
    solaris*)
18117
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18118
	ld_shlibs_GCJ=no
18119
	cat <<EOF 1>&2
18120
18121
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18122
*** create shared libraries on Solaris systems.  Therefore, libtool
18123
*** is disabling shared libraries support.  We urge you to upgrade GNU
18124
*** binutils to release 2.9.1 or newer.  Another option is to modify
18125
*** your PATH or compiler configuration so that the native linker is
18126
*** used, and then restart.
18127
18128
EOF
18129
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18130
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18131
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18132
      else
18133
	ld_shlibs_GCJ=no
18134
      fi
18135
      ;;
18136
18137
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18138
      case `$LD -v 2>&1` in
18139
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18140
	ld_shlibs_GCJ=no
18141
	cat <<_LT_EOF 1>&2
18142
18143
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18144
*** reliably create shared libraries on SCO systems.  Therefore, libtool
18145
*** is disabling shared libraries support.  We urge you to upgrade GNU
18146
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18147
*** your PATH or compiler configuration so that the native linker is
18148
*** used, and then restart.
18149
18150
_LT_EOF
18151
	;;
18152
	*)
18153
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18154
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18155
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18156
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18157
	  else
18158
	    ld_shlibs_GCJ=no
18159
	  fi
18160
	;;
18161
      esac
18162
      ;;
18163
18164
    sunos4*)
18165
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18166
      wlarc=
18167
      hardcode_direct_GCJ=yes
18168
      hardcode_shlibpath_var_GCJ=no
18169
      ;;
18170
18171
    *)
18172
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18173
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18174
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18175
      else
18176
	ld_shlibs_GCJ=no
18177
      fi
18178
      ;;
18179
    esac
18180
18181
    if test "$ld_shlibs_GCJ" = no; then
18182
      runpath_var=
18183
      hardcode_libdir_flag_spec_GCJ=
18184
      export_dynamic_flag_spec_GCJ=
18185
      whole_archive_flag_spec_GCJ=
18186
    fi
18187
  else
18188
    # PORTME fill in a description of your system's linker (not GNU ld)
18189
    case $host_os in
18190
    aix3*)
18191
      allow_undefined_flag_GCJ=unsupported
18192
      always_export_symbols_GCJ=yes
18193
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18194
      # Note: this linker hardcodes the directories in LIBPATH if there
18195
      # are no directories specified by -L.
18196
      hardcode_minus_L_GCJ=yes
18197
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18198
	# Neither direct hardcoding nor static linking is supported with a
18199
	# broken collect2.
18200
	hardcode_direct_GCJ=unsupported
18201
      fi
18202
      ;;
18203
18204
    aix4* | aix5*)
18205
      if test "$host_cpu" = ia64; then
18206
	# On IA64, the linker does run time linking by default, so we don't
18207
	# have to do anything special.
18208
	aix_use_runtimelinking=no
18209
	exp_sym_flag='-Bexport'
18210
	no_entry_flag=""
18211
      else
18212
	# If we're using GNU nm, then we don't want the "-C" option.
18213
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18214
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18215
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18216
	else
18217
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18218
	fi
18219
	aix_use_runtimelinking=no
18220
18221
	# Test if we are trying to use run time linking or normal
18222
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18223
	# need to do runtime linking.
18224
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18225
	  for ld_flag in $LDFLAGS; do
18226
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18227
  	    aix_use_runtimelinking=yes
18228
  	    break
18229
  	  fi
18230
	  done
18231
	  ;;
18232
	esac
18233
18234
	exp_sym_flag='-bexport'
18235
	no_entry_flag='-bnoentry'
18236
      fi
18237
18238
      # When large executables or shared objects are built, AIX ld can
18239
      # have problems creating the table of contents.  If linking a library
18240
      # or program results in "error TOC overflow" add -mminimal-toc to
18241
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18242
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18243
18244
      archive_cmds_GCJ=''
18245
      hardcode_direct_GCJ=yes
18246
      hardcode_libdir_separator_GCJ=':'
18247
      link_all_deplibs_GCJ=yes
18248
18249
      if test "$GCC" = yes; then
18250
	case $host_os in aix4.[012]|aix4.[012].*)
18251
	# We only want to do this on AIX 4.2 and lower, the check
18252
	# below for broken collect2 doesn't work under 4.3+
18253
	  collect2name=`${CC} -print-prog-name=collect2`
18254
	  if test -f "$collect2name" && \
18255
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18256
	  then
18257
  	  # We have reworked collect2
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18258
  	  :
1 by Sebastien Bacher
Import upstream version 0.7.1
18259
	  else
18260
  	  # We have old collect2
18261
  	  hardcode_direct_GCJ=unsupported
18262
  	  # It fails to find uninstalled libraries when the uninstalled
18263
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18264
  	  # to unsupported forces relinking
18265
  	  hardcode_minus_L_GCJ=yes
18266
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18267
  	  hardcode_libdir_separator_GCJ=
18268
	  fi
18269
	  ;;
18270
	esac
18271
	shared_flag='-shared'
18272
	if test "$aix_use_runtimelinking" = yes; then
18273
	  shared_flag="$shared_flag "'${wl}-G'
18274
	fi
18275
      else
18276
	# not using gcc
18277
	if test "$host_cpu" = ia64; then
18278
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18279
  	# chokes on -Wl,-G. The following line is correct:
18280
	  shared_flag='-G'
18281
	else
18282
	  if test "$aix_use_runtimelinking" = yes; then
18283
	    shared_flag='${wl}-G'
18284
	  else
18285
	    shared_flag='${wl}-bM:SRE'
18286
	  fi
18287
	fi
18288
      fi
18289
18290
      # It seems that -bexpall does not export symbols beginning with
18291
      # underscore (_), so it is better to generate a list of symbols to export.
18292
      always_export_symbols_GCJ=yes
18293
      if test "$aix_use_runtimelinking" = yes; then
18294
	# Warning - without using the other runtime loading flags (-brtl),
18295
	# -berok will link without error, but may produce a broken library.
18296
	allow_undefined_flag_GCJ='-berok'
18297
       # Determine the default libpath from the value encoded in an empty executable.
18298
       cat >conftest.$ac_ext <<_ACEOF
18299
/* confdefs.h.  */
18300
_ACEOF
18301
cat confdefs.h >>conftest.$ac_ext
18302
cat >>conftest.$ac_ext <<_ACEOF
18303
/* end confdefs.h.  */
18304
18305
int
18306
main ()
18307
{
18308
18309
  ;
18310
  return 0;
18311
}
18312
_ACEOF
18313
rm -f conftest.$ac_objext conftest$ac_exeext
18314
if { (ac_try="$ac_link"
18315
case "(($ac_try" in
18316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317
  *) ac_try_echo=$ac_try;;
18318
esac
18319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320
  (eval "$ac_link") 2>conftest.er1
18321
  ac_status=$?
18322
  grep -v '^ *+' conftest.er1 >conftest.err
18323
  rm -f conftest.er1
18324
  cat conftest.err >&5
18325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18326
  (exit $ac_status); } && {
18327
	 test -z "$ac_c_werror_flag" ||
18328
	 test ! -s conftest.err
18329
       } && test -s conftest$ac_exeext &&
18330
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
18331
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18332
lt_aix_libpath_sed='
18333
    /Import File Strings/,/^$/ {
18334
	/^0/ {
18335
	    s/^0  *\(.*\)$/\1/
18336
	    p
18337
	}
18338
    }'
18339
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Sebastien Bacher
Import upstream version 0.7.1
18340
# Check for a 64-bit object if we didn't find anything.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18341
if test -z "$aix_libpath"; then
18342
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18343
fi
1 by Sebastien Bacher
Import upstream version 0.7.1
18344
else
18345
  echo "$as_me: failed program was:" >&5
18346
sed 's/^/| /' conftest.$ac_ext >&5
18347
18348
18349
fi
18350
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18351
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
18352
      conftest$ac_exeext conftest.$ac_ext
18353
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18354
18355
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18356
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18357
       else
18358
	if test "$host_cpu" = ia64; then
18359
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18360
	  allow_undefined_flag_GCJ="-z nodefs"
18361
	  archive_expsym_cmds_GCJ="\$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"
18362
	else
18363
	 # Determine the default libpath from the value encoded in an empty executable.
18364
	 cat >conftest.$ac_ext <<_ACEOF
18365
/* confdefs.h.  */
18366
_ACEOF
18367
cat confdefs.h >>conftest.$ac_ext
18368
cat >>conftest.$ac_ext <<_ACEOF
18369
/* end confdefs.h.  */
18370
18371
int
18372
main ()
18373
{
18374
18375
  ;
18376
  return 0;
18377
}
18378
_ACEOF
18379
rm -f conftest.$ac_objext conftest$ac_exeext
18380
if { (ac_try="$ac_link"
18381
case "(($ac_try" in
18382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383
  *) ac_try_echo=$ac_try;;
18384
esac
18385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386
  (eval "$ac_link") 2>conftest.er1
18387
  ac_status=$?
18388
  grep -v '^ *+' conftest.er1 >conftest.err
18389
  rm -f conftest.er1
18390
  cat conftest.err >&5
18391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18392
  (exit $ac_status); } && {
18393
	 test -z "$ac_c_werror_flag" ||
18394
	 test ! -s conftest.err
18395
       } && test -s conftest$ac_exeext &&
18396
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
18397
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18398
lt_aix_libpath_sed='
18399
    /Import File Strings/,/^$/ {
18400
	/^0/ {
18401
	    s/^0  *\(.*\)$/\1/
18402
	    p
18403
	}
18404
    }'
18405
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Sebastien Bacher
Import upstream version 0.7.1
18406
# Check for a 64-bit object if we didn't find anything.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18407
if test -z "$aix_libpath"; then
18408
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18409
fi
1 by Sebastien Bacher
Import upstream version 0.7.1
18410
else
18411
  echo "$as_me: failed program was:" >&5
18412
sed 's/^/| /' conftest.$ac_ext >&5
18413
18414
18415
fi
18416
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18417
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
18418
      conftest$ac_exeext conftest.$ac_ext
18419
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18420
18421
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18422
	  # Warning - without using the other run time loading flags,
18423
	  # -berok will link without error, but may produce a broken library.
18424
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18425
	  allow_undefined_flag_GCJ=' ${wl}-berok'
18426
	  # Exported symbols can be pulled into shared objects from archives
18427
	  whole_archive_flag_spec_GCJ='$convenience'
18428
	  archive_cmds_need_lc_GCJ=yes
18429
	  # This is similar to how AIX traditionally builds its shared libraries.
18430
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18431
	fi
18432
      fi
18433
      ;;
18434
18435
    amigaos*)
18436
      archive_cmds_GCJ='$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)'
18437
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18438
      hardcode_minus_L_GCJ=yes
18439
      # see comment about different semantics on the GNU ld section
18440
      ld_shlibs_GCJ=no
18441
      ;;
18442
18443
    bsdi[45]*)
18444
      export_dynamic_flag_spec_GCJ=-rdynamic
18445
      ;;
18446
18447
    cygwin* | mingw* | pw32*)
18448
      # When not using gcc, we currently assume that we are using
18449
      # Microsoft Visual C++.
18450
      # hardcode_libdir_flag_spec is actually meaningless, as there is
18451
      # no search path for DLLs.
18452
      hardcode_libdir_flag_spec_GCJ=' '
18453
      allow_undefined_flag_GCJ=unsupported
18454
      # Tell ltmain to make .lib files, not .a files.
18455
      libext=lib
18456
      # Tell ltmain to make .dll files, not .so files.
18457
      shrext_cmds=".dll"
18458
      # FIXME: Setting linknames here is a bad hack.
18459
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18460
      # The linker will automatically build a .lib file if we build a DLL.
18461
      old_archive_From_new_cmds_GCJ='true'
18462
      # FIXME: Should let the user specify the lib program.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18463
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
1 by Sebastien Bacher
Import upstream version 0.7.1
18464
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18465
      enable_shared_with_static_runtimes_GCJ=yes
18466
      ;;
18467
18468
    darwin* | rhapsody*)
18469
      case $host_os in
18470
        rhapsody* | darwin1.[012])
18471
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18472
         ;;
18473
       *) # Darwin 1.3 on
18474
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18475
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18476
         else
18477
           case ${MACOSX_DEPLOYMENT_TARGET} in
18478
             10.[012])
18479
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18480
               ;;
18481
             10.*)
18482
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18483
               ;;
18484
           esac
18485
         fi
18486
         ;;
18487
      esac
18488
      archive_cmds_need_lc_GCJ=no
18489
      hardcode_direct_GCJ=no
18490
      hardcode_automatic_GCJ=yes
18491
      hardcode_shlibpath_var_GCJ=unsupported
18492
      whole_archive_flag_spec_GCJ=''
18493
      link_all_deplibs_GCJ=yes
18494
    if test "$GCC" = yes ; then
18495
    	output_verbose_link_cmd='echo'
18496
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18497
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18498
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18499
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18500
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18501
    else
18502
      case $cc_basename in
18503
        xlc*)
18504
         output_verbose_link_cmd='echo'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18505
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1 by Sebastien Bacher
Import upstream version 0.7.1
18506
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18507
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18508
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1 by Sebastien Bacher
Import upstream version 0.7.1
18509
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18510
          ;;
18511
       *)
18512
         ld_shlibs_GCJ=no
18513
          ;;
18514
      esac
18515
    fi
18516
      ;;
18517
18518
    dgux*)
18519
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18520
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18521
      hardcode_shlibpath_var_GCJ=no
18522
      ;;
18523
18524
    freebsd1*)
18525
      ld_shlibs_GCJ=no
18526
      ;;
18527
18528
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18529
    # support.  Future versions do this automatically, but an explicit c++rt0.o
18530
    # does not break anything, and helps significantly (at the cost of a little
18531
    # extra space).
18532
    freebsd2.2*)
18533
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18534
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18535
      hardcode_direct_GCJ=yes
18536
      hardcode_shlibpath_var_GCJ=no
18537
      ;;
18538
18539
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18540
    freebsd2*)
18541
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18542
      hardcode_direct_GCJ=yes
18543
      hardcode_minus_L_GCJ=yes
18544
      hardcode_shlibpath_var_GCJ=no
18545
      ;;
18546
18547
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18548
    freebsd* | dragonfly*)
18549
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18550
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18551
      hardcode_direct_GCJ=yes
18552
      hardcode_shlibpath_var_GCJ=no
18553
      ;;
18554
18555
    hpux9*)
18556
      if test "$GCC" = yes; then
18557
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18558
      else
18559
	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18560
      fi
18561
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18562
      hardcode_libdir_separator_GCJ=:
18563
      hardcode_direct_GCJ=yes
18564
18565
      # hardcode_minus_L: Not really in the search PATH,
18566
      # but as the default location of the library.
18567
      hardcode_minus_L_GCJ=yes
18568
      export_dynamic_flag_spec_GCJ='${wl}-E'
18569
      ;;
18570
18571
    hpux10*)
18572
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18573
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18574
      else
18575
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18576
      fi
18577
      if test "$with_gnu_ld" = no; then
18578
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18579
	hardcode_libdir_separator_GCJ=:
18580
18581
	hardcode_direct_GCJ=yes
18582
	export_dynamic_flag_spec_GCJ='${wl}-E'
18583
18584
	# hardcode_minus_L: Not really in the search PATH,
18585
	# but as the default location of the library.
18586
	hardcode_minus_L_GCJ=yes
18587
      fi
18588
      ;;
18589
18590
    hpux11*)
18591
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18592
	case $host_cpu in
18593
	hppa*64*)
18594
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18595
	  ;;
18596
	ia64*)
18597
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18598
	  ;;
18599
	*)
18600
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18601
	  ;;
18602
	esac
18603
      else
18604
	case $host_cpu in
18605
	hppa*64*)
18606
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18607
	  ;;
18608
	ia64*)
18609
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18610
	  ;;
18611
	*)
18612
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18613
	  ;;
18614
	esac
18615
      fi
18616
      if test "$with_gnu_ld" = no; then
18617
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18618
	hardcode_libdir_separator_GCJ=:
18619
18620
	case $host_cpu in
18621
	hppa*64*|ia64*)
18622
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18623
	  hardcode_direct_GCJ=no
18624
	  hardcode_shlibpath_var_GCJ=no
18625
	  ;;
18626
	*)
18627
	  hardcode_direct_GCJ=yes
18628
	  export_dynamic_flag_spec_GCJ='${wl}-E'
18629
18630
	  # hardcode_minus_L: Not really in the search PATH,
18631
	  # but as the default location of the library.
18632
	  hardcode_minus_L_GCJ=yes
18633
	  ;;
18634
	esac
18635
      fi
18636
      ;;
18637
18638
    irix5* | irix6* | nonstopux*)
18639
      if test "$GCC" = yes; then
18640
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18641
      else
18642
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18643
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18644
      fi
18645
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18646
      hardcode_libdir_separator_GCJ=:
18647
      link_all_deplibs_GCJ=yes
18648
      ;;
18649
18650
    netbsd* | netbsdelf*-gnu)
18651
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18652
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18653
      else
18654
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18655
      fi
18656
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18657
      hardcode_direct_GCJ=yes
18658
      hardcode_shlibpath_var_GCJ=no
18659
      ;;
18660
18661
    newsos6)
18662
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18663
      hardcode_direct_GCJ=yes
18664
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18665
      hardcode_libdir_separator_GCJ=:
18666
      hardcode_shlibpath_var_GCJ=no
18667
      ;;
18668
18669
    openbsd*)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18670
      if test -f /usr/libexec/ld.so; then
18671
	hardcode_direct_GCJ=yes
18672
	hardcode_shlibpath_var_GCJ=no
18673
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18674
	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18675
	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18676
	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18677
	  export_dynamic_flag_spec_GCJ='${wl}-E'
18678
	else
18679
	  case $host_os in
18680
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18681
	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18682
	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18683
	     ;;
18684
	   *)
18685
	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18686
	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18687
	     ;;
18688
	  esac
18689
        fi
1 by Sebastien Bacher
Import upstream version 0.7.1
18690
      else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18691
	ld_shlibs_GCJ=no
1 by Sebastien Bacher
Import upstream version 0.7.1
18692
      fi
18693
      ;;
18694
18695
    os2*)
18696
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18697
      hardcode_minus_L_GCJ=yes
18698
      allow_undefined_flag_GCJ=unsupported
18699
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18700
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18701
      ;;
18702
18703
    osf3*)
18704
      if test "$GCC" = yes; then
18705
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18706
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18707
      else
18708
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18709
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18710
      fi
18711
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18712
      hardcode_libdir_separator_GCJ=:
18713
      ;;
18714
18715
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18716
      if test "$GCC" = yes; then
18717
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18718
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18719
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18720
      else
18721
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18722
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18723
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18724
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18725
18726
	# Both c and cxx compiler support -rpath directly
18727
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18728
      fi
18729
      hardcode_libdir_separator_GCJ=:
18730
      ;;
18731
18732
    solaris*)
18733
      no_undefined_flag_GCJ=' -z text'
18734
      if test "$GCC" = yes; then
18735
	wlarc='${wl}'
18736
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18737
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18738
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18739
      else
18740
	wlarc=''
18741
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18742
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18743
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18744
      fi
18745
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18746
      hardcode_shlibpath_var_GCJ=no
18747
      case $host_os in
18748
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18749
      *)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18750
	# The compiler driver will combine and reorder linker options,
18751
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18752
	# but is careful enough not to reorder.
1 by Sebastien Bacher
Import upstream version 0.7.1
18753
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18754
	if test "$GCC" = yes; then
18755
	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18756
	else
18757
	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18758
	fi
18759
	;;
1 by Sebastien Bacher
Import upstream version 0.7.1
18760
      esac
18761
      link_all_deplibs_GCJ=yes
18762
      ;;
18763
18764
    sunos4*)
18765
      if test "x$host_vendor" = xsequent; then
18766
	# Use $CC to link under sequent, because it throws in some extra .o
18767
	# files that make .init and .fini sections work.
18768
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18769
      else
18770
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18771
      fi
18772
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18773
      hardcode_direct_GCJ=yes
18774
      hardcode_minus_L_GCJ=yes
18775
      hardcode_shlibpath_var_GCJ=no
18776
      ;;
18777
18778
    sysv4)
18779
      case $host_vendor in
18780
	sni)
18781
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18782
	  hardcode_direct_GCJ=yes # is this really true???
18783
	;;
18784
	siemens)
18785
	  ## LD is ld it makes a PLAMLIB
18786
	  ## CC just makes a GrossModule.
18787
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18788
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18789
	  hardcode_direct_GCJ=no
18790
        ;;
18791
	motorola)
18792
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18793
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18794
	;;
18795
      esac
18796
      runpath_var='LD_RUN_PATH'
18797
      hardcode_shlibpath_var_GCJ=no
18798
      ;;
18799
18800
    sysv4.3*)
18801
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18802
      hardcode_shlibpath_var_GCJ=no
18803
      export_dynamic_flag_spec_GCJ='-Bexport'
18804
      ;;
18805
18806
    sysv4*MP*)
18807
      if test -d /usr/nec; then
18808
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18809
	hardcode_shlibpath_var_GCJ=no
18810
	runpath_var=LD_RUN_PATH
18811
	hardcode_runpath_var=yes
18812
	ld_shlibs_GCJ=yes
18813
      fi
18814
      ;;
18815
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18816
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
18817
      no_undefined_flag_GCJ='${wl}-z,text'
18818
      archive_cmds_need_lc_GCJ=no
18819
      hardcode_shlibpath_var_GCJ=no
18820
      runpath_var='LD_RUN_PATH'
18821
18822
      if test "$GCC" = yes; then
18823
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18824
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18825
      else
18826
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18827
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18828
      fi
18829
      ;;
18830
18831
    sysv5* | sco3.2v5* | sco5v6*)
18832
      # Note: We can NOT use -z defs as we might desire, because we do not
18833
      # link with -lc, and that would cause any symbols used from libc to
18834
      # always be unresolved, which means just about no library would
18835
      # ever link correctly.  If we're not using GNU ld we use -z text
18836
      # though, which does catch some bad symbols but isn't as heavy-handed
18837
      # as -z defs.
18838
      no_undefined_flag_GCJ='${wl}-z,text'
18839
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18840
      archive_cmds_need_lc_GCJ=no
18841
      hardcode_shlibpath_var_GCJ=no
18842
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18843
      hardcode_libdir_separator_GCJ=':'
18844
      link_all_deplibs_GCJ=yes
18845
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18846
      runpath_var='LD_RUN_PATH'
18847
18848
      if test "$GCC" = yes; then
18849
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18850
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18851
      else
18852
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18853
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18854
      fi
18855
      ;;
18856
18857
    uts4*)
18858
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18859
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18860
      hardcode_shlibpath_var_GCJ=no
18861
      ;;
18862
18863
    *)
18864
      ld_shlibs_GCJ=no
18865
      ;;
18866
    esac
18867
  fi
18868
18869
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18870
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18871
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18872
18873
#
18874
# Do we need to explicitly link libc?
18875
#
18876
case "x$archive_cmds_need_lc_GCJ" in
18877
x|xyes)
18878
  # Assume -lc should be added
18879
  archive_cmds_need_lc_GCJ=yes
18880
18881
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18882
    case $archive_cmds_GCJ in
18883
    *'~'*)
18884
      # FIXME: we may have to deal with multi-command sequences.
18885
      ;;
18886
    '$CC '*)
18887
      # Test whether the compiler implicitly links with -lc since on some
18888
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18889
      # to ld, don't add -lc before -lgcc.
18890
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18891
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18892
      $rm conftest*
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18893
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
18894
18895
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18896
  (eval $ac_compile) 2>&5
18897
  ac_status=$?
18898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899
  (exit $ac_status); } 2>conftest.err; then
18900
        soname=conftest
18901
        lib=conftest
18902
        libobjs=conftest.$ac_objext
18903
        deplibs=
18904
        wl=$lt_prog_compiler_wl_GCJ
18905
	pic_flag=$lt_prog_compiler_pic_GCJ
18906
        compiler_flags=-v
18907
        linker_flags=-v
18908
        verstring=
18909
        output_objdir=.
18910
        libname=conftest
18911
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18912
        allow_undefined_flag_GCJ=
18913
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18914
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18915
  ac_status=$?
18916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917
  (exit $ac_status); }
18918
        then
18919
	  archive_cmds_need_lc_GCJ=no
18920
        else
18921
	  archive_cmds_need_lc_GCJ=yes
18922
        fi
18923
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18924
      else
18925
        cat conftest.err 1>&5
18926
      fi
18927
      $rm conftest*
18928
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18929
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18930
      ;;
18931
    esac
18932
  fi
18933
  ;;
18934
esac
18935
18936
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18937
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18938
library_names_spec=
18939
libname_spec='lib$name'
18940
soname_spec=
18941
shrext_cmds=".so"
18942
postinstall_cmds=
18943
postuninstall_cmds=
18944
finish_cmds=
18945
finish_eval=
18946
shlibpath_var=
18947
shlibpath_overrides_runpath=unknown
18948
version_type=none
18949
dynamic_linker="$host_os ld.so"
18950
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
18951
1 by Sebastien Bacher
Import upstream version 0.7.1
18952
need_lib_prefix=unknown
18953
hardcode_into_libs=no
18954
18955
# when you set need_version to no, make sure it does not cause -set_version
18956
# flags to be left without arguments
18957
need_version=unknown
18958
18959
case $host_os in
18960
aix3*)
18961
  version_type=linux
18962
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18963
  shlibpath_var=LIBPATH
18964
18965
  # AIX 3 has no versioning support, so we append a major version to the name.
18966
  soname_spec='${libname}${release}${shared_ext}$major'
18967
  ;;
18968
18969
aix4* | aix5*)
18970
  version_type=linux
18971
  need_lib_prefix=no
18972
  need_version=no
18973
  hardcode_into_libs=yes
18974
  if test "$host_cpu" = ia64; then
18975
    # AIX 5 supports IA64
18976
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18977
    shlibpath_var=LD_LIBRARY_PATH
18978
  else
18979
    # With GCC up to 2.95.x, collect2 would create an import file
18980
    # for dependence libraries.  The import file would start with
18981
    # the line `#! .'.  This would cause the generated library to
18982
    # depend on `.', always an invalid library.  This was fixed in
18983
    # development snapshots of GCC prior to 3.0.
18984
    case $host_os in
18985
      aix4 | aix4.[01] | aix4.[01].*)
18986
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18987
	   echo ' yes '
18988
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18989
	:
18990
      else
18991
	can_build_shared=no
18992
      fi
18993
      ;;
18994
    esac
18995
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18996
    # soname into executable. Probably we can add versioning support to
18997
    # collect2, so additional links can be useful in future.
18998
    if test "$aix_use_runtimelinking" = yes; then
18999
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19000
      # instead of lib<name>.a to let people know that these are not
19001
      # typical AIX shared libraries.
19002
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19003
    else
19004
      # We preserve .a as extension for shared libraries through AIX4.2
19005
      # and later when we are not doing run time linking.
19006
      library_names_spec='${libname}${release}.a $libname.a'
19007
      soname_spec='${libname}${release}${shared_ext}$major'
19008
    fi
19009
    shlibpath_var=LIBPATH
19010
  fi
19011
  ;;
19012
19013
amigaos*)
19014
  library_names_spec='$libname.ixlibrary $libname.a'
19015
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19016
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19017
  ;;
19018
19019
beos*)
19020
  library_names_spec='${libname}${shared_ext}'
19021
  dynamic_linker="$host_os ld.so"
19022
  shlibpath_var=LIBRARY_PATH
19023
  ;;
19024
19025
bsdi[45]*)
19026
  version_type=linux
19027
  need_version=no
19028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19029
  soname_spec='${libname}${release}${shared_ext}$major'
19030
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19031
  shlibpath_var=LD_LIBRARY_PATH
19032
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19033
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19034
  # the default ld.so.conf also contains /usr/contrib/lib and
19035
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19036
  # libtool to hard-code these into programs
19037
  ;;
19038
19039
cygwin* | mingw* | pw32*)
19040
  version_type=windows
19041
  shrext_cmds=".dll"
19042
  need_version=no
19043
  need_lib_prefix=no
19044
19045
  case $GCC,$host_os in
19046
  yes,cygwin* | yes,mingw* | yes,pw32*)
19047
    library_names_spec='$libname.dll.a'
19048
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19049
    postinstall_cmds='base_file=`basename \${file}`~
19050
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19051
      dldir=$destdir/`dirname \$dlpath`~
19052
      test -d \$dldir || mkdir -p \$dldir~
19053
      $install_prog $dir/$dlname \$dldir/$dlname~
19054
      chmod a+x \$dldir/$dlname'
19055
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19056
      dlpath=$dir/\$dldll~
19057
       $rm \$dlpath'
19058
    shlibpath_overrides_runpath=yes
19059
19060
    case $host_os in
19061
    cygwin*)
19062
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19063
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19064
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19065
      ;;
19066
    mingw*)
19067
      # MinGW DLLs use traditional 'lib' prefix
19068
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19069
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19070
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19071
        # It is most probably a Windows format PATH printed by
19072
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19073
        # path with ; separators, and with drive letters. We can handle the
19074
        # drive letters (cygwin fileutils understands them), so leave them,
19075
        # especially as we might pass files found there to a mingw objdump,
19076
        # which wouldn't understand a cygwinified path. Ahh.
19077
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19078
      else
19079
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19080
      fi
19081
      ;;
19082
    pw32*)
19083
      # pw32 DLLs use 'pw' prefix rather than 'lib'
19084
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19085
      ;;
19086
    esac
19087
    ;;
19088
19089
  *)
19090
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19091
    ;;
19092
  esac
19093
  dynamic_linker='Win32 ld.exe'
19094
  # FIXME: first we should search . and the directory the executable is in
19095
  shlibpath_var=PATH
19096
  ;;
19097
19098
darwin* | rhapsody*)
19099
  dynamic_linker="$host_os dyld"
19100
  version_type=darwin
19101
  need_lib_prefix=no
19102
  need_version=no
19103
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19104
  soname_spec='${libname}${release}${major}$shared_ext'
19105
  shlibpath_overrides_runpath=yes
19106
  shlibpath_var=DYLD_LIBRARY_PATH
19107
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.1 by Michael Vogt
Import upstream version 0.7.2
19108
1 by Sebastien Bacher
Import upstream version 0.7.1
19109
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19110
  ;;
19111
19112
dgux*)
19113
  version_type=linux
19114
  need_lib_prefix=no
19115
  need_version=no
19116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19117
  soname_spec='${libname}${release}${shared_ext}$major'
19118
  shlibpath_var=LD_LIBRARY_PATH
19119
  ;;
19120
19121
freebsd1*)
19122
  dynamic_linker=no
19123
  ;;
19124
19125
freebsd* | dragonfly*)
19126
  # DragonFly does not have aout.  When/if they implement a new
19127
  # versioning mechanism, adjust this.
19128
  if test -x /usr/bin/objformat; then
19129
    objformat=`/usr/bin/objformat`
19130
  else
19131
    case $host_os in
19132
    freebsd[123]*) objformat=aout ;;
19133
    *) objformat=elf ;;
19134
    esac
19135
  fi
19136
  version_type=freebsd-$objformat
19137
  case $version_type in
19138
    freebsd-elf*)
19139
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19140
      need_version=no
19141
      need_lib_prefix=no
19142
      ;;
19143
    freebsd-*)
19144
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19145
      need_version=yes
19146
      ;;
19147
  esac
19148
  shlibpath_var=LD_LIBRARY_PATH
19149
  case $host_os in
19150
  freebsd2*)
19151
    shlibpath_overrides_runpath=yes
19152
    ;;
19153
  freebsd3.[01]* | freebsdelf3.[01]*)
19154
    shlibpath_overrides_runpath=yes
19155
    hardcode_into_libs=yes
19156
    ;;
19157
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19158
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19159
    shlibpath_overrides_runpath=no
19160
    hardcode_into_libs=yes
19161
    ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
19162
  *) # from 4.6 on, and DragonFly
1 by Sebastien Bacher
Import upstream version 0.7.1
19163
    shlibpath_overrides_runpath=yes
19164
    hardcode_into_libs=yes
19165
    ;;
19166
  esac
19167
  ;;
19168
19169
gnu*)
19170
  version_type=linux
19171
  need_lib_prefix=no
19172
  need_version=no
19173
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19174
  soname_spec='${libname}${release}${shared_ext}$major'
19175
  shlibpath_var=LD_LIBRARY_PATH
19176
  hardcode_into_libs=yes
19177
  ;;
19178
19179
hpux9* | hpux10* | hpux11*)
19180
  # Give a soname corresponding to the major version so that dld.sl refuses to
19181
  # link against other versions.
19182
  version_type=sunos
19183
  need_lib_prefix=no
19184
  need_version=no
19185
  case $host_cpu in
19186
  ia64*)
19187
    shrext_cmds='.so'
19188
    hardcode_into_libs=yes
19189
    dynamic_linker="$host_os dld.so"
19190
    shlibpath_var=LD_LIBRARY_PATH
19191
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19192
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19193
    soname_spec='${libname}${release}${shared_ext}$major'
19194
    if test "X$HPUX_IA64_MODE" = X32; then
19195
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19196
    else
19197
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19198
    fi
19199
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19200
    ;;
19201
   hppa*64*)
19202
     shrext_cmds='.sl'
19203
     hardcode_into_libs=yes
19204
     dynamic_linker="$host_os dld.sl"
19205
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19206
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19207
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19208
     soname_spec='${libname}${release}${shared_ext}$major'
19209
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19210
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19211
     ;;
19212
   *)
19213
    shrext_cmds='.sl'
19214
    dynamic_linker="$host_os dld.sl"
19215
    shlibpath_var=SHLIB_PATH
19216
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19217
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19218
    soname_spec='${libname}${release}${shared_ext}$major'
19219
    ;;
19220
  esac
19221
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19222
  postinstall_cmds='chmod 555 $lib'
19223
  ;;
19224
1.1.1 by Michael Vogt
Import upstream version 0.7.2
19225
interix[3-9]*)
1 by Sebastien Bacher
Import upstream version 0.7.1
19226
  version_type=linux
19227
  need_lib_prefix=no
19228
  need_version=no
19229
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19230
  soname_spec='${libname}${release}${shared_ext}$major'
19231
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19232
  shlibpath_var=LD_LIBRARY_PATH
19233
  shlibpath_overrides_runpath=no
19234
  hardcode_into_libs=yes
19235
  ;;
19236
19237
irix5* | irix6* | nonstopux*)
19238
  case $host_os in
19239
    nonstopux*) version_type=nonstopux ;;
19240
    *)
19241
	if test "$lt_cv_prog_gnu_ld" = yes; then
19242
		version_type=linux
19243
	else
19244
		version_type=irix
19245
	fi ;;
19246
  esac
19247
  need_lib_prefix=no
19248
  need_version=no
19249
  soname_spec='${libname}${release}${shared_ext}$major'
19250
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19251
  case $host_os in
19252
  irix5* | nonstopux*)
19253
    libsuff= shlibsuff=
19254
    ;;
19255
  *)
19256
    case $LD in # libtool.m4 will add one of these switches to LD
19257
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19258
      libsuff= shlibsuff= libmagic=32-bit;;
19259
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19260
      libsuff=32 shlibsuff=N32 libmagic=N32;;
19261
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19262
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19263
    *) libsuff= shlibsuff= libmagic=never-match;;
19264
    esac
19265
    ;;
19266
  esac
19267
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19268
  shlibpath_overrides_runpath=no
19269
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19270
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19271
  hardcode_into_libs=yes
19272
  ;;
19273
19274
# No shared lib support for Linux oldld, aout, or coff.
19275
linux*oldld* | linux*aout* | linux*coff*)
19276
  dynamic_linker=no
19277
  ;;
19278
19279
# This must be Linux ELF.
19280
linux* | k*bsd*-gnu)
19281
  version_type=linux
19282
  need_lib_prefix=no
19283
  need_version=no
19284
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19285
  soname_spec='${libname}${release}${shared_ext}$major'
19286
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19287
  shlibpath_var=LD_LIBRARY_PATH
19288
  shlibpath_overrides_runpath=no
19289
  # This implies no fast_install, which is unacceptable.
19290
  # Some rework will be needed to allow for fast_install
19291
  # before this can be enabled.
19292
  hardcode_into_libs=yes
19293
19294
  # Append ld.so.conf contents to the search path
19295
  if test -f /etc/ld.so.conf; then
1.1.1 by Michael Vogt
Import upstream version 0.7.2
19296
    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;/^$/d' | tr '\n' ' '`
1 by Sebastien Bacher
Import upstream version 0.7.1
19297
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19298
  fi
19299
19300
  # We used to test for /lib/ld.so.1 and disable shared libraries on
19301
  # powerpc, because MkLinux only supported shared libraries with the
19302
  # GNU dynamic linker.  Since this was broken with cross compilers,
19303
  # most powerpc-linux boxes support dynamic linking these days and
19304
  # people can always --disable-shared, the test was removed, and we
19305
  # assume the GNU/Linux dynamic linker is in use.
19306
  dynamic_linker='GNU/Linux ld.so'
19307
  ;;
19308
19309
netbsdelf*-gnu)
19310
  version_type=linux
19311
  need_lib_prefix=no
19312
  need_version=no
19313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19314
  soname_spec='${libname}${release}${shared_ext}$major'
19315
  shlibpath_var=LD_LIBRARY_PATH
19316
  shlibpath_overrides_runpath=no
19317
  hardcode_into_libs=yes
19318
  dynamic_linker='NetBSD ld.elf_so'
19319
  ;;
19320
19321
netbsd*)
19322
  version_type=sunos
19323
  need_lib_prefix=no
19324
  need_version=no
19325
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19326
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19327
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19328
    dynamic_linker='NetBSD (a.out) ld.so'
19329
  else
19330
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19331
    soname_spec='${libname}${release}${shared_ext}$major'
19332
    dynamic_linker='NetBSD ld.elf_so'
19333
  fi
19334
  shlibpath_var=LD_LIBRARY_PATH
19335
  shlibpath_overrides_runpath=yes
19336
  hardcode_into_libs=yes
19337
  ;;
19338
19339
newsos6)
19340
  version_type=linux
19341
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19342
  shlibpath_var=LD_LIBRARY_PATH
19343
  shlibpath_overrides_runpath=yes
19344
  ;;
19345
19346
nto-qnx*)
19347
  version_type=linux
19348
  need_lib_prefix=no
19349
  need_version=no
19350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19351
  soname_spec='${libname}${release}${shared_ext}$major'
19352
  shlibpath_var=LD_LIBRARY_PATH
19353
  shlibpath_overrides_runpath=yes
19354
  ;;
19355
19356
openbsd*)
19357
  version_type=sunos
19358
  sys_lib_dlsearch_path_spec="/usr/lib"
19359
  need_lib_prefix=no
19360
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19361
  case $host_os in
19362
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19363
    *)                         need_version=no  ;;
19364
  esac
19365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19366
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19367
  shlibpath_var=LD_LIBRARY_PATH
19368
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19369
    case $host_os in
19370
      openbsd2.[89] | openbsd2.[89].*)
19371
	shlibpath_overrides_runpath=no
19372
	;;
19373
      *)
19374
	shlibpath_overrides_runpath=yes
19375
	;;
19376
      esac
19377
  else
19378
    shlibpath_overrides_runpath=yes
19379
  fi
19380
  ;;
19381
19382
os2*)
19383
  libname_spec='$name'
19384
  shrext_cmds=".dll"
19385
  need_lib_prefix=no
19386
  library_names_spec='$libname${shared_ext} $libname.a'
19387
  dynamic_linker='OS/2 ld.exe'
19388
  shlibpath_var=LIBPATH
19389
  ;;
19390
19391
osf3* | osf4* | osf5*)
19392
  version_type=osf
19393
  need_lib_prefix=no
19394
  need_version=no
19395
  soname_spec='${libname}${release}${shared_ext}$major'
19396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19397
  shlibpath_var=LD_LIBRARY_PATH
19398
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19399
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19400
  ;;
19401
1.1.1 by Michael Vogt
Import upstream version 0.7.2
19402
rdos*)
19403
  dynamic_linker=no
19404
  ;;
19405
1 by Sebastien Bacher
Import upstream version 0.7.1
19406
solaris*)
19407
  version_type=linux
19408
  need_lib_prefix=no
19409
  need_version=no
19410
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19411
  soname_spec='${libname}${release}${shared_ext}$major'
19412
  shlibpath_var=LD_LIBRARY_PATH
19413
  shlibpath_overrides_runpath=yes
19414
  hardcode_into_libs=yes
19415
  # ldd complains unless libraries are executable
19416
  postinstall_cmds='chmod +x $lib'
19417
  ;;
19418
19419
sunos4*)
19420
  version_type=sunos
19421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19422
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19423
  shlibpath_var=LD_LIBRARY_PATH
19424
  shlibpath_overrides_runpath=yes
19425
  if test "$with_gnu_ld" = yes; then
19426
    need_lib_prefix=no
19427
  fi
19428
  need_version=yes
19429
  ;;
19430
19431
sysv4 | sysv4.3*)
19432
  version_type=linux
19433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19434
  soname_spec='${libname}${release}${shared_ext}$major'
19435
  shlibpath_var=LD_LIBRARY_PATH
19436
  case $host_vendor in
19437
    sni)
19438
      shlibpath_overrides_runpath=no
19439
      need_lib_prefix=no
19440
      export_dynamic_flag_spec='${wl}-Blargedynsym'
19441
      runpath_var=LD_RUN_PATH
19442
      ;;
19443
    siemens)
19444
      need_lib_prefix=no
19445
      ;;
19446
    motorola)
19447
      need_lib_prefix=no
19448
      need_version=no
19449
      shlibpath_overrides_runpath=no
19450
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19451
      ;;
19452
  esac
19453
  ;;
19454
19455
sysv4*MP*)
19456
  if test -d /usr/nec ;then
19457
    version_type=linux
19458
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19459
    soname_spec='$libname${shared_ext}.$major'
19460
    shlibpath_var=LD_LIBRARY_PATH
19461
  fi
19462
  ;;
19463
19464
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19465
  version_type=freebsd-elf
19466
  need_lib_prefix=no
19467
  need_version=no
19468
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19469
  soname_spec='${libname}${release}${shared_ext}$major'
19470
  shlibpath_var=LD_LIBRARY_PATH
19471
  hardcode_into_libs=yes
19472
  if test "$with_gnu_ld" = yes; then
19473
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19474
    shlibpath_overrides_runpath=no
19475
  else
19476
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19477
    shlibpath_overrides_runpath=yes
19478
    case $host_os in
19479
      sco3.2v5*)
19480
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19481
	;;
19482
    esac
19483
  fi
19484
  sys_lib_dlsearch_path_spec='/usr/lib'
19485
  ;;
19486
19487
uts4*)
19488
  version_type=linux
19489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19490
  soname_spec='${libname}${release}${shared_ext}$major'
19491
  shlibpath_var=LD_LIBRARY_PATH
19492
  ;;
19493
19494
*)
19495
  dynamic_linker=no
19496
  ;;
19497
esac
19498
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19499
echo "${ECHO_T}$dynamic_linker" >&6; }
19500
test "$dynamic_linker" = no && can_build_shared=no
19501
19502
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19503
if test "$GCC" = yes; then
19504
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19505
fi
19506
19507
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19508
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19509
hardcode_action_GCJ=
19510
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19511
   test -n "$runpath_var_GCJ" || \
19512
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19513
19514
  # We can hardcode non-existant directories.
19515
  if test "$hardcode_direct_GCJ" != no &&
19516
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19517
     # have to relink, otherwise we might link with an installed library
19518
     # when we should be linking with a yet-to-be-installed one
19519
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19520
     test "$hardcode_minus_L_GCJ" != no; then
19521
    # Linking always hardcodes the temporary library directory.
19522
    hardcode_action_GCJ=relink
19523
  else
19524
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19525
    hardcode_action_GCJ=immediate
19526
  fi
19527
else
19528
  # We cannot hardcode anything, or else we can only hardcode existing
19529
  # directories.
19530
  hardcode_action_GCJ=unsupported
19531
fi
19532
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19533
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19534
19535
if test "$hardcode_action_GCJ" = relink; then
19536
  # Fast installation is not supported
19537
  enable_fast_install=no
19538
elif test "$shlibpath_overrides_runpath" = yes ||
19539
     test "$enable_shared" = no; then
19540
  # Fast installation is not necessary
19541
  enable_fast_install=needless
19542
fi
19543
19544
19545
# The else clause should only fire when bootstrapping the
19546
# libtool distribution, otherwise you forgot to ship ltmain.sh
19547
# with your package, and you will get complaints that there are
19548
# no rules to generate ltmain.sh.
19549
if test -f "$ltmain"; then
19550
  # See if we are running on zsh, and set the options which allow our commands through
19551
  # without removal of \ escapes.
19552
  if test -n "${ZSH_VERSION+set}" ; then
19553
    setopt NO_GLOB_SUBST
19554
  fi
19555
  # Now quote all the things that may contain metacharacters while being
19556
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19557
  # variables and quote the copies for generation of the libtool script.
19558
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19559
    SED SHELL STRIP \
19560
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19561
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19562
    deplibs_check_method reload_flag reload_cmds need_locks \
19563
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19564
    lt_cv_sys_global_symbol_to_c_name_address \
19565
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19566
    old_postinstall_cmds old_postuninstall_cmds \
19567
    compiler_GCJ \
19568
    CC_GCJ \
19569
    LD_GCJ \
19570
    lt_prog_compiler_wl_GCJ \
19571
    lt_prog_compiler_pic_GCJ \
19572
    lt_prog_compiler_static_GCJ \
19573
    lt_prog_compiler_no_builtin_flag_GCJ \
19574
    export_dynamic_flag_spec_GCJ \
19575
    thread_safe_flag_spec_GCJ \
19576
    whole_archive_flag_spec_GCJ \
19577
    enable_shared_with_static_runtimes_GCJ \
19578
    old_archive_cmds_GCJ \
19579
    old_archive_from_new_cmds_GCJ \
19580
    predep_objects_GCJ \
19581
    postdep_objects_GCJ \
19582
    predeps_GCJ \
19583
    postdeps_GCJ \
19584
    compiler_lib_search_path_GCJ \
19585
    archive_cmds_GCJ \
19586
    archive_expsym_cmds_GCJ \
19587
    postinstall_cmds_GCJ \
19588
    postuninstall_cmds_GCJ \
19589
    old_archive_from_expsyms_cmds_GCJ \
19590
    allow_undefined_flag_GCJ \
19591
    no_undefined_flag_GCJ \
19592
    export_symbols_cmds_GCJ \
19593
    hardcode_libdir_flag_spec_GCJ \
19594
    hardcode_libdir_flag_spec_ld_GCJ \
19595
    hardcode_libdir_separator_GCJ \
19596
    hardcode_automatic_GCJ \
19597
    module_cmds_GCJ \
19598
    module_expsym_cmds_GCJ \
19599
    lt_cv_prog_compiler_c_o_GCJ \
1.1.1 by Michael Vogt
Import upstream version 0.7.2
19600
    fix_srcfile_path_GCJ \
1 by Sebastien Bacher
Import upstream version 0.7.1
19601
    exclude_expsyms_GCJ \
19602
    include_expsyms_GCJ; do
19603
19604
    case $var in
19605
    old_archive_cmds_GCJ | \
19606
    old_archive_from_new_cmds_GCJ | \
19607
    archive_cmds_GCJ | \
19608
    archive_expsym_cmds_GCJ | \
19609
    module_cmds_GCJ | \
19610
    module_expsym_cmds_GCJ | \
19611
    old_archive_from_expsyms_cmds_GCJ | \
19612
    export_symbols_cmds_GCJ | \
19613
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19614
    postinstall_cmds | postuninstall_cmds | \
19615
    old_postinstall_cmds | old_postuninstall_cmds | \
19616
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19617
      # Double-quote double-evaled strings.
19618
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19619
      ;;
19620
    *)
19621
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19622
      ;;
19623
    esac
19624
  done
19625
19626
  case $lt_echo in
19627
  *'\$0 --fallback-echo"')
19628
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19629
    ;;
19630
  esac
19631
19632
cfgfile="$ofile"
19633
19634
  cat <<__EOF__ >> "$cfgfile"
19635
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19636
19637
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19638
19639
# Shell to use when invoking shell scripts.
19640
SHELL=$lt_SHELL
19641
19642
# Whether or not to build shared libraries.
19643
build_libtool_libs=$enable_shared
19644
19645
# Whether or not to build static libraries.
19646
build_old_libs=$enable_static
19647
19648
# Whether or not to add -lc for building shared libraries.
19649
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19650
19651
# Whether or not to disallow shared libs when runtime libs are static
19652
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19653
19654
# Whether or not to optimize for fast installation.
19655
fast_install=$enable_fast_install
19656
19657
# The host system.
19658
host_alias=$host_alias
19659
host=$host
19660
host_os=$host_os
19661
19662
# The build system.
19663
build_alias=$build_alias
19664
build=$build
19665
build_os=$build_os
19666
19667
# An echo program that does not interpret backslashes.
19668
echo=$lt_echo
19669
19670
# The archiver.
19671
AR=$lt_AR
19672
AR_FLAGS=$lt_AR_FLAGS
19673
19674
# A C compiler.
19675
LTCC=$lt_LTCC
19676
19677
# LTCC compiler flags.
19678
LTCFLAGS=$lt_LTCFLAGS
19679
19680
# A language-specific compiler.
19681
CC=$lt_compiler_GCJ
19682
19683
# Is the compiler the GNU C compiler?
19684
with_gcc=$GCC_GCJ
19685
19686
# An ERE matcher.
19687
EGREP=$lt_EGREP
19688
19689
# The linker used to build libraries.
19690
LD=$lt_LD_GCJ
19691
19692
# Whether we need hard or soft links.
19693
LN_S=$lt_LN_S
19694
19695
# A BSD-compatible nm program.
19696
NM=$lt_NM
19697
19698
# A symbol stripping program
19699
STRIP=$lt_STRIP
19700
19701
# Used to examine libraries when file_magic_cmd begins "file"
19702
MAGIC_CMD=$MAGIC_CMD
19703
19704
# Used on cygwin: DLL creation program.
19705
DLLTOOL="$DLLTOOL"
19706
19707
# Used on cygwin: object dumper.
19708
OBJDUMP="$OBJDUMP"
19709
19710
# Used on cygwin: assembler.
19711
AS="$AS"
19712
19713
# The name of the directory that contains temporary libtool files.
19714
objdir=$objdir
19715
19716
# How to create reloadable object files.
19717
reload_flag=$lt_reload_flag
19718
reload_cmds=$lt_reload_cmds
19719
19720
# How to pass a linker flag through the compiler.
19721
wl=$lt_lt_prog_compiler_wl_GCJ
19722
19723
# Object file suffix (normally "o").
19724
objext="$ac_objext"
19725
19726
# Old archive suffix (normally "a").
19727
libext="$libext"
19728
19729
# Shared library suffix (normally ".so").
19730
shrext_cmds='$shrext_cmds'
19731
19732
# Executable file suffix (normally "").
19733
exeext="$exeext"
19734
19735
# Additional compiler flags for building library objects.
19736
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19737
pic_mode=$pic_mode
19738
19739
# What is the maximum length of a command?
19740
max_cmd_len=$lt_cv_sys_max_cmd_len
19741
19742
# Does compiler simultaneously support -c and -o options?
19743
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19744
19745
# Must we lock files when doing compilation?
19746
need_locks=$lt_need_locks
19747
19748
# Do we need the lib prefix for modules?
19749
need_lib_prefix=$need_lib_prefix
19750
19751
# Do we need a version for libraries?
19752
need_version=$need_version
19753
19754
# Whether dlopen is supported.
19755
dlopen_support=$enable_dlopen
19756
19757
# Whether dlopen of programs is supported.
19758
dlopen_self=$enable_dlopen_self
19759
19760
# Whether dlopen of statically linked programs is supported.
19761
dlopen_self_static=$enable_dlopen_self_static
19762
19763
# Compiler flag to prevent dynamic linking.
19764
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19765
19766
# Compiler flag to turn off builtin functions.
19767
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19768
19769
# Compiler flag to allow reflexive dlopens.
19770
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19771
19772
# Compiler flag to generate shared objects directly from archives.
19773
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19774
19775
# Compiler flag to generate thread-safe objects.
19776
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19777
19778
# Library versioning type.
19779
version_type=$version_type
19780
19781
# Format of library name prefix.
19782
libname_spec=$lt_libname_spec
19783
19784
# List of archive names.  First name is the real one, the rest are links.
19785
# The last name is the one that the linker finds with -lNAME.
19786
library_names_spec=$lt_library_names_spec
19787
19788
# The coded name of the library, if different from the real name.
19789
soname_spec=$lt_soname_spec
19790
19791
# Commands used to build and install an old-style archive.
19792
RANLIB=$lt_RANLIB
19793
old_archive_cmds=$lt_old_archive_cmds_GCJ
19794
old_postinstall_cmds=$lt_old_postinstall_cmds
19795
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19796
19797
# Create an old-style archive from a shared archive.
19798
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19799
19800
# Create a temporary old-style archive to link instead of a shared archive.
19801
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19802
19803
# Commands used to build and install a shared archive.
19804
archive_cmds=$lt_archive_cmds_GCJ
19805
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19806
postinstall_cmds=$lt_postinstall_cmds
19807
postuninstall_cmds=$lt_postuninstall_cmds
19808
19809
# Commands used to build a loadable module (assumed same as above if empty)
19810
module_cmds=$lt_module_cmds_GCJ
19811
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19812
19813
# Commands to strip libraries.
19814
old_striplib=$lt_old_striplib
19815
striplib=$lt_striplib
19816
19817
# Dependencies to place before the objects being linked to create a
19818
# shared library.
19819
predep_objects=$lt_predep_objects_GCJ
19820
19821
# Dependencies to place after the objects being linked to create a
19822
# shared library.
19823
postdep_objects=$lt_postdep_objects_GCJ
19824
19825
# Dependencies to place before the objects being linked to create a
19826
# shared library.
19827
predeps=$lt_predeps_GCJ
19828
19829
# Dependencies to place after the objects being linked to create a
19830
# shared library.
19831
postdeps=$lt_postdeps_GCJ
19832
19833
# The library search path used internally by the compiler when linking
19834
# a shared library.
19835
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19836
19837
# Method to check whether dependent libraries are shared objects.
19838
deplibs_check_method=$lt_deplibs_check_method
19839
19840
# Command to use when deplibs_check_method == file_magic.
19841
file_magic_cmd=$lt_file_magic_cmd
19842
19843
# Flag that allows shared libraries with undefined symbols to be built.
19844
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19845
19846
# Flag that forces no undefined symbols.
19847
no_undefined_flag=$lt_no_undefined_flag_GCJ
19848
19849
# Commands used to finish a libtool library installation in a directory.
19850
finish_cmds=$lt_finish_cmds
19851
19852
# Same as above, but a single script fragment to be evaled but not shown.
19853
finish_eval=$lt_finish_eval
19854
19855
# Take the output of nm and produce a listing of raw symbols and C names.
19856
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19857
19858
# Transform the output of nm in a proper C declaration
19859
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19860
19861
# Transform the output of nm in a C name address pair
19862
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19863
19864
# This is the shared library runtime path variable.
19865
runpath_var=$runpath_var
19866
19867
# This is the shared library path variable.
19868
shlibpath_var=$shlibpath_var
19869
19870
# Is shlibpath searched before the hard-coded library search path?
19871
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19872
19873
# How to hardcode a shared library path into an executable.
19874
hardcode_action=$hardcode_action_GCJ
19875
19876
# Whether we should hardcode library paths into libraries.
19877
hardcode_into_libs=$hardcode_into_libs
19878
19879
# Flag to hardcode \$libdir into a binary during linking.
19880
# This must work even if \$libdir does not exist.
19881
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19882
19883
# If ld is used when linking, flag to hardcode \$libdir into
19884
# a binary during linking. This must work even if \$libdir does
19885
# not exist.
19886
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19887
19888
# Whether we need a single -rpath flag with a separated argument.
19889
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19890
19891
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19892
# resulting binary.
19893
hardcode_direct=$hardcode_direct_GCJ
19894
19895
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19896
# resulting binary.
19897
hardcode_minus_L=$hardcode_minus_L_GCJ
19898
19899
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19900
# the resulting binary.
19901
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19902
19903
# Set to yes if building a shared library automatically hardcodes DIR into the library
19904
# and all subsequent libraries and executables linked against it.
19905
hardcode_automatic=$hardcode_automatic_GCJ
19906
19907
# Variables whose values should be saved in libtool wrapper scripts and
19908
# restored at relink time.
19909
variables_saved_for_relink="$variables_saved_for_relink"
19910
19911
# Whether libtool must link a program against all its dependency libraries.
19912
link_all_deplibs=$link_all_deplibs_GCJ
19913
19914
# Compile-time system search path for libraries
19915
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19916
19917
# Run-time system search path for libraries
19918
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19919
19920
# Fix the shell variable \$srcfile for the compiler.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
19921
fix_srcfile_path=$lt_fix_srcfile_path
1 by Sebastien Bacher
Import upstream version 0.7.1
19922
19923
# Set to yes if exported symbols are required.
19924
always_export_symbols=$always_export_symbols_GCJ
19925
19926
# The commands to list exported symbols.
19927
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19928
19929
# The commands to extract the exported symbol list from a shared archive.
19930
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19931
19932
# Symbols that should not be listed in the preloaded symbols.
19933
exclude_expsyms=$lt_exclude_expsyms_GCJ
19934
19935
# Symbols that must always be exported.
19936
include_expsyms=$lt_include_expsyms_GCJ
19937
19938
# ### END LIBTOOL TAG CONFIG: $tagname
19939
19940
__EOF__
19941
19942
19943
else
19944
  # If there is no Makefile yet, we rely on a make rule to execute
19945
  # `config.status --recheck' to rerun these tests and create the
19946
  # libtool script then.
19947
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19948
  if test -f "$ltmain_in"; then
19949
    test -f Makefile && make "$ltmain"
19950
  fi
19951
fi
19952
19953
19954
ac_ext=c
19955
ac_cpp='$CPP $CPPFLAGS'
19956
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19959
19960
CC="$lt_save_CC"
19961
19962
	else
19963
	  tagname=""
19964
	fi
19965
	;;
19966
19967
      RC)
19968
19969
19970
# Source file extension for RC test sources.
19971
ac_ext=rc
19972
19973
# Object file extension for compiled RC test sources.
19974
objext=o
19975
objext_RC=$objext
19976
19977
# Code to be used in simple compile tests
1.1.1 by Michael Vogt
Import upstream version 0.7.2
19978
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
1 by Sebastien Bacher
Import upstream version 0.7.1
19979
19980
# Code to be used in simple link tests
19981
lt_simple_link_test_code="$lt_simple_compile_test_code"
19982
19983
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19984
19985
# If no C compiler was specified, use CC.
19986
LTCC=${LTCC-"$CC"}
19987
19988
# If no C compiler flags were specified, use CFLAGS.
19989
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19990
19991
# Allow CC to be a program name with arguments.
19992
compiler=$CC
19993
19994
19995
# save warnings/boilerplate of simple test code
19996
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
19997
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
19998
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19999
_lt_compiler_boilerplate=`cat conftest.err`
20000
$rm conftest*
20001
20002
ac_outfile=conftest.$ac_objext
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20003
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1 by Sebastien Bacher
Import upstream version 0.7.1
20004
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20005
_lt_linker_boilerplate=`cat conftest.err`
20006
$rm conftest*
20007
20008
20009
# Allow CC to be a program name with arguments.
20010
lt_save_CC="$CC"
20011
CC=${RC-"windres"}
20012
compiler=$CC
20013
compiler_RC=$CC
20014
for cc_temp in $compiler""; do
20015
  case $cc_temp in
20016
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20017
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20018
    \-*) ;;
20019
    *) break;;
20020
  esac
20021
done
20022
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20023
20024
lt_cv_prog_compiler_c_o_RC=yes
20025
20026
# The else clause should only fire when bootstrapping the
20027
# libtool distribution, otherwise you forgot to ship ltmain.sh
20028
# with your package, and you will get complaints that there are
20029
# no rules to generate ltmain.sh.
20030
if test -f "$ltmain"; then
20031
  # See if we are running on zsh, and set the options which allow our commands through
20032
  # without removal of \ escapes.
20033
  if test -n "${ZSH_VERSION+set}" ; then
20034
    setopt NO_GLOB_SUBST
20035
  fi
20036
  # Now quote all the things that may contain metacharacters while being
20037
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20038
  # variables and quote the copies for generation of the libtool script.
20039
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20040
    SED SHELL STRIP \
20041
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20042
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20043
    deplibs_check_method reload_flag reload_cmds need_locks \
20044
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20045
    lt_cv_sys_global_symbol_to_c_name_address \
20046
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20047
    old_postinstall_cmds old_postuninstall_cmds \
20048
    compiler_RC \
20049
    CC_RC \
20050
    LD_RC \
20051
    lt_prog_compiler_wl_RC \
20052
    lt_prog_compiler_pic_RC \
20053
    lt_prog_compiler_static_RC \
20054
    lt_prog_compiler_no_builtin_flag_RC \
20055
    export_dynamic_flag_spec_RC \
20056
    thread_safe_flag_spec_RC \
20057
    whole_archive_flag_spec_RC \
20058
    enable_shared_with_static_runtimes_RC \
20059
    old_archive_cmds_RC \
20060
    old_archive_from_new_cmds_RC \
20061
    predep_objects_RC \
20062
    postdep_objects_RC \
20063
    predeps_RC \
20064
    postdeps_RC \
20065
    compiler_lib_search_path_RC \
20066
    archive_cmds_RC \
20067
    archive_expsym_cmds_RC \
20068
    postinstall_cmds_RC \
20069
    postuninstall_cmds_RC \
20070
    old_archive_from_expsyms_cmds_RC \
20071
    allow_undefined_flag_RC \
20072
    no_undefined_flag_RC \
20073
    export_symbols_cmds_RC \
20074
    hardcode_libdir_flag_spec_RC \
20075
    hardcode_libdir_flag_spec_ld_RC \
20076
    hardcode_libdir_separator_RC \
20077
    hardcode_automatic_RC \
20078
    module_cmds_RC \
20079
    module_expsym_cmds_RC \
20080
    lt_cv_prog_compiler_c_o_RC \
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20081
    fix_srcfile_path_RC \
1 by Sebastien Bacher
Import upstream version 0.7.1
20082
    exclude_expsyms_RC \
20083
    include_expsyms_RC; do
20084
20085
    case $var in
20086
    old_archive_cmds_RC | \
20087
    old_archive_from_new_cmds_RC | \
20088
    archive_cmds_RC | \
20089
    archive_expsym_cmds_RC | \
20090
    module_cmds_RC | \
20091
    module_expsym_cmds_RC | \
20092
    old_archive_from_expsyms_cmds_RC | \
20093
    export_symbols_cmds_RC | \
20094
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20095
    postinstall_cmds | postuninstall_cmds | \
20096
    old_postinstall_cmds | old_postuninstall_cmds | \
20097
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20098
      # Double-quote double-evaled strings.
20099
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20100
      ;;
20101
    *)
20102
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20103
      ;;
20104
    esac
20105
  done
20106
20107
  case $lt_echo in
20108
  *'\$0 --fallback-echo"')
20109
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20110
    ;;
20111
  esac
20112
20113
cfgfile="$ofile"
20114
20115
  cat <<__EOF__ >> "$cfgfile"
20116
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20117
20118
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20119
20120
# Shell to use when invoking shell scripts.
20121
SHELL=$lt_SHELL
20122
20123
# Whether or not to build shared libraries.
20124
build_libtool_libs=$enable_shared
20125
20126
# Whether or not to build static libraries.
20127
build_old_libs=$enable_static
20128
20129
# Whether or not to add -lc for building shared libraries.
20130
build_libtool_need_lc=$archive_cmds_need_lc_RC
20131
20132
# Whether or not to disallow shared libs when runtime libs are static
20133
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20134
20135
# Whether or not to optimize for fast installation.
20136
fast_install=$enable_fast_install
20137
20138
# The host system.
20139
host_alias=$host_alias
20140
host=$host
20141
host_os=$host_os
20142
20143
# The build system.
20144
build_alias=$build_alias
20145
build=$build
20146
build_os=$build_os
20147
20148
# An echo program that does not interpret backslashes.
20149
echo=$lt_echo
20150
20151
# The archiver.
20152
AR=$lt_AR
20153
AR_FLAGS=$lt_AR_FLAGS
20154
20155
# A C compiler.
20156
LTCC=$lt_LTCC
20157
20158
# LTCC compiler flags.
20159
LTCFLAGS=$lt_LTCFLAGS
20160
20161
# A language-specific compiler.
20162
CC=$lt_compiler_RC
20163
20164
# Is the compiler the GNU C compiler?
20165
with_gcc=$GCC_RC
20166
20167
# An ERE matcher.
20168
EGREP=$lt_EGREP
20169
20170
# The linker used to build libraries.
20171
LD=$lt_LD_RC
20172
20173
# Whether we need hard or soft links.
20174
LN_S=$lt_LN_S
20175
20176
# A BSD-compatible nm program.
20177
NM=$lt_NM
20178
20179
# A symbol stripping program
20180
STRIP=$lt_STRIP
20181
20182
# Used to examine libraries when file_magic_cmd begins "file"
20183
MAGIC_CMD=$MAGIC_CMD
20184
20185
# Used on cygwin: DLL creation program.
20186
DLLTOOL="$DLLTOOL"
20187
20188
# Used on cygwin: object dumper.
20189
OBJDUMP="$OBJDUMP"
20190
20191
# Used on cygwin: assembler.
20192
AS="$AS"
20193
20194
# The name of the directory that contains temporary libtool files.
20195
objdir=$objdir
20196
20197
# How to create reloadable object files.
20198
reload_flag=$lt_reload_flag
20199
reload_cmds=$lt_reload_cmds
20200
20201
# How to pass a linker flag through the compiler.
20202
wl=$lt_lt_prog_compiler_wl_RC
20203
20204
# Object file suffix (normally "o").
20205
objext="$ac_objext"
20206
20207
# Old archive suffix (normally "a").
20208
libext="$libext"
20209
20210
# Shared library suffix (normally ".so").
20211
shrext_cmds='$shrext_cmds'
20212
20213
# Executable file suffix (normally "").
20214
exeext="$exeext"
20215
20216
# Additional compiler flags for building library objects.
20217
pic_flag=$lt_lt_prog_compiler_pic_RC
20218
pic_mode=$pic_mode
20219
20220
# What is the maximum length of a command?
20221
max_cmd_len=$lt_cv_sys_max_cmd_len
20222
20223
# Does compiler simultaneously support -c and -o options?
20224
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20225
20226
# Must we lock files when doing compilation?
20227
need_locks=$lt_need_locks
20228
20229
# Do we need the lib prefix for modules?
20230
need_lib_prefix=$need_lib_prefix
20231
20232
# Do we need a version for libraries?
20233
need_version=$need_version
20234
20235
# Whether dlopen is supported.
20236
dlopen_support=$enable_dlopen
20237
20238
# Whether dlopen of programs is supported.
20239
dlopen_self=$enable_dlopen_self
20240
20241
# Whether dlopen of statically linked programs is supported.
20242
dlopen_self_static=$enable_dlopen_self_static
20243
20244
# Compiler flag to prevent dynamic linking.
20245
link_static_flag=$lt_lt_prog_compiler_static_RC
20246
20247
# Compiler flag to turn off builtin functions.
20248
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20249
20250
# Compiler flag to allow reflexive dlopens.
20251
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20252
20253
# Compiler flag to generate shared objects directly from archives.
20254
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20255
20256
# Compiler flag to generate thread-safe objects.
20257
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20258
20259
# Library versioning type.
20260
version_type=$version_type
20261
20262
# Format of library name prefix.
20263
libname_spec=$lt_libname_spec
20264
20265
# List of archive names.  First name is the real one, the rest are links.
20266
# The last name is the one that the linker finds with -lNAME.
20267
library_names_spec=$lt_library_names_spec
20268
20269
# The coded name of the library, if different from the real name.
20270
soname_spec=$lt_soname_spec
20271
20272
# Commands used to build and install an old-style archive.
20273
RANLIB=$lt_RANLIB
20274
old_archive_cmds=$lt_old_archive_cmds_RC
20275
old_postinstall_cmds=$lt_old_postinstall_cmds
20276
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20277
20278
# Create an old-style archive from a shared archive.
20279
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20280
20281
# Create a temporary old-style archive to link instead of a shared archive.
20282
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20283
20284
# Commands used to build and install a shared archive.
20285
archive_cmds=$lt_archive_cmds_RC
20286
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20287
postinstall_cmds=$lt_postinstall_cmds
20288
postuninstall_cmds=$lt_postuninstall_cmds
20289
20290
# Commands used to build a loadable module (assumed same as above if empty)
20291
module_cmds=$lt_module_cmds_RC
20292
module_expsym_cmds=$lt_module_expsym_cmds_RC
20293
20294
# Commands to strip libraries.
20295
old_striplib=$lt_old_striplib
20296
striplib=$lt_striplib
20297
20298
# Dependencies to place before the objects being linked to create a
20299
# shared library.
20300
predep_objects=$lt_predep_objects_RC
20301
20302
# Dependencies to place after the objects being linked to create a
20303
# shared library.
20304
postdep_objects=$lt_postdep_objects_RC
20305
20306
# Dependencies to place before the objects being linked to create a
20307
# shared library.
20308
predeps=$lt_predeps_RC
20309
20310
# Dependencies to place after the objects being linked to create a
20311
# shared library.
20312
postdeps=$lt_postdeps_RC
20313
20314
# The library search path used internally by the compiler when linking
20315
# a shared library.
20316
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20317
20318
# Method to check whether dependent libraries are shared objects.
20319
deplibs_check_method=$lt_deplibs_check_method
20320
20321
# Command to use when deplibs_check_method == file_magic.
20322
file_magic_cmd=$lt_file_magic_cmd
20323
20324
# Flag that allows shared libraries with undefined symbols to be built.
20325
allow_undefined_flag=$lt_allow_undefined_flag_RC
20326
20327
# Flag that forces no undefined symbols.
20328
no_undefined_flag=$lt_no_undefined_flag_RC
20329
20330
# Commands used to finish a libtool library installation in a directory.
20331
finish_cmds=$lt_finish_cmds
20332
20333
# Same as above, but a single script fragment to be evaled but not shown.
20334
finish_eval=$lt_finish_eval
20335
20336
# Take the output of nm and produce a listing of raw symbols and C names.
20337
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20338
20339
# Transform the output of nm in a proper C declaration
20340
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20341
20342
# Transform the output of nm in a C name address pair
20343
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20344
20345
# This is the shared library runtime path variable.
20346
runpath_var=$runpath_var
20347
20348
# This is the shared library path variable.
20349
shlibpath_var=$shlibpath_var
20350
20351
# Is shlibpath searched before the hard-coded library search path?
20352
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20353
20354
# How to hardcode a shared library path into an executable.
20355
hardcode_action=$hardcode_action_RC
20356
20357
# Whether we should hardcode library paths into libraries.
20358
hardcode_into_libs=$hardcode_into_libs
20359
20360
# Flag to hardcode \$libdir into a binary during linking.
20361
# This must work even if \$libdir does not exist.
20362
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20363
20364
# If ld is used when linking, flag to hardcode \$libdir into
20365
# a binary during linking. This must work even if \$libdir does
20366
# not exist.
20367
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20368
20369
# Whether we need a single -rpath flag with a separated argument.
20370
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20371
20372
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20373
# resulting binary.
20374
hardcode_direct=$hardcode_direct_RC
20375
20376
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20377
# resulting binary.
20378
hardcode_minus_L=$hardcode_minus_L_RC
20379
20380
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20381
# the resulting binary.
20382
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20383
20384
# Set to yes if building a shared library automatically hardcodes DIR into the library
20385
# and all subsequent libraries and executables linked against it.
20386
hardcode_automatic=$hardcode_automatic_RC
20387
20388
# Variables whose values should be saved in libtool wrapper scripts and
20389
# restored at relink time.
20390
variables_saved_for_relink="$variables_saved_for_relink"
20391
20392
# Whether libtool must link a program against all its dependency libraries.
20393
link_all_deplibs=$link_all_deplibs_RC
20394
20395
# Compile-time system search path for libraries
20396
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20397
20398
# Run-time system search path for libraries
20399
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20400
20401
# Fix the shell variable \$srcfile for the compiler.
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20402
fix_srcfile_path=$lt_fix_srcfile_path
1 by Sebastien Bacher
Import upstream version 0.7.1
20403
20404
# Set to yes if exported symbols are required.
20405
always_export_symbols=$always_export_symbols_RC
20406
20407
# The commands to list exported symbols.
20408
export_symbols_cmds=$lt_export_symbols_cmds_RC
20409
20410
# The commands to extract the exported symbol list from a shared archive.
20411
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20412
20413
# Symbols that should not be listed in the preloaded symbols.
20414
exclude_expsyms=$lt_exclude_expsyms_RC
20415
20416
# Symbols that must always be exported.
20417
include_expsyms=$lt_include_expsyms_RC
20418
20419
# ### END LIBTOOL TAG CONFIG: $tagname
20420
20421
__EOF__
20422
20423
20424
else
20425
  # If there is no Makefile yet, we rely on a make rule to execute
20426
  # `config.status --recheck' to rerun these tests and create the
20427
  # libtool script then.
20428
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20429
  if test -f "$ltmain_in"; then
20430
    test -f Makefile && make "$ltmain"
20431
  fi
20432
fi
20433
20434
20435
ac_ext=c
20436
ac_cpp='$CPP $CPPFLAGS'
20437
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20440
20441
CC="$lt_save_CC"
20442
20443
	;;
20444
20445
      *)
20446
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20447
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20448
   { (exit 1); exit 1; }; }
20449
	;;
20450
      esac
20451
20452
      # Append the new tag name to the list of available tags.
20453
      if test -n "$tagname" ; then
20454
      available_tags="$available_tags $tagname"
20455
    fi
20456
    fi
20457
  done
20458
  IFS="$lt_save_ifs"
20459
20460
  # Now substitute the updated list of available tags.
20461
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20462
    mv "${ofile}T" "$ofile"
20463
    chmod +x "$ofile"
20464
  else
20465
    rm -f "${ofile}T"
20466
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20467
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20468
   { (exit 1); exit 1; }; }
20469
  fi
20470
fi
20471
20472
20473
20474
# This can be used to rebuild libtool when needed
20475
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20476
20477
# Always use our own libtool.
20478
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20479
20480
# Prevent multiple expansion
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
# Extract the first word of "pkg-config", so it can be a program name with args.
20503
set dummy pkg-config; ac_word=$2
20504
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20506
if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
20507
  echo $ECHO_N "(cached) $ECHO_C" >&6
20508
else
20509
  if test -n "$HAVE_PKGCONFIG"; then
20510
  ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
20511
else
20512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20513
for as_dir in $PATH
20514
do
20515
  IFS=$as_save_IFS
20516
  test -z "$as_dir" && as_dir=.
20517
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
20519
    ac_cv_prog_HAVE_PKGCONFIG="yes"
20520
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20521
    break 2
20522
  fi
20523
done
20524
done
20525
IFS=$as_save_IFS
20526
20527
  test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
20528
fi
20529
fi
20530
HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
20531
if test -n "$HAVE_PKGCONFIG"; then
20532
  { echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
20533
echo "${ECHO_T}$HAVE_PKGCONFIG" >&6; }
20534
else
20535
  { echo "$as_me:$LINENO: result: no" >&5
20536
echo "${ECHO_T}no" >&6; }
20537
fi
20538
20539
20540
20541
if test "x$HAVE_PKGCONFIG" = "xno"; then
20542
  { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5
20543
echo "$as_me: error: you need to have pkgconfig installed !" >&2;}
20544
   { (exit 1); exit 1; }; }
20545
fi
20546
20547
20548
20549
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20550
	if test -n "$ac_tool_prefix"; then
20551
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20552
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20553
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20555
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20556
  echo $ECHO_N "(cached) $ECHO_C" >&6
20557
else
20558
  case $PKG_CONFIG in
20559
  [\\/]* | ?:[\\/]*)
20560
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20561
  ;;
20562
  *)
20563
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20564
for as_dir in $PATH
20565
do
20566
  IFS=$as_save_IFS
20567
  test -z "$as_dir" && as_dir=.
20568
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20569
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
20570
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20571
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20572
    break 2
20573
  fi
20574
done
20575
done
20576
IFS=$as_save_IFS
20577
20578
  ;;
20579
esac
20580
fi
20581
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20582
if test -n "$PKG_CONFIG"; then
20583
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20584
echo "${ECHO_T}$PKG_CONFIG" >&6; }
20585
else
20586
  { echo "$as_me:$LINENO: result: no" >&5
20587
echo "${ECHO_T}no" >&6; }
20588
fi
20589
20590
20591
fi
20592
if test -z "$ac_cv_path_PKG_CONFIG"; then
20593
  ac_pt_PKG_CONFIG=$PKG_CONFIG
20594
  # Extract the first word of "pkg-config", so it can be a program name with args.
20595
set dummy pkg-config; ac_word=$2
20596
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20597
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20598
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20599
  echo $ECHO_N "(cached) $ECHO_C" >&6
20600
else
20601
  case $ac_pt_PKG_CONFIG in
20602
  [\\/]* | ?:[\\/]*)
20603
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20604
  ;;
20605
  *)
20606
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20607
for as_dir in $PATH
20608
do
20609
  IFS=$as_save_IFS
20610
  test -z "$as_dir" && as_dir=.
20611
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20612
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
20613
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20614
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20615
    break 2
20616
  fi
20617
done
20618
done
20619
IFS=$as_save_IFS
20620
20621
  ;;
20622
esac
20623
fi
20624
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20625
if test -n "$ac_pt_PKG_CONFIG"; then
20626
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20627
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20628
else
20629
  { echo "$as_me:$LINENO: result: no" >&5
20630
echo "${ECHO_T}no" >&6; }
20631
fi
20632
20633
  if test "x$ac_pt_PKG_CONFIG" = x; then
20634
    PKG_CONFIG=""
20635
  else
20636
    case $cross_compiling:$ac_tool_warned in
20637
yes:)
20638
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20639
whose name does not start with the host triplet.  If you think this
20640
configuration is useful to you, please write to autoconf@gnu.org." >&5
20641
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20642
whose name does not start with the host triplet.  If you think this
20643
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20644
ac_tool_warned=yes ;;
20645
esac
20646
    PKG_CONFIG=$ac_pt_PKG_CONFIG
20647
  fi
20648
else
20649
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20650
fi
20651
20652
fi
20653
if test -n "$PKG_CONFIG"; then
20654
	_pkg_min_version=0.9.0
20655
	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20656
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20657
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20658
		{ echo "$as_me:$LINENO: result: yes" >&5
20659
echo "${ECHO_T}yes" >&6; }
20660
	else
20661
		{ echo "$as_me:$LINENO: result: no" >&5
20662
echo "${ECHO_T}no" >&6; }
20663
		PKG_CONFIG=""
20664
	fi
20665
20666
fi
20667
20668
pkg_failed=no
20669
{ echo "$as_me:$LINENO: checking for NAUTILUS" >&5
20670
echo $ECHO_N "checking for NAUTILUS... $ECHO_C" >&6; }
20671
20672
if test -n "$PKG_CONFIG"; then
20673
    if test -n "$NAUTILUS_CFLAGS"; then
20674
        pkg_cv_NAUTILUS_CFLAGS="$NAUTILUS_CFLAGS"
20675
    else
20676
        if test -n "$PKG_CONFIG" && \
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
20677
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnautilus-extension >= \$NAUTILUS_REQUIRED\"") >&5
20678
  ($PKG_CONFIG --exists --print-errors "libnautilus-extension >= $NAUTILUS_REQUIRED") 2>&5
1 by Sebastien Bacher
Import upstream version 0.7.1
20679
  ac_status=$?
20680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681
  (exit $ac_status); }; then
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
20682
  pkg_cv_NAUTILUS_CFLAGS=`$PKG_CONFIG --cflags "libnautilus-extension >= $NAUTILUS_REQUIRED" 2>/dev/null`
1 by Sebastien Bacher
Import upstream version 0.7.1
20683
else
20684
  pkg_failed=yes
20685
fi
20686
    fi
20687
else
20688
	pkg_failed=untried
20689
fi
20690
if test -n "$PKG_CONFIG"; then
20691
    if test -n "$NAUTILUS_LIBS"; then
20692
        pkg_cv_NAUTILUS_LIBS="$NAUTILUS_LIBS"
20693
    else
20694
        if test -n "$PKG_CONFIG" && \
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
20695
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnautilus-extension >= \$NAUTILUS_REQUIRED\"") >&5
20696
  ($PKG_CONFIG --exists --print-errors "libnautilus-extension >= $NAUTILUS_REQUIRED") 2>&5
1 by Sebastien Bacher
Import upstream version 0.7.1
20697
  ac_status=$?
20698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699
  (exit $ac_status); }; then
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
20700
  pkg_cv_NAUTILUS_LIBS=`$PKG_CONFIG --libs "libnautilus-extension >= $NAUTILUS_REQUIRED" 2>/dev/null`
1 by Sebastien Bacher
Import upstream version 0.7.1
20701
else
20702
  pkg_failed=yes
20703
fi
20704
    fi
20705
else
20706
	pkg_failed=untried
20707
fi
20708
20709
20710
20711
if test $pkg_failed = yes; then
20712
20713
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20714
        _pkg_short_errors_supported=yes
20715
else
20716
        _pkg_short_errors_supported=no
20717
fi
20718
        if test $_pkg_short_errors_supported = yes; then
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
20719
	        NAUTILUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnautilus-extension >= $NAUTILUS_REQUIRED"`
1 by Sebastien Bacher
Import upstream version 0.7.1
20720
        else
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
20721
	        NAUTILUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnautilus-extension >= $NAUTILUS_REQUIRED"`
1 by Sebastien Bacher
Import upstream version 0.7.1
20722
        fi
20723
	# Put the nasty error message in config.log where it belongs
20724
	echo "$NAUTILUS_PKG_ERRORS" >&5
20725
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
20726
	{ { echo "$as_me:$LINENO: error: Package requirements (libnautilus-extension >= $NAUTILUS_REQUIRED) were not met:
1 by Sebastien Bacher
Import upstream version 0.7.1
20727
20728
$NAUTILUS_PKG_ERRORS
20729
20730
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20731
installed software in a non-standard prefix.
20732
20733
Alternatively, you may set the environment variables NAUTILUS_CFLAGS
20734
and NAUTILUS_LIBS to avoid the need to call pkg-config.
20735
See the pkg-config man page for more details.
20736
" >&5
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
20737
echo "$as_me: error: Package requirements (libnautilus-extension >= $NAUTILUS_REQUIRED) were not met:
1 by Sebastien Bacher
Import upstream version 0.7.1
20738
20739
$NAUTILUS_PKG_ERRORS
20740
20741
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20742
installed software in a non-standard prefix.
20743
20744
Alternatively, you may set the environment variables NAUTILUS_CFLAGS
20745
and NAUTILUS_LIBS to avoid the need to call pkg-config.
20746
See the pkg-config man page for more details.
20747
" >&2;}
20748
   { (exit 1); exit 1; }; }
20749
elif test $pkg_failed = untried; then
20750
	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20751
is in your PATH or set the PKG_CONFIG environment variable to the full
20752
path to pkg-config.
20753
20754
Alternatively, you may set the environment variables NAUTILUS_CFLAGS
20755
and NAUTILUS_LIBS to avoid the need to call pkg-config.
20756
See the pkg-config man page for more details.
20757
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20758
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1 by Sebastien Bacher
Import upstream version 0.7.1
20759
See \`config.log' for more details." >&5
20760
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20761
is in your PATH or set the PKG_CONFIG environment variable to the full
20762
path to pkg-config.
20763
20764
Alternatively, you may set the environment variables NAUTILUS_CFLAGS
20765
and NAUTILUS_LIBS to avoid the need to call pkg-config.
20766
See the pkg-config man page for more details.
20767
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20768
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1 by Sebastien Bacher
Import upstream version 0.7.1
20769
See \`config.log' for more details." >&2;}
20770
   { (exit 1); exit 1; }; }
20771
else
20772
	NAUTILUS_CFLAGS=$pkg_cv_NAUTILUS_CFLAGS
20773
	NAUTILUS_LIBS=$pkg_cv_NAUTILUS_LIBS
20774
        { echo "$as_me:$LINENO: result: yes" >&5
20775
echo "${ECHO_T}yes" >&6; }
20776
	:
20777
fi
20778
20779
pkg_failed=no
20780
{ echo "$as_me:$LINENO: checking for GLIB" >&5
20781
echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
20782
20783
if test -n "$PKG_CONFIG"; then
20784
    if test -n "$GLIB_CFLAGS"; then
20785
        pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20786
    else
20787
        if test -n "$PKG_CONFIG" && \
20788
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED\"") >&5
20789
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED") 2>&5
20790
  ac_status=$?
20791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792
  (exit $ac_status); }; then
20793
  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
20794
else
20795
  pkg_failed=yes
20796
fi
20797
    fi
20798
else
20799
	pkg_failed=untried
20800
fi
20801
if test -n "$PKG_CONFIG"; then
20802
    if test -n "$GLIB_LIBS"; then
20803
        pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20804
    else
20805
        if test -n "$PKG_CONFIG" && \
20806
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED\"") >&5
20807
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED") 2>&5
20808
  ac_status=$?
20809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810
  (exit $ac_status); }; then
20811
  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null`
20812
else
20813
  pkg_failed=yes
20814
fi
20815
    fi
20816
else
20817
	pkg_failed=untried
20818
fi
20819
20820
20821
20822
if test $pkg_failed = yes; then
20823
20824
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20825
        _pkg_short_errors_supported=yes
20826
else
20827
        _pkg_short_errors_supported=no
20828
fi
20829
        if test $_pkg_short_errors_supported = yes; then
20830
	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED"`
20831
        else
20832
	        GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED"`
20833
        fi
20834
	# Put the nasty error message in config.log where it belongs
20835
	echo "$GLIB_PKG_ERRORS" >&5
20836
20837
	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED) were not met:
20838
20839
$GLIB_PKG_ERRORS
20840
20841
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20842
installed software in a non-standard prefix.
20843
20844
Alternatively, you may set the environment variables GLIB_CFLAGS
20845
and GLIB_LIBS to avoid the need to call pkg-config.
20846
See the pkg-config man page for more details.
20847
" >&5
20848
echo "$as_me: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED) were not met:
20849
20850
$GLIB_PKG_ERRORS
20851
20852
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20853
installed software in a non-standard prefix.
20854
20855
Alternatively, you may set the environment variables GLIB_CFLAGS
20856
and GLIB_LIBS to avoid the need to call pkg-config.
20857
See the pkg-config man page for more details.
20858
" >&2;}
20859
   { (exit 1); exit 1; }; }
20860
elif test $pkg_failed = untried; then
20861
	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20862
is in your PATH or set the PKG_CONFIG environment variable to the full
20863
path to pkg-config.
20864
20865
Alternatively, you may set the environment variables GLIB_CFLAGS
20866
and GLIB_LIBS to avoid the need to call pkg-config.
20867
See the pkg-config man page for more details.
20868
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20869
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1 by Sebastien Bacher
Import upstream version 0.7.1
20870
See \`config.log' for more details." >&5
20871
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20872
is in your PATH or set the PKG_CONFIG environment variable to the full
20873
path to pkg-config.
20874
20875
Alternatively, you may set the environment variables GLIB_CFLAGS
20876
and GLIB_LIBS to avoid the need to call pkg-config.
20877
See the pkg-config man page for more details.
20878
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20879
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1 by Sebastien Bacher
Import upstream version 0.7.1
20880
See \`config.log' for more details." >&2;}
20881
   { (exit 1); exit 1; }; }
20882
else
20883
	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20884
	GLIB_LIBS=$pkg_cv_GLIB_LIBS
20885
        { echo "$as_me:$LINENO: result: yes" >&5
20886
echo "${ECHO_T}yes" >&6; }
20887
	:
20888
fi
20889
20890
if test "x${prefix}" = "xNONE"; then
20891
20892
cat >>confdefs.h <<_ACEOF
20893
#define PIXMAPS_DIR "${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
20894
_ACEOF
20895
20896
  pixmapsdir="${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
20897
20898
cat >>confdefs.h <<_ACEOF
20899
#define INTERFACES_DIR "${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/interfaces"
20900
_ACEOF
20901
20902
  interfacesdir="${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/interfaces"
20903
else
20904
20905
cat >>confdefs.h <<_ACEOF
20906
#define PIXMAPS_DIR "${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
20907
_ACEOF
20908
20909
  pixmapsdir="${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
20910
20911
cat >>confdefs.h <<_ACEOF
20912
#define INTERFACES_DIR "${prefix}/${DATADIRNAME}/${PACKAGE}/interfaces"
20913
_ACEOF
20914
20915
  interfacesdir="${prefix}/${DATADIRNAME}/${PACKAGE}/interfaces"
20916
fi
20917
20918
20919
20920
20921
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20922
ALL_LINGUAS="ar ca en_GB es de dz eu fi fr hu it pl pt_BR"
1 by Sebastien Bacher
Import upstream version 0.7.1
20923
GETTEXT_PACKAGE=nautilus-share
20924
20925
20926
cat >>confdefs.h <<_ACEOF
20927
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
20928
_ACEOF
20929
20930
20931
20932
for ac_header in locale.h
20933
do
20934
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20935
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20936
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20937
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20938
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20939
  echo $ECHO_N "(cached) $ECHO_C" >&6
20940
fi
20941
ac_res=`eval echo '${'$as_ac_Header'}'`
20942
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20943
echo "${ECHO_T}$ac_res" >&6; }
20944
else
20945
  # Is the header compilable?
20946
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20947
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20948
cat >conftest.$ac_ext <<_ACEOF
20949
/* confdefs.h.  */
20950
_ACEOF
20951
cat confdefs.h >>conftest.$ac_ext
20952
cat >>conftest.$ac_ext <<_ACEOF
20953
/* end confdefs.h.  */
20954
$ac_includes_default
20955
#include <$ac_header>
20956
_ACEOF
20957
rm -f conftest.$ac_objext
20958
if { (ac_try="$ac_compile"
20959
case "(($ac_try" in
20960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961
  *) ac_try_echo=$ac_try;;
20962
esac
20963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964
  (eval "$ac_compile") 2>conftest.er1
20965
  ac_status=$?
20966
  grep -v '^ *+' conftest.er1 >conftest.err
20967
  rm -f conftest.er1
20968
  cat conftest.err >&5
20969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
20970
  (exit $ac_status); } && {
20971
	 test -z "$ac_c_werror_flag" ||
20972
	 test ! -s conftest.err
20973
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
20974
  ac_header_compiler=yes
20975
else
20976
  echo "$as_me: failed program was:" >&5
20977
sed 's/^/| /' conftest.$ac_ext >&5
20978
20979
	ac_header_compiler=no
20980
fi
20981
20982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20984
echo "${ECHO_T}$ac_header_compiler" >&6; }
20985
20986
# Is the header present?
20987
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20988
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20989
cat >conftest.$ac_ext <<_ACEOF
20990
/* confdefs.h.  */
20991
_ACEOF
20992
cat confdefs.h >>conftest.$ac_ext
20993
cat >>conftest.$ac_ext <<_ACEOF
20994
/* end confdefs.h.  */
20995
#include <$ac_header>
20996
_ACEOF
20997
if { (ac_try="$ac_cpp conftest.$ac_ext"
20998
case "(($ac_try" in
20999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000
  *) ac_try_echo=$ac_try;;
21001
esac
21002
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21004
  ac_status=$?
21005
  grep -v '^ *+' conftest.er1 >conftest.err
21006
  rm -f conftest.er1
21007
  cat conftest.err >&5
21008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21009
  (exit $ac_status); } >/dev/null && {
21010
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21011
	 test ! -s conftest.err
21012
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21013
  ac_header_preproc=yes
21014
else
21015
  echo "$as_me: failed program was:" >&5
21016
sed 's/^/| /' conftest.$ac_ext >&5
21017
21018
  ac_header_preproc=no
21019
fi
21020
21021
rm -f conftest.err conftest.$ac_ext
21022
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21023
echo "${ECHO_T}$ac_header_preproc" >&6; }
21024
21025
# So?  What about this header?
21026
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21027
  yes:no: )
21028
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21029
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21030
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21031
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21032
    ac_header_preproc=yes
21033
    ;;
21034
  no:yes:* )
21035
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21036
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21037
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21038
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21039
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21040
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21041
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21042
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21043
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21044
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21045
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21046
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21047
21048
    ;;
21049
esac
21050
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21051
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21052
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21053
  echo $ECHO_N "(cached) $ECHO_C" >&6
21054
else
21055
  eval "$as_ac_Header=\$ac_header_preproc"
21056
fi
21057
ac_res=`eval echo '${'$as_ac_Header'}'`
21058
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21059
echo "${ECHO_T}$ac_res" >&6; }
21060
21061
fi
21062
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21063
  cat >>confdefs.h <<_ACEOF
21064
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21065
_ACEOF
21066
21067
fi
21068
21069
done
21070
21071
    if test $ac_cv_header_locale_h = yes; then
21072
    { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
21073
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
21074
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
21075
  echo $ECHO_N "(cached) $ECHO_C" >&6
21076
else
21077
  cat >conftest.$ac_ext <<_ACEOF
21078
/* confdefs.h.  */
21079
_ACEOF
21080
cat confdefs.h >>conftest.$ac_ext
21081
cat >>conftest.$ac_ext <<_ACEOF
21082
/* end confdefs.h.  */
21083
#include <locale.h>
21084
int
21085
main ()
21086
{
21087
return LC_MESSAGES
21088
  ;
21089
  return 0;
21090
}
21091
_ACEOF
21092
rm -f conftest.$ac_objext conftest$ac_exeext
21093
if { (ac_try="$ac_link"
21094
case "(($ac_try" in
21095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096
  *) ac_try_echo=$ac_try;;
21097
esac
21098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099
  (eval "$ac_link") 2>conftest.er1
21100
  ac_status=$?
21101
  grep -v '^ *+' conftest.er1 >conftest.err
21102
  rm -f conftest.er1
21103
  cat conftest.err >&5
21104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21105
  (exit $ac_status); } && {
21106
	 test -z "$ac_c_werror_flag" ||
21107
	 test ! -s conftest.err
21108
       } && test -s conftest$ac_exeext &&
21109
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21110
  am_cv_val_LC_MESSAGES=yes
21111
else
21112
  echo "$as_me: failed program was:" >&5
21113
sed 's/^/| /' conftest.$ac_ext >&5
21114
21115
	am_cv_val_LC_MESSAGES=no
21116
fi
21117
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21118
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21119
      conftest$ac_exeext conftest.$ac_ext
21120
fi
21121
{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
21122
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
21123
    if test $am_cv_val_LC_MESSAGES = yes; then
21124
21125
cat >>confdefs.h <<\_ACEOF
21126
#define HAVE_LC_MESSAGES 1
21127
_ACEOF
21128
21129
    fi
21130
  fi
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21131
         USE_NLS=yes
1 by Sebastien Bacher
Import upstream version 0.7.1
21132
21133
21134
    gt_cv_have_gettext=no
21135
21136
    CATOBJEXT=NONE
21137
    XGETTEXT=:
21138
    INTLLIBS=
21139
21140
    if test "${ac_cv_header_libintl_h+set}" = set; then
21141
  { echo "$as_me:$LINENO: checking for libintl.h" >&5
21142
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
21143
if test "${ac_cv_header_libintl_h+set}" = set; then
21144
  echo $ECHO_N "(cached) $ECHO_C" >&6
21145
fi
21146
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21147
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
21148
else
21149
  # Is the header compilable?
21150
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
21151
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
21152
cat >conftest.$ac_ext <<_ACEOF
21153
/* confdefs.h.  */
21154
_ACEOF
21155
cat confdefs.h >>conftest.$ac_ext
21156
cat >>conftest.$ac_ext <<_ACEOF
21157
/* end confdefs.h.  */
21158
$ac_includes_default
21159
#include <libintl.h>
21160
_ACEOF
21161
rm -f conftest.$ac_objext
21162
if { (ac_try="$ac_compile"
21163
case "(($ac_try" in
21164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165
  *) ac_try_echo=$ac_try;;
21166
esac
21167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168
  (eval "$ac_compile") 2>conftest.er1
21169
  ac_status=$?
21170
  grep -v '^ *+' conftest.er1 >conftest.err
21171
  rm -f conftest.er1
21172
  cat conftest.err >&5
21173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21174
  (exit $ac_status); } && {
21175
	 test -z "$ac_c_werror_flag" ||
21176
	 test ! -s conftest.err
21177
       } && test -s conftest.$ac_objext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21178
  ac_header_compiler=yes
21179
else
21180
  echo "$as_me: failed program was:" >&5
21181
sed 's/^/| /' conftest.$ac_ext >&5
21182
21183
	ac_header_compiler=no
21184
fi
21185
21186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21187
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21188
echo "${ECHO_T}$ac_header_compiler" >&6; }
21189
21190
# Is the header present?
21191
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
21192
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
21193
cat >conftest.$ac_ext <<_ACEOF
21194
/* confdefs.h.  */
21195
_ACEOF
21196
cat confdefs.h >>conftest.$ac_ext
21197
cat >>conftest.$ac_ext <<_ACEOF
21198
/* end confdefs.h.  */
21199
#include <libintl.h>
21200
_ACEOF
21201
if { (ac_try="$ac_cpp conftest.$ac_ext"
21202
case "(($ac_try" in
21203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204
  *) ac_try_echo=$ac_try;;
21205
esac
21206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21208
  ac_status=$?
21209
  grep -v '^ *+' conftest.er1 >conftest.err
21210
  rm -f conftest.er1
21211
  cat conftest.err >&5
21212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21213
  (exit $ac_status); } >/dev/null && {
21214
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21215
	 test ! -s conftest.err
21216
       }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21217
  ac_header_preproc=yes
21218
else
21219
  echo "$as_me: failed program was:" >&5
21220
sed 's/^/| /' conftest.$ac_ext >&5
21221
21222
  ac_header_preproc=no
21223
fi
21224
21225
rm -f conftest.err conftest.$ac_ext
21226
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21227
echo "${ECHO_T}$ac_header_preproc" >&6; }
21228
21229
# So?  What about this header?
21230
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21231
  yes:no: )
21232
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21233
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21234
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21235
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21236
    ac_header_preproc=yes
21237
    ;;
21238
  no:yes:* )
21239
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21240
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21241
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
21242
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
21243
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21244
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21245
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
21246
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21247
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21248
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21249
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21250
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21251
21252
    ;;
21253
esac
21254
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
21255
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
21256
if test "${ac_cv_header_libintl_h+set}" = set; then
21257
  echo $ECHO_N "(cached) $ECHO_C" >&6
21258
else
21259
  ac_cv_header_libintl_h=$ac_header_preproc
21260
fi
21261
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21262
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
21263
21264
fi
21265
if test $ac_cv_header_libintl_h = yes; then
21266
  gt_cv_func_dgettext_libintl="no"
21267
      libintl_extra_libs=""
21268
21269
      #
21270
      # First check in libc
21271
      #
21272
      { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
21273
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
21274
if test "${gt_cv_func_ngettext_libc+set}" = set; then
21275
  echo $ECHO_N "(cached) $ECHO_C" >&6
21276
else
21277
  cat >conftest.$ac_ext <<_ACEOF
21278
/* confdefs.h.  */
21279
_ACEOF
21280
cat confdefs.h >>conftest.$ac_ext
21281
cat >>conftest.$ac_ext <<_ACEOF
21282
/* end confdefs.h.  */
21283
21284
#include <libintl.h>
21285
21286
int
21287
main ()
21288
{
21289
return !ngettext ("","", 1)
21290
  ;
21291
  return 0;
21292
}
21293
_ACEOF
21294
rm -f conftest.$ac_objext conftest$ac_exeext
21295
if { (ac_try="$ac_link"
21296
case "(($ac_try" in
21297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298
  *) ac_try_echo=$ac_try;;
21299
esac
21300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301
  (eval "$ac_link") 2>conftest.er1
21302
  ac_status=$?
21303
  grep -v '^ *+' conftest.er1 >conftest.err
21304
  rm -f conftest.er1
21305
  cat conftest.err >&5
21306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21307
  (exit $ac_status); } && {
21308
	 test -z "$ac_c_werror_flag" ||
21309
	 test ! -s conftest.err
21310
       } && test -s conftest$ac_exeext &&
21311
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21312
  gt_cv_func_ngettext_libc=yes
21313
else
21314
  echo "$as_me: failed program was:" >&5
21315
sed 's/^/| /' conftest.$ac_ext >&5
21316
21317
	gt_cv_func_ngettext_libc=no
21318
fi
21319
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21320
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21321
      conftest$ac_exeext conftest.$ac_ext
21322
21323
fi
21324
{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
21325
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
21326
21327
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21328
	      { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
21329
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
21330
if test "${gt_cv_func_dgettext_libc+set}" = set; then
21331
  echo $ECHO_N "(cached) $ECHO_C" >&6
21332
else
21333
  cat >conftest.$ac_ext <<_ACEOF
21334
/* confdefs.h.  */
21335
_ACEOF
21336
cat confdefs.h >>conftest.$ac_ext
21337
cat >>conftest.$ac_ext <<_ACEOF
21338
/* end confdefs.h.  */
21339
21340
#include <libintl.h>
21341
21342
int
21343
main ()
21344
{
21345
return !dgettext ("","")
21346
  ;
21347
  return 0;
21348
}
21349
_ACEOF
21350
rm -f conftest.$ac_objext conftest$ac_exeext
21351
if { (ac_try="$ac_link"
21352
case "(($ac_try" in
21353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354
  *) ac_try_echo=$ac_try;;
21355
esac
21356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357
  (eval "$ac_link") 2>conftest.er1
21358
  ac_status=$?
21359
  grep -v '^ *+' conftest.er1 >conftest.err
21360
  rm -f conftest.er1
21361
  cat conftest.err >&5
21362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21363
  (exit $ac_status); } && {
21364
	 test -z "$ac_c_werror_flag" ||
21365
	 test ! -s conftest.err
21366
       } && test -s conftest$ac_exeext &&
21367
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21368
  gt_cv_func_dgettext_libc=yes
21369
else
21370
  echo "$as_me: failed program was:" >&5
21371
sed 's/^/| /' conftest.$ac_ext >&5
21372
21373
	gt_cv_func_dgettext_libc=no
21374
fi
21375
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21376
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21377
      conftest$ac_exeext conftest.$ac_ext
21378
21379
fi
21380
{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
21381
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
21382
      fi
21383
21384
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21385
21386
for ac_func in bind_textdomain_codeset
21387
do
21388
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21389
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21390
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21391
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21392
  echo $ECHO_N "(cached) $ECHO_C" >&6
21393
else
21394
  cat >conftest.$ac_ext <<_ACEOF
21395
/* confdefs.h.  */
21396
_ACEOF
21397
cat confdefs.h >>conftest.$ac_ext
21398
cat >>conftest.$ac_ext <<_ACEOF
21399
/* end confdefs.h.  */
21400
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21401
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21402
#define $ac_func innocuous_$ac_func
21403
21404
/* System header to define __stub macros and hopefully few prototypes,
21405
    which can conflict with char $ac_func (); below.
21406
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21407
    <limits.h> exists even on freestanding compilers.  */
21408
21409
#ifdef __STDC__
21410
# include <limits.h>
21411
#else
21412
# include <assert.h>
21413
#endif
21414
21415
#undef $ac_func
21416
21417
/* Override any GCC internal prototype to avoid an error.
21418
   Use char because int might match the return type of a GCC
21419
   builtin and then its argument prototype would still apply.  */
21420
#ifdef __cplusplus
21421
extern "C"
21422
#endif
21423
char $ac_func ();
21424
/* The GNU C library defines this for functions which it implements
21425
    to always fail with ENOSYS.  Some functions are actually named
21426
    something starting with __ and the normal name is an alias.  */
21427
#if defined __stub_$ac_func || defined __stub___$ac_func
21428
choke me
21429
#endif
21430
21431
int
21432
main ()
21433
{
21434
return $ac_func ();
21435
  ;
21436
  return 0;
21437
}
21438
_ACEOF
21439
rm -f conftest.$ac_objext conftest$ac_exeext
21440
if { (ac_try="$ac_link"
21441
case "(($ac_try" in
21442
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443
  *) ac_try_echo=$ac_try;;
21444
esac
21445
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446
  (eval "$ac_link") 2>conftest.er1
21447
  ac_status=$?
21448
  grep -v '^ *+' conftest.er1 >conftest.err
21449
  rm -f conftest.er1
21450
  cat conftest.err >&5
21451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21452
  (exit $ac_status); } && {
21453
	 test -z "$ac_c_werror_flag" ||
21454
	 test ! -s conftest.err
21455
       } && test -s conftest$ac_exeext &&
21456
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21457
  eval "$as_ac_var=yes"
21458
else
21459
  echo "$as_me: failed program was:" >&5
21460
sed 's/^/| /' conftest.$ac_ext >&5
21461
21462
	eval "$as_ac_var=no"
21463
fi
21464
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21465
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21466
      conftest$ac_exeext conftest.$ac_ext
21467
fi
21468
ac_res=`eval echo '${'$as_ac_var'}'`
21469
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21470
echo "${ECHO_T}$ac_res" >&6; }
21471
if test `eval echo '${'$as_ac_var'}'` = yes; then
21472
  cat >>confdefs.h <<_ACEOF
21473
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21474
_ACEOF
21475
21476
fi
21477
done
21478
21479
      fi
21480
21481
      #
21482
      # If we don't have everything we want, check in libintl
21483
      #
21484
      if test "$gt_cv_func_dgettext_libc" != "yes" \
21485
	 || test "$gt_cv_func_ngettext_libc" != "yes" \
21486
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
21487
21488
        { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
21489
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
21490
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
21491
  echo $ECHO_N "(cached) $ECHO_C" >&6
21492
else
21493
  ac_check_lib_save_LIBS=$LIBS
21494
LIBS="-lintl  $LIBS"
21495
cat >conftest.$ac_ext <<_ACEOF
21496
/* confdefs.h.  */
21497
_ACEOF
21498
cat confdefs.h >>conftest.$ac_ext
21499
cat >>conftest.$ac_ext <<_ACEOF
21500
/* end confdefs.h.  */
21501
21502
/* Override any GCC internal prototype to avoid an error.
21503
   Use char because int might match the return type of a GCC
21504
   builtin and then its argument prototype would still apply.  */
21505
#ifdef __cplusplus
21506
extern "C"
21507
#endif
21508
char bindtextdomain ();
21509
int
21510
main ()
21511
{
21512
return bindtextdomain ();
21513
  ;
21514
  return 0;
21515
}
21516
_ACEOF
21517
rm -f conftest.$ac_objext conftest$ac_exeext
21518
if { (ac_try="$ac_link"
21519
case "(($ac_try" in
21520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521
  *) ac_try_echo=$ac_try;;
21522
esac
21523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524
  (eval "$ac_link") 2>conftest.er1
21525
  ac_status=$?
21526
  grep -v '^ *+' conftest.er1 >conftest.err
21527
  rm -f conftest.er1
21528
  cat conftest.err >&5
21529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21530
  (exit $ac_status); } && {
21531
	 test -z "$ac_c_werror_flag" ||
21532
	 test ! -s conftest.err
21533
       } && test -s conftest$ac_exeext &&
21534
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21535
  ac_cv_lib_intl_bindtextdomain=yes
21536
else
21537
  echo "$as_me: failed program was:" >&5
21538
sed 's/^/| /' conftest.$ac_ext >&5
21539
21540
	ac_cv_lib_intl_bindtextdomain=no
21541
fi
21542
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21543
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21544
      conftest$ac_exeext conftest.$ac_ext
21545
LIBS=$ac_check_lib_save_LIBS
21546
fi
21547
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
21548
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
21549
if test $ac_cv_lib_intl_bindtextdomain = yes; then
21550
  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21551
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
21552
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21553
  echo $ECHO_N "(cached) $ECHO_C" >&6
21554
else
21555
  ac_check_lib_save_LIBS=$LIBS
21556
LIBS="-lintl  $LIBS"
21557
cat >conftest.$ac_ext <<_ACEOF
21558
/* confdefs.h.  */
21559
_ACEOF
21560
cat confdefs.h >>conftest.$ac_ext
21561
cat >>conftest.$ac_ext <<_ACEOF
21562
/* end confdefs.h.  */
21563
21564
/* Override any GCC internal prototype to avoid an error.
21565
   Use char because int might match the return type of a GCC
21566
   builtin and then its argument prototype would still apply.  */
21567
#ifdef __cplusplus
21568
extern "C"
21569
#endif
21570
char ngettext ();
21571
int
21572
main ()
21573
{
21574
return ngettext ();
21575
  ;
21576
  return 0;
21577
}
21578
_ACEOF
21579
rm -f conftest.$ac_objext conftest$ac_exeext
21580
if { (ac_try="$ac_link"
21581
case "(($ac_try" in
21582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583
  *) ac_try_echo=$ac_try;;
21584
esac
21585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586
  (eval "$ac_link") 2>conftest.er1
21587
  ac_status=$?
21588
  grep -v '^ *+' conftest.er1 >conftest.err
21589
  rm -f conftest.er1
21590
  cat conftest.err >&5
21591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21592
  (exit $ac_status); } && {
21593
	 test -z "$ac_c_werror_flag" ||
21594
	 test ! -s conftest.err
21595
       } && test -s conftest$ac_exeext &&
21596
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21597
  ac_cv_lib_intl_ngettext=yes
21598
else
21599
  echo "$as_me: failed program was:" >&5
21600
sed 's/^/| /' conftest.$ac_ext >&5
21601
21602
	ac_cv_lib_intl_ngettext=no
21603
fi
21604
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21605
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21606
      conftest$ac_exeext conftest.$ac_ext
21607
LIBS=$ac_check_lib_save_LIBS
21608
fi
21609
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21610
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21611
if test $ac_cv_lib_intl_ngettext = yes; then
21612
  { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21613
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21614
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21615
  echo $ECHO_N "(cached) $ECHO_C" >&6
21616
else
21617
  ac_check_lib_save_LIBS=$LIBS
21618
LIBS="-lintl  $LIBS"
21619
cat >conftest.$ac_ext <<_ACEOF
21620
/* confdefs.h.  */
21621
_ACEOF
21622
cat confdefs.h >>conftest.$ac_ext
21623
cat >>conftest.$ac_ext <<_ACEOF
21624
/* end confdefs.h.  */
21625
21626
/* Override any GCC internal prototype to avoid an error.
21627
   Use char because int might match the return type of a GCC
21628
   builtin and then its argument prototype would still apply.  */
21629
#ifdef __cplusplus
21630
extern "C"
21631
#endif
21632
char dgettext ();
21633
int
21634
main ()
21635
{
21636
return dgettext ();
21637
  ;
21638
  return 0;
21639
}
21640
_ACEOF
21641
rm -f conftest.$ac_objext conftest$ac_exeext
21642
if { (ac_try="$ac_link"
21643
case "(($ac_try" in
21644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645
  *) ac_try_echo=$ac_try;;
21646
esac
21647
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21648
  (eval "$ac_link") 2>conftest.er1
21649
  ac_status=$?
21650
  grep -v '^ *+' conftest.er1 >conftest.err
21651
  rm -f conftest.er1
21652
  cat conftest.err >&5
21653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21654
  (exit $ac_status); } && {
21655
	 test -z "$ac_c_werror_flag" ||
21656
	 test ! -s conftest.err
21657
       } && test -s conftest$ac_exeext &&
21658
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21659
  ac_cv_lib_intl_dgettext=yes
21660
else
21661
  echo "$as_me: failed program was:" >&5
21662
sed 's/^/| /' conftest.$ac_ext >&5
21663
21664
	ac_cv_lib_intl_dgettext=no
21665
fi
21666
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21667
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21668
      conftest$ac_exeext conftest.$ac_ext
21669
LIBS=$ac_check_lib_save_LIBS
21670
fi
21671
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21672
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21673
if test $ac_cv_lib_intl_dgettext = yes; then
21674
  gt_cv_func_dgettext_libintl=yes
21675
fi
21676
21677
fi
21678
21679
fi
21680
21681
21682
	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
21683
	  { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
21684
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
21685
	  { echo "$as_me:$LINENO: result: " >&5
21686
echo "${ECHO_T}" >&6; }
21687
  	  { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21688
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
21689
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21690
  echo $ECHO_N "(cached) $ECHO_C" >&6
21691
else
21692
  ac_check_lib_save_LIBS=$LIBS
21693
LIBS="-lintl -liconv $LIBS"
21694
cat >conftest.$ac_ext <<_ACEOF
21695
/* confdefs.h.  */
21696
_ACEOF
21697
cat confdefs.h >>conftest.$ac_ext
21698
cat >>conftest.$ac_ext <<_ACEOF
21699
/* end confdefs.h.  */
21700
21701
/* Override any GCC internal prototype to avoid an error.
21702
   Use char because int might match the return type of a GCC
21703
   builtin and then its argument prototype would still apply.  */
21704
#ifdef __cplusplus
21705
extern "C"
21706
#endif
21707
char ngettext ();
21708
int
21709
main ()
21710
{
21711
return ngettext ();
21712
  ;
21713
  return 0;
21714
}
21715
_ACEOF
21716
rm -f conftest.$ac_objext conftest$ac_exeext
21717
if { (ac_try="$ac_link"
21718
case "(($ac_try" in
21719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720
  *) ac_try_echo=$ac_try;;
21721
esac
21722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723
  (eval "$ac_link") 2>conftest.er1
21724
  ac_status=$?
21725
  grep -v '^ *+' conftest.er1 >conftest.err
21726
  rm -f conftest.er1
21727
  cat conftest.err >&5
21728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21729
  (exit $ac_status); } && {
21730
	 test -z "$ac_c_werror_flag" ||
21731
	 test ! -s conftest.err
21732
       } && test -s conftest$ac_exeext &&
21733
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21734
  ac_cv_lib_intl_ngettext=yes
21735
else
21736
  echo "$as_me: failed program was:" >&5
21737
sed 's/^/| /' conftest.$ac_ext >&5
21738
21739
	ac_cv_lib_intl_ngettext=no
21740
fi
21741
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21742
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21743
      conftest$ac_exeext conftest.$ac_ext
21744
LIBS=$ac_check_lib_save_LIBS
21745
fi
21746
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21747
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21748
if test $ac_cv_lib_intl_ngettext = yes; then
21749
  { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21750
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
21751
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21752
  echo $ECHO_N "(cached) $ECHO_C" >&6
21753
else
21754
  ac_check_lib_save_LIBS=$LIBS
21755
LIBS="-lintl -liconv $LIBS"
21756
cat >conftest.$ac_ext <<_ACEOF
21757
/* confdefs.h.  */
21758
_ACEOF
21759
cat confdefs.h >>conftest.$ac_ext
21760
cat >>conftest.$ac_ext <<_ACEOF
21761
/* end confdefs.h.  */
21762
21763
/* Override any GCC internal prototype to avoid an error.
21764
   Use char because int might match the return type of a GCC
21765
   builtin and then its argument prototype would still apply.  */
21766
#ifdef __cplusplus
21767
extern "C"
21768
#endif
21769
char dcgettext ();
21770
int
21771
main ()
21772
{
21773
return dcgettext ();
21774
  ;
21775
  return 0;
21776
}
21777
_ACEOF
21778
rm -f conftest.$ac_objext conftest$ac_exeext
21779
if { (ac_try="$ac_link"
21780
case "(($ac_try" in
21781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782
  *) ac_try_echo=$ac_try;;
21783
esac
21784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785
  (eval "$ac_link") 2>conftest.er1
21786
  ac_status=$?
21787
  grep -v '^ *+' conftest.er1 >conftest.err
21788
  rm -f conftest.er1
21789
  cat conftest.err >&5
21790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21791
  (exit $ac_status); } && {
21792
	 test -z "$ac_c_werror_flag" ||
21793
	 test ! -s conftest.err
21794
       } && test -s conftest$ac_exeext &&
21795
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21796
  ac_cv_lib_intl_dcgettext=yes
21797
else
21798
  echo "$as_me: failed program was:" >&5
21799
sed 's/^/| /' conftest.$ac_ext >&5
21800
21801
	ac_cv_lib_intl_dcgettext=no
21802
fi
21803
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21804
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21805
      conftest$ac_exeext conftest.$ac_ext
21806
LIBS=$ac_check_lib_save_LIBS
21807
fi
21808
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
21809
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
21810
if test $ac_cv_lib_intl_dcgettext = yes; then
21811
  gt_cv_func_dgettext_libintl=yes
21812
			libintl_extra_libs=-liconv
21813
else
21814
  :
21815
fi
21816
21817
else
21818
  :
21819
fi
21820
21821
        fi
21822
21823
        #
21824
        # If we found libintl, then check in it for bind_textdomain_codeset();
21825
        # we'll prefer libc if neither have bind_textdomain_codeset(),
21826
        # and both have dgettext and ngettext
21827
        #
21828
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21829
          glib_save_LIBS="$LIBS"
21830
          LIBS="$LIBS -lintl $libintl_extra_libs"
21831
          unset ac_cv_func_bind_textdomain_codeset
21832
21833
for ac_func in bind_textdomain_codeset
21834
do
21835
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21836
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21837
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21838
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21839
  echo $ECHO_N "(cached) $ECHO_C" >&6
21840
else
21841
  cat >conftest.$ac_ext <<_ACEOF
21842
/* confdefs.h.  */
21843
_ACEOF
21844
cat confdefs.h >>conftest.$ac_ext
21845
cat >>conftest.$ac_ext <<_ACEOF
21846
/* end confdefs.h.  */
21847
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21848
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21849
#define $ac_func innocuous_$ac_func
21850
21851
/* System header to define __stub macros and hopefully few prototypes,
21852
    which can conflict with char $ac_func (); below.
21853
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854
    <limits.h> exists even on freestanding compilers.  */
21855
21856
#ifdef __STDC__
21857
# include <limits.h>
21858
#else
21859
# include <assert.h>
21860
#endif
21861
21862
#undef $ac_func
21863
21864
/* Override any GCC internal prototype to avoid an error.
21865
   Use char because int might match the return type of a GCC
21866
   builtin and then its argument prototype would still apply.  */
21867
#ifdef __cplusplus
21868
extern "C"
21869
#endif
21870
char $ac_func ();
21871
/* The GNU C library defines this for functions which it implements
21872
    to always fail with ENOSYS.  Some functions are actually named
21873
    something starting with __ and the normal name is an alias.  */
21874
#if defined __stub_$ac_func || defined __stub___$ac_func
21875
choke me
21876
#endif
21877
21878
int
21879
main ()
21880
{
21881
return $ac_func ();
21882
  ;
21883
  return 0;
21884
}
21885
_ACEOF
21886
rm -f conftest.$ac_objext conftest$ac_exeext
21887
if { (ac_try="$ac_link"
21888
case "(($ac_try" in
21889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890
  *) ac_try_echo=$ac_try;;
21891
esac
21892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893
  (eval "$ac_link") 2>conftest.er1
21894
  ac_status=$?
21895
  grep -v '^ *+' conftest.er1 >conftest.err
21896
  rm -f conftest.er1
21897
  cat conftest.err >&5
21898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21899
  (exit $ac_status); } && {
21900
	 test -z "$ac_c_werror_flag" ||
21901
	 test ! -s conftest.err
21902
       } && test -s conftest$ac_exeext &&
21903
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
21904
  eval "$as_ac_var=yes"
21905
else
21906
  echo "$as_me: failed program was:" >&5
21907
sed 's/^/| /' conftest.$ac_ext >&5
21908
21909
	eval "$as_ac_var=no"
21910
fi
21911
1.1.1 by Michael Vogt
Import upstream version 0.7.2
21912
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
21913
      conftest$ac_exeext conftest.$ac_ext
21914
fi
21915
ac_res=`eval echo '${'$as_ac_var'}'`
21916
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21917
echo "${ECHO_T}$ac_res" >&6; }
21918
if test `eval echo '${'$as_ac_var'}'` = yes; then
21919
  cat >>confdefs.h <<_ACEOF
21920
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21921
_ACEOF
21922
21923
fi
21924
done
21925
21926
          LIBS="$glib_save_LIBS"
21927
21928
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21929
            gt_cv_func_dgettext_libc=no
21930
          else
21931
            if test "$gt_cv_func_dgettext_libc" = "yes" \
21932
		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
21933
              gt_cv_func_dgettext_libintl=no
21934
            fi
21935
          fi
21936
        fi
21937
      fi
21938
21939
      if test "$gt_cv_func_dgettext_libc" = "yes" \
21940
	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
21941
        gt_cv_have_gettext=yes
21942
      fi
21943
21944
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
21945
        INTLLIBS="-lintl $libintl_extra_libs"
21946
      fi
21947
21948
      if test "$gt_cv_have_gettext" = "yes"; then
21949
21950
cat >>confdefs.h <<\_ACEOF
21951
#define HAVE_GETTEXT 1
21952
_ACEOF
21953
21954
	# Extract the first word of "msgfmt", so it can be a program name with args.
21955
set dummy msgfmt; ac_word=$2
21956
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21957
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21958
if test "${ac_cv_path_MSGFMT+set}" = set; then
21959
  echo $ECHO_N "(cached) $ECHO_C" >&6
21960
else
21961
  case "$MSGFMT" in
21962
  /*)
21963
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21964
  ;;
21965
  *)
21966
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21967
  for ac_dir in $PATH; do
21968
    test -z "$ac_dir" && ac_dir=.
21969
    if test -f $ac_dir/$ac_word; then
21970
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
21971
	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
21972
	break
21973
      fi
21974
    fi
21975
  done
21976
  IFS="$ac_save_ifs"
21977
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
21978
  ;;
21979
esac
21980
fi
21981
MSGFMT="$ac_cv_path_MSGFMT"
21982
if test "$MSGFMT" != "no"; then
21983
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
21984
echo "${ECHO_T}$MSGFMT" >&6; }
21985
else
21986
  { echo "$as_me:$LINENO: result: no" >&5
21987
echo "${ECHO_T}no" >&6; }
21988
fi
21989
	if test "$MSGFMT" != "no"; then
21990
          glib_save_LIBS="$LIBS"
21991
          LIBS="$LIBS $INTLLIBS"
21992
21993
for ac_func in dcgettext
21994
do
21995
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21996
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21997
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21998
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21999
  echo $ECHO_N "(cached) $ECHO_C" >&6
22000
else
22001
  cat >conftest.$ac_ext <<_ACEOF
22002
/* confdefs.h.  */
22003
_ACEOF
22004
cat confdefs.h >>conftest.$ac_ext
22005
cat >>conftest.$ac_ext <<_ACEOF
22006
/* end confdefs.h.  */
22007
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22008
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22009
#define $ac_func innocuous_$ac_func
22010
22011
/* System header to define __stub macros and hopefully few prototypes,
22012
    which can conflict with char $ac_func (); below.
22013
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22014
    <limits.h> exists even on freestanding compilers.  */
22015
22016
#ifdef __STDC__
22017
# include <limits.h>
22018
#else
22019
# include <assert.h>
22020
#endif
22021
22022
#undef $ac_func
22023
22024
/* Override any GCC internal prototype to avoid an error.
22025
   Use char because int might match the return type of a GCC
22026
   builtin and then its argument prototype would still apply.  */
22027
#ifdef __cplusplus
22028
extern "C"
22029
#endif
22030
char $ac_func ();
22031
/* The GNU C library defines this for functions which it implements
22032
    to always fail with ENOSYS.  Some functions are actually named
22033
    something starting with __ and the normal name is an alias.  */
22034
#if defined __stub_$ac_func || defined __stub___$ac_func
22035
choke me
22036
#endif
22037
22038
int
22039
main ()
22040
{
22041
return $ac_func ();
22042
  ;
22043
  return 0;
22044
}
22045
_ACEOF
22046
rm -f conftest.$ac_objext conftest$ac_exeext
22047
if { (ac_try="$ac_link"
22048
case "(($ac_try" in
22049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050
  *) ac_try_echo=$ac_try;;
22051
esac
22052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053
  (eval "$ac_link") 2>conftest.er1
22054
  ac_status=$?
22055
  grep -v '^ *+' conftest.er1 >conftest.err
22056
  rm -f conftest.er1
22057
  cat conftest.err >&5
22058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22059
  (exit $ac_status); } && {
22060
	 test -z "$ac_c_werror_flag" ||
22061
	 test ! -s conftest.err
22062
       } && test -s conftest$ac_exeext &&
22063
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
22064
  eval "$as_ac_var=yes"
22065
else
22066
  echo "$as_me: failed program was:" >&5
22067
sed 's/^/| /' conftest.$ac_ext >&5
22068
22069
	eval "$as_ac_var=no"
22070
fi
22071
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22072
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
22073
      conftest$ac_exeext conftest.$ac_ext
22074
fi
22075
ac_res=`eval echo '${'$as_ac_var'}'`
22076
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22077
echo "${ECHO_T}$ac_res" >&6; }
22078
if test `eval echo '${'$as_ac_var'}'` = yes; then
22079
  cat >>confdefs.h <<_ACEOF
22080
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22081
_ACEOF
22082
22083
fi
22084
done
22085
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22086
	  MSGFMT_OPTS=
22087
	  { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
22088
echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
22089
	  cat >conftest.foo <<_ACEOF
22090
22091
msgid ""
22092
msgstr ""
22093
"Content-Type: text/plain; charset=UTF-8\n"
22094
"Project-Id-Version: test 1.0\n"
22095
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
22096
"Last-Translator: test <foo@bar.xx>\n"
22097
"Language-Team: C <LL@li.org>\n"
22098
"MIME-Version: 1.0\n"
22099
"Content-Transfer-Encoding: 8bit\n"
22100
22101
_ACEOF
22102
if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
22103
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
22104
  ac_status=$?
22105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106
  (exit $ac_status); }; then
22107
  MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
22108
echo "${ECHO_T}yes" >&6; }
22109
else { echo "$as_me:$LINENO: result: no" >&5
22110
echo "${ECHO_T}no" >&6; }
22111
echo "$as_me: failed input was:" >&5
22112
sed 's/^/| /' conftest.foo >&5
22113
fi
22114
1 by Sebastien Bacher
Import upstream version 0.7.1
22115
	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
22116
set dummy gmsgfmt; ac_word=$2
22117
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22118
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22119
if test "${ac_cv_path_GMSGFMT+set}" = set; then
22120
  echo $ECHO_N "(cached) $ECHO_C" >&6
22121
else
22122
  case $GMSGFMT in
22123
  [\\/]* | ?:[\\/]*)
22124
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22125
  ;;
22126
  *)
22127
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22128
for as_dir in $PATH
22129
do
22130
  IFS=$as_save_IFS
22131
  test -z "$as_dir" && as_dir=.
22132
  for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22133
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Sebastien Bacher
Import upstream version 0.7.1
22134
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22135
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22136
    break 2
22137
  fi
22138
done
22139
done
22140
IFS=$as_save_IFS
22141
22142
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22143
  ;;
22144
esac
22145
fi
22146
GMSGFMT=$ac_cv_path_GMSGFMT
22147
if test -n "$GMSGFMT"; then
22148
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22149
echo "${ECHO_T}$GMSGFMT" >&6; }
22150
else
22151
  { echo "$as_me:$LINENO: result: no" >&5
22152
echo "${ECHO_T}no" >&6; }
22153
fi
22154
22155
22156
	  # Extract the first word of "xgettext", so it can be a program name with args.
22157
set dummy xgettext; ac_word=$2
22158
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22159
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22160
if test "${ac_cv_path_XGETTEXT+set}" = set; then
22161
  echo $ECHO_N "(cached) $ECHO_C" >&6
22162
else
22163
  case "$XGETTEXT" in
22164
  /*)
22165
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22166
  ;;
22167
  *)
22168
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22169
  for ac_dir in $PATH; do
22170
    test -z "$ac_dir" && ac_dir=.
22171
    if test -f $ac_dir/$ac_word; then
22172
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22173
	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22174
	break
22175
      fi
22176
    fi
22177
  done
22178
  IFS="$ac_save_ifs"
22179
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22180
  ;;
22181
esac
22182
fi
22183
XGETTEXT="$ac_cv_path_XGETTEXT"
22184
if test "$XGETTEXT" != ":"; then
22185
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22186
echo "${ECHO_T}$XGETTEXT" >&6; }
22187
else
22188
  { echo "$as_me:$LINENO: result: no" >&5
22189
echo "${ECHO_T}no" >&6; }
22190
fi
22191
22192
	  cat >conftest.$ac_ext <<_ACEOF
22193
/* confdefs.h.  */
22194
_ACEOF
22195
cat confdefs.h >>conftest.$ac_ext
22196
cat >>conftest.$ac_ext <<_ACEOF
22197
/* end confdefs.h.  */
22198
22199
int
22200
main ()
22201
{
22202
extern int _nl_msg_cat_cntr;
22203
			 return _nl_msg_cat_cntr
22204
  ;
22205
  return 0;
22206
}
22207
_ACEOF
22208
rm -f conftest.$ac_objext conftest$ac_exeext
22209
if { (ac_try="$ac_link"
22210
case "(($ac_try" in
22211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212
  *) ac_try_echo=$ac_try;;
22213
esac
22214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215
  (eval "$ac_link") 2>conftest.er1
22216
  ac_status=$?
22217
  grep -v '^ *+' conftest.er1 >conftest.err
22218
  rm -f conftest.er1
22219
  cat conftest.err >&5
22220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22221
  (exit $ac_status); } && {
22222
	 test -z "$ac_c_werror_flag" ||
22223
	 test ! -s conftest.err
22224
       } && test -s conftest$ac_exeext &&
22225
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
22226
  CATOBJEXT=.gmo
22227
             DATADIRNAME=share
22228
else
22229
  echo "$as_me: failed program was:" >&5
22230
sed 's/^/| /' conftest.$ac_ext >&5
22231
22232
	case $host in
22233
	    *-*-solaris*)
22234
	    	                	    	                { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
22235
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
22236
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
22237
  echo $ECHO_N "(cached) $ECHO_C" >&6
22238
else
22239
  cat >conftest.$ac_ext <<_ACEOF
22240
/* confdefs.h.  */
22241
_ACEOF
22242
cat confdefs.h >>conftest.$ac_ext
22243
cat >>conftest.$ac_ext <<_ACEOF
22244
/* end confdefs.h.  */
22245
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
22246
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22247
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
22248
22249
/* System header to define __stub macros and hopefully few prototypes,
22250
    which can conflict with char bind_textdomain_codeset (); below.
22251
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22252
    <limits.h> exists even on freestanding compilers.  */
22253
22254
#ifdef __STDC__
22255
# include <limits.h>
22256
#else
22257
# include <assert.h>
22258
#endif
22259
22260
#undef bind_textdomain_codeset
22261
22262
/* Override any GCC internal prototype to avoid an error.
22263
   Use char because int might match the return type of a GCC
22264
   builtin and then its argument prototype would still apply.  */
22265
#ifdef __cplusplus
22266
extern "C"
22267
#endif
22268
char bind_textdomain_codeset ();
22269
/* The GNU C library defines this for functions which it implements
22270
    to always fail with ENOSYS.  Some functions are actually named
22271
    something starting with __ and the normal name is an alias.  */
22272
#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
22273
choke me
22274
#endif
22275
22276
int
22277
main ()
22278
{
22279
return bind_textdomain_codeset ();
22280
  ;
22281
  return 0;
22282
}
22283
_ACEOF
22284
rm -f conftest.$ac_objext conftest$ac_exeext
22285
if { (ac_try="$ac_link"
22286
case "(($ac_try" in
22287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288
  *) ac_try_echo=$ac_try;;
22289
esac
22290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291
  (eval "$ac_link") 2>conftest.er1
22292
  ac_status=$?
22293
  grep -v '^ *+' conftest.er1 >conftest.err
22294
  rm -f conftest.er1
22295
  cat conftest.err >&5
22296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22297
  (exit $ac_status); } && {
22298
	 test -z "$ac_c_werror_flag" ||
22299
	 test ! -s conftest.err
22300
       } && test -s conftest$ac_exeext &&
22301
       $as_test_x conftest$ac_exeext; then
1 by Sebastien Bacher
Import upstream version 0.7.1
22302
  ac_cv_func_bind_textdomain_codeset=yes
22303
else
22304
  echo "$as_me: failed program was:" >&5
22305
sed 's/^/| /' conftest.$ac_ext >&5
22306
22307
	ac_cv_func_bind_textdomain_codeset=no
22308
fi
22309
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22310
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
22311
      conftest$ac_exeext conftest.$ac_ext
22312
fi
22313
{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
22314
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
22315
if test $ac_cv_func_bind_textdomain_codeset = yes; then
22316
  CATOBJEXT=.gmo
22317
               DATADIRNAME=share
22318
else
22319
  CATOBJEXT=.mo
22320
               DATADIRNAME=lib
22321
fi
22322
22323
	    ;;
22324
	    *)
22325
	    CATOBJEXT=.mo
22326
            DATADIRNAME=lib
22327
	    ;;
22328
	    esac
22329
fi
22330
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1 by Sebastien Bacher
Import upstream version 0.7.1
22332
      conftest$ac_exeext conftest.$ac_ext
22333
          LIBS="$glib_save_LIBS"
22334
	  INSTOBJEXT=.mo
22335
	else
22336
	  gt_cv_have_gettext=no
22337
	fi
22338
      fi
22339
22340
fi
22341
22342
22343
22344
    if test "$gt_cv_have_gettext" = "yes" ; then
22345
22346
cat >>confdefs.h <<\_ACEOF
22347
#define ENABLE_NLS 1
22348
_ACEOF
22349
22350
    fi
22351
22352
        if test "$XGETTEXT" != ":"; then
22353
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22354
        : ;
22355
      else
22356
        { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22357
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
22358
        XGETTEXT=":"
22359
      fi
22360
    fi
22361
22362
    # We need to process the po/ directory.
22363
    POSUB=po
22364
22365
    ac_config_commands="$ac_config_commands default-1"
22366
22367
22368
                for lang in $ALL_LINGUAS; do
22369
      GMOFILES="$GMOFILES $lang.gmo"
22370
      POFILES="$POFILES $lang.po"
22371
    done
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
   if test "$gt_cv_have_gettext" = "yes"; then
22386
     if test "x$ALL_LINGUAS" = "x"; then
22387
       LINGUAS=
22388
     else
22389
       { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
22390
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
22391
       NEW_LINGUAS=
22392
       for presentlang in $ALL_LINGUAS; do
22393
         useit=no
22394
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
22395
           desiredlanguages="$LINGUAS"
22396
         else
22397
           desiredlanguages="$ALL_LINGUAS"
22398
         fi
22399
         for desiredlang in $desiredlanguages; do
22400
 	   # Use the presentlang catalog if desiredlang is
22401
           #   a. equal to presentlang, or
22402
           #   b. a variant of presentlang (because in this case,
22403
           #      presentlang can be used as a fallback for messages
22404
           #      which are not translated in the desiredlang catalog).
22405
           case "$desiredlang" in
22406
             "$presentlang"*) useit=yes;;
22407
           esac
22408
         done
22409
         if test $useit = yes; then
22410
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
22411
         fi
22412
       done
22413
       LINGUAS=$NEW_LINGUAS
22414
       { echo "$as_me:$LINENO: result: $LINGUAS" >&5
22415
echo "${ECHO_T}$LINGUAS" >&6; }
22416
     fi
22417
22418
          if test -n "$LINGUAS"; then
22419
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
22420
     fi
22421
   fi
22422
22423
            MKINSTALLDIRS=
22424
   if test -n "$ac_aux_dir"; then
22425
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
22426
   fi
22427
   if test -z "$MKINSTALLDIRS"; then
22428
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22429
   fi
22430
22431
22432
         test -d po || mkdir po
22433
   if test "x$srcdir" != "x."; then
22434
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
22435
       posrcprefix="$srcdir/"
22436
     else
22437
       posrcprefix="../$srcdir/"
22438
     fi
22439
   else
22440
     posrcprefix="../"
22441
   fi
22442
   rm -f po/POTFILES
22443
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
22444
	< $srcdir/po/POTFILES.in > po/POTFILES
22445
22446
glib_save_prefix="$prefix"
22447
glib_save_exec_prefix="$exec_prefix"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22448
glib_save_datarootdir="$datarootdir"
1 by Sebastien Bacher
Import upstream version 0.7.1
22449
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22450
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22451
datarootdir=`eval echo "${datarootdir}"`
1 by Sebastien Bacher
Import upstream version 0.7.1
22452
if test "x$CATOBJEXT" = "x.mo" ; then
22453
  localedir=`eval echo "${libdir}/locale"`
22454
else
22455
  localedir=`eval echo "${datadir}/locale"`
22456
fi
22457
prefix="$glib_save_prefix"
22458
exec_prefix="$glib_save_exec_prefix"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22459
datarootdir="$glib_save_datarootdir"
1 by Sebastien Bacher
Import upstream version 0.7.1
22460
22461
cat >>confdefs.h <<_ACEOF
22462
#define NAUTILUS_SHARE_LOCALEDIR "$localedir"
22463
_ACEOF
22464
22465
22466
22467
# AM_GNOME_GETTEXT above substs $DATADIRNAME
22468
# this is the directory where the *.{mo,gmo} files are installed
22469
gnomelocaledir='${prefix}/${DATADIRNAME}/locale'
22470
22471
22472
22473
22474
ac_config_files="$ac_config_files Makefile src/Makefile pixmaps/Makefile interfaces/Makefile po/Makefile.in"
22475
22476
cat >confcache <<\_ACEOF
22477
# This file is a shell script that caches the results of configure
22478
# tests run on this system so they can be shared between configure
22479
# scripts and configure runs, see configure's option --config-cache.
22480
# It is not useful on other systems.  If it contains results you don't
22481
# want to keep, you may remove or edit it.
22482
#
22483
# config.status only pays attention to the cache file if you give it
22484
# the --recheck option to rerun configure.
22485
#
22486
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22487
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22488
# following values.
22489
22490
_ACEOF
22491
22492
# The following way of writing the cache mishandles newlines in values,
22493
# but we know of no workaround that is simple, portable, and efficient.
22494
# So, we kill variables containing newlines.
22495
# Ultrix sh set writes to stderr and can't be redirected directly,
22496
# and sets the high bit in the cache file unless we assign to the vars.
22497
(
22498
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22499
    eval ac_val=\$$ac_var
22500
    case $ac_val in #(
22501
    *${as_nl}*)
22502
      case $ac_var in #(
22503
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22504
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22505
      esac
22506
      case $ac_var in #(
22507
      _ | IFS | as_nl) ;; #(
22508
      *) $as_unset $ac_var ;;
22509
      esac ;;
22510
    esac
22511
  done
22512
22513
  (set) 2>&1 |
22514
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22515
    *${as_nl}ac_space=\ *)
22516
      # `set' does not quote correctly, so add quotes (double-quote
22517
      # substitution turns \\\\ into \\, and sed turns \\ into \).
22518
      sed -n \
22519
	"s/'/'\\\\''/g;
22520
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22521
      ;; #(
22522
    *)
22523
      # `set' quotes correctly as required by POSIX, so do not add quotes.
22524
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22525
      ;;
22526
    esac |
22527
    sort
22528
) |
22529
  sed '
22530
     /^ac_cv_env_/b end
22531
     t clear
22532
     :clear
22533
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22534
     t end
22535
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22536
     :end' >>confcache
22537
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22538
  if test -w "$cache_file"; then
22539
    test "x$cache_file" != "x/dev/null" &&
22540
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22541
echo "$as_me: updating cache $cache_file" >&6;}
22542
    cat confcache >$cache_file
22543
  else
22544
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22545
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22546
  fi
22547
fi
22548
rm -f confcache
22549
22550
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22551
# Let make expand exec_prefix.
22552
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22553
22554
DEFS=-DHAVE_CONFIG_H
22555
22556
ac_libobjs=
22557
ac_ltlibobjs=
22558
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22559
  # 1. Remove the extension, and $U if already installed.
22560
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22561
  ac_i=`echo "$ac_i" | sed "$ac_script"`
22562
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22563
  #    will be set to the directory where LIBOBJS objects are built.
22564
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22565
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22566
done
22567
LIBOBJS=$ac_libobjs
22568
22569
LTLIBOBJS=$ac_ltlibobjs
22570
22571
22572
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22573
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22574
Usually this means the macro was only invoked conditionally." >&5
22575
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22576
Usually this means the macro was only invoked conditionally." >&2;}
22577
   { (exit 1); exit 1; }; }
22578
fi
22579
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22580
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22581
Usually this means the macro was only invoked conditionally." >&5
22582
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22583
Usually this means the macro was only invoked conditionally." >&2;}
22584
   { (exit 1); exit 1; }; }
22585
fi
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22586
22587
  ac_config_commands="$ac_config_commands po/stamp-it"
22588
22589
22590
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22591
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22592
Usually this means the macro was only invoked conditionally." >&5
22593
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22594
Usually this means the macro was only invoked conditionally." >&2;}
22595
   { (exit 1); exit 1; }; }
22596
fi
1 by Sebastien Bacher
Import upstream version 0.7.1
22597
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22598
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22599
Usually this means the macro was only invoked conditionally." >&5
22600
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22601
Usually this means the macro was only invoked conditionally." >&2;}
22602
   { (exit 1); exit 1; }; }
22603
fi
22604
22605
: ${CONFIG_STATUS=./config.status}
22606
ac_clean_files_save=$ac_clean_files
22607
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22608
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22609
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22610
cat >$CONFIG_STATUS <<_ACEOF
22611
#! $SHELL
22612
# Generated by $as_me.
22613
# Run this file to recreate the current configuration.
22614
# Compiler output produced by configure, useful for debugging
22615
# configure, is in config.log if it exists.
22616
22617
debug=false
22618
ac_cs_recheck=false
22619
ac_cs_silent=false
22620
SHELL=\${CONFIG_SHELL-$SHELL}
22621
_ACEOF
22622
22623
cat >>$CONFIG_STATUS <<\_ACEOF
22624
## --------------------- ##
22625
## M4sh Initialization.  ##
22626
## --------------------- ##
22627
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22628
# Be more Bourne compatible
22629
DUALCASE=1; export DUALCASE # for MKS sh
1 by Sebastien Bacher
Import upstream version 0.7.1
22630
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22631
  emulate sh
22632
  NULLCMD=:
22633
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22634
  # is contrary to our usage.  Disable this feature.
22635
  alias -g '${1+"$@"}'='"$@"'
22636
  setopt NO_GLOB_SUBST
22637
else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22638
  case `(set -o) 2>/dev/null` in
22639
  *posix*) set -o posix ;;
22640
esac
22641
1 by Sebastien Bacher
Import upstream version 0.7.1
22642
fi
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22643
22644
1 by Sebastien Bacher
Import upstream version 0.7.1
22645
22646
22647
# PATH needs CR
22648
# Avoid depending upon Character Ranges.
22649
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22650
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22651
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22652
as_cr_digits='0123456789'
22653
as_cr_alnum=$as_cr_Letters$as_cr_digits
22654
22655
# The user is always right.
22656
if test "${PATH_SEPARATOR+set}" != set; then
22657
  echo "#! /bin/sh" >conf$$.sh
22658
  echo  "exit 0"   >>conf$$.sh
22659
  chmod +x conf$$.sh
22660
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22661
    PATH_SEPARATOR=';'
22662
  else
22663
    PATH_SEPARATOR=:
22664
  fi
22665
  rm -f conf$$.sh
22666
fi
22667
22668
# Support unset when possible.
22669
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22670
  as_unset=unset
22671
else
22672
  as_unset=false
22673
fi
22674
22675
22676
# IFS
22677
# We need space, tab and new line, in precisely that order.  Quoting is
22678
# there to prevent editors from complaining about space-tab.
22679
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22680
# splitting by setting IFS to empty value.)
22681
as_nl='
22682
'
22683
IFS=" ""	$as_nl"
22684
22685
# Find who we are.  Look in the path if we contain no directory separator.
22686
case $0 in
22687
  *[\\/]* ) as_myself=$0 ;;
22688
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22689
for as_dir in $PATH
22690
do
22691
  IFS=$as_save_IFS
22692
  test -z "$as_dir" && as_dir=.
22693
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22694
done
22695
IFS=$as_save_IFS
22696
22697
     ;;
22698
esac
22699
# We did not find ourselves, most probably we were run as `sh COMMAND'
22700
# in which case we are not to be found in the path.
22701
if test "x$as_myself" = x; then
22702
  as_myself=$0
22703
fi
22704
if test ! -f "$as_myself"; then
22705
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22706
  { (exit 1); exit 1; }
22707
fi
22708
22709
# Work around bugs in pre-3.0 UWIN ksh.
22710
for as_var in ENV MAIL MAILPATH
22711
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22712
done
22713
PS1='$ '
22714
PS2='> '
22715
PS4='+ '
22716
22717
# NLS nuisances.
22718
for as_var in \
22719
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22720
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22721
  LC_TELEPHONE LC_TIME
22722
do
22723
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22724
    eval $as_var=C; export $as_var
22725
  else
22726
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22727
  fi
22728
done
22729
22730
# Required to use basename.
22731
if expr a : '\(a\)' >/dev/null 2>&1 &&
22732
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22733
  as_expr=expr
22734
else
22735
  as_expr=false
22736
fi
22737
22738
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22739
  as_basename=basename
22740
else
22741
  as_basename=false
22742
fi
22743
22744
22745
# Name of the executable.
22746
as_me=`$as_basename -- "$0" ||
22747
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22748
	 X"$0" : 'X\(//\)$' \| \
22749
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22750
echo X/"$0" |
22751
    sed '/^.*\/\([^/][^/]*\)\/*$/{
22752
	    s//\1/
22753
	    q
22754
	  }
22755
	  /^X\/\(\/\/\)$/{
22756
	    s//\1/
22757
	    q
22758
	  }
22759
	  /^X\/\(\/\).*/{
22760
	    s//\1/
22761
	    q
22762
	  }
22763
	  s/.*/./; q'`
22764
22765
# CDPATH.
22766
$as_unset CDPATH
22767
22768
22769
22770
  as_lineno_1=$LINENO
22771
  as_lineno_2=$LINENO
22772
  test "x$as_lineno_1" != "x$as_lineno_2" &&
22773
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22774
22775
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22776
  # uniformly replaced by the line number.  The first 'sed' inserts a
22777
  # line-number line after each line using $LINENO; the second 'sed'
22778
  # does the real work.  The second script uses 'N' to pair each
22779
  # line-number line with the line containing $LINENO, and appends
22780
  # trailing '-' during substitution so that $LINENO is not a special
22781
  # case at line end.
22782
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22783
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22784
  # E. McMahon (1931-1989) for sed's syntax.  :-)
22785
  sed -n '
22786
    p
22787
    /[$]LINENO/=
22788
  ' <$as_myself |
22789
    sed '
22790
      s/[$]LINENO.*/&-/
22791
      t lineno
22792
      b
22793
      :lineno
22794
      N
22795
      :loop
22796
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22797
      t loop
22798
      s/-\n.*//
22799
    ' >$as_me.lineno &&
22800
  chmod +x "$as_me.lineno" ||
22801
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22802
   { (exit 1); exit 1; }; }
22803
22804
  # Don't try to exec as it changes $[0], causing all sort of problems
22805
  # (the dirname of $[0] is not the place where we might find the
22806
  # original and so on.  Autoconf is especially sensitive to this).
22807
  . "./$as_me.lineno"
22808
  # Exit status is that of the last command.
22809
  exit
22810
}
22811
22812
22813
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22814
  as_dirname=dirname
22815
else
22816
  as_dirname=false
22817
fi
22818
22819
ECHO_C= ECHO_N= ECHO_T=
22820
case `echo -n x` in
22821
-n*)
22822
  case `echo 'x\c'` in
22823
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22824
  *)   ECHO_C='\c';;
22825
  esac;;
22826
*)
22827
  ECHO_N='-n';;
22828
esac
22829
22830
if expr a : '\(a\)' >/dev/null 2>&1 &&
22831
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22832
  as_expr=expr
22833
else
22834
  as_expr=false
22835
fi
22836
22837
rm -f conf$$ conf$$.exe conf$$.file
22838
if test -d conf$$.dir; then
22839
  rm -f conf$$.dir/conf$$.file
22840
else
22841
  rm -f conf$$.dir
22842
  mkdir conf$$.dir
22843
fi
22844
echo >conf$$.file
22845
if ln -s conf$$.file conf$$ 2>/dev/null; then
22846
  as_ln_s='ln -s'
22847
  # ... but there are two gotchas:
22848
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22849
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22850
  # In both cases, we have to default to `cp -p'.
22851
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22852
    as_ln_s='cp -p'
22853
elif ln conf$$.file conf$$ 2>/dev/null; then
22854
  as_ln_s=ln
22855
else
22856
  as_ln_s='cp -p'
22857
fi
22858
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22859
rmdir conf$$.dir 2>/dev/null
22860
22861
if mkdir -p . 2>/dev/null; then
22862
  as_mkdir_p=:
22863
else
22864
  test -d ./-p && rmdir ./-p
22865
  as_mkdir_p=false
22866
fi
22867
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22868
if test -x / >/dev/null 2>&1; then
22869
  as_test_x='test -x'
1 by Sebastien Bacher
Import upstream version 0.7.1
22870
else
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22871
  if ls -dL / >/dev/null 2>&1; then
22872
    as_ls_L_option=L
22873
  else
22874
    as_ls_L_option=
22875
  fi
22876
  as_test_x='
22877
    eval sh -c '\''
22878
      if test -d "$1"; then
22879
        test -d "$1/.";
22880
      else
22881
	case $1 in
22882
        -*)set "./$1";;
22883
	esac;
22884
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22885
	???[sx]*):;;*)false;;esac;fi
22886
    '\'' sh
22887
  '
1 by Sebastien Bacher
Import upstream version 0.7.1
22888
fi
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22889
as_executable_p=$as_test_x
1 by Sebastien Bacher
Import upstream version 0.7.1
22890
22891
# Sed expression to map a string onto a valid CPP name.
22892
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22893
22894
# Sed expression to map a string onto a valid variable name.
22895
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22896
22897
22898
exec 6>&1
22899
22900
# Save the log message, to keep $[0] and so on meaningful, and to
22901
# report actual input values of CONFIG_FILES etc. instead of their
22902
# values after options handling.
22903
ac_log="
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22904
This file was extended by nautilus-share $as_me 0.7.2, which was
22905
generated by GNU Autoconf 2.61.  Invocation command line was
1 by Sebastien Bacher
Import upstream version 0.7.1
22906
22907
  CONFIG_FILES    = $CONFIG_FILES
22908
  CONFIG_HEADERS  = $CONFIG_HEADERS
22909
  CONFIG_LINKS    = $CONFIG_LINKS
22910
  CONFIG_COMMANDS = $CONFIG_COMMANDS
22911
  $ $0 $@
22912
22913
on `(hostname || uname -n) 2>/dev/null | sed 1q`
22914
"
22915
22916
_ACEOF
22917
22918
cat >>$CONFIG_STATUS <<_ACEOF
22919
# Files that config.status was made for.
22920
config_files="$ac_config_files"
22921
config_headers="$ac_config_headers"
22922
config_commands="$ac_config_commands"
22923
22924
_ACEOF
22925
22926
cat >>$CONFIG_STATUS <<\_ACEOF
22927
ac_cs_usage="\
22928
\`$as_me' instantiates files from templates according to the
22929
current configuration.
22930
22931
Usage: $0 [OPTIONS] [FILE]...
22932
22933
  -h, --help       print this help, then exit
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22934
  -V, --version    print version number and configuration settings, then exit
1 by Sebastien Bacher
Import upstream version 0.7.1
22935
  -q, --quiet      do not print progress messages
22936
  -d, --debug      don't remove temporary files
22937
      --recheck    update $as_me by reconfiguring in the same conditions
22938
  --file=FILE[:TEMPLATE]
22939
		   instantiate the configuration file FILE
22940
  --header=FILE[:TEMPLATE]
22941
		   instantiate the configuration header FILE
22942
22943
Configuration files:
22944
$config_files
22945
22946
Configuration headers:
22947
$config_headers
22948
22949
Configuration commands:
22950
$config_commands
22951
22952
Report bugs to <bug-autoconf@gnu.org>."
22953
22954
_ACEOF
22955
cat >>$CONFIG_STATUS <<_ACEOF
22956
ac_cs_version="\\
1.1.1 by Michael Vogt
Import upstream version 0.7.2
22957
nautilus-share config.status 0.7.2
22958
configured by $0, generated by GNU Autoconf 2.61,
1 by Sebastien Bacher
Import upstream version 0.7.1
22959
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22960
22961
Copyright (C) 2006 Free Software Foundation, Inc.
22962
This config.status script is free software; the Free Software Foundation
22963
gives unlimited permission to copy, distribute and modify it."
22964
22965
ac_pwd='$ac_pwd'
22966
srcdir='$srcdir'
22967
INSTALL='$INSTALL'
22968
_ACEOF
22969
22970
cat >>$CONFIG_STATUS <<\_ACEOF
22971
# If no file are specified by the user, then we need to provide default
22972
# value.  By we need to know if files were specified by the user.
22973
ac_need_defaults=:
22974
while test $# != 0
22975
do
22976
  case $1 in
22977
  --*=*)
22978
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22979
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22980
    ac_shift=:
22981
    ;;
22982
  *)
22983
    ac_option=$1
22984
    ac_optarg=$2
22985
    ac_shift=shift
22986
    ;;
22987
  esac
22988
22989
  case $ac_option in
22990
  # Handling of the options.
22991
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22992
    ac_cs_recheck=: ;;
22993
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22994
    echo "$ac_cs_version"; exit ;;
22995
  --debug | --debu | --deb | --de | --d | -d )
22996
    debug=: ;;
22997
  --file | --fil | --fi | --f )
22998
    $ac_shift
22999
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23000
    ac_need_defaults=false;;
23001
  --header | --heade | --head | --hea )
23002
    $ac_shift
23003
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23004
    ac_need_defaults=false;;
23005
  --he | --h)
23006
    # Conflict between --help and --header
23007
    { echo "$as_me: error: ambiguous option: $1
23008
Try \`$0 --help' for more information." >&2
23009
   { (exit 1); exit 1; }; };;
23010
  --help | --hel | -h )
23011
    echo "$ac_cs_usage"; exit ;;
23012
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23013
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23014
    ac_cs_silent=: ;;
23015
23016
  # This is an error.
23017
  -*) { echo "$as_me: error: unrecognized option: $1
23018
Try \`$0 --help' for more information." >&2
23019
   { (exit 1); exit 1; }; } ;;
23020
23021
  *) ac_config_targets="$ac_config_targets $1"
23022
     ac_need_defaults=false ;;
23023
23024
  esac
23025
  shift
23026
done
23027
23028
ac_configure_extra_args=
23029
23030
if $ac_cs_silent; then
23031
  exec 6>/dev/null
23032
  ac_configure_extra_args="$ac_configure_extra_args --silent"
23033
fi
23034
23035
_ACEOF
23036
cat >>$CONFIG_STATUS <<_ACEOF
23037
if \$ac_cs_recheck; then
23038
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23039
  CONFIG_SHELL=$SHELL
23040
  export CONFIG_SHELL
23041
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23042
fi
23043
23044
_ACEOF
23045
cat >>$CONFIG_STATUS <<\_ACEOF
23046
exec 5>>config.log
23047
{
23048
  echo
23049
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23050
## Running $as_me. ##
23051
_ASBOX
23052
  echo "$ac_log"
23053
} >&5
23054
23055
_ACEOF
23056
cat >>$CONFIG_STATUS <<_ACEOF
23057
#
23058
# INIT-COMMANDS
23059
#
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23060
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1 by Sebastien Bacher
Import upstream version 0.7.1
23061
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
23062
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23063
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'
1 by Sebastien Bacher
Import upstream version 0.7.1
23064
23065
23066
_ACEOF
23067
23068
cat >>$CONFIG_STATUS <<\_ACEOF
23069
23070
# Handling of arguments.
23071
for ac_config_target in $ac_config_targets
23072
do
23073
  case $ac_config_target in
23074
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23075
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1 by Sebastien Bacher
Import upstream version 0.7.1
23076
    "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
23077
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23078
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23079
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23080
    "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
23081
    "interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/Makefile" ;;
23082
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23083
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
23084
23085
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23086
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23087
   { (exit 1); exit 1; }; };;
23088
  esac
23089
done
23090
23091
23092
# If the user did not use the arguments to specify the items to instantiate,
23093
# then the envvar interface is used.  Set only those that are not.
23094
# We use the long form for the default assignment because of an extremely
23095
# bizarre bug on SunOS 4.1.3.
23096
if $ac_need_defaults; then
23097
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23098
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23099
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23100
fi
23101
23102
# Have a temporary directory for convenience.  Make it in the build tree
23103
# simply because there is no reason against having it here, and in addition,
23104
# creating and moving files from /tmp can sometimes cause problems.
23105
# Hook for its removal unless debugging.
23106
# Note that there is a small window in which the directory will not be cleaned:
23107
# after its creation but before its name has been assigned to `$tmp'.
23108
$debug ||
23109
{
23110
  tmp=
23111
  trap 'exit_status=$?
23112
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23113
' 0
23114
  trap '{ (exit 1); exit 1; }' 1 2 13 15
23115
}
23116
# Create a (secure) tmp directory for tmp files.
23117
23118
{
23119
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23120
  test -n "$tmp" && test -d "$tmp"
23121
}  ||
23122
{
23123
  tmp=./conf$$-$RANDOM
23124
  (umask 077 && mkdir "$tmp")
23125
} ||
23126
{
23127
   echo "$me: cannot create a temporary directory in ." >&2
23128
   { (exit 1); exit 1; }
23129
}
23130
23131
#
23132
# Set up the sed scripts for CONFIG_FILES section.
23133
#
23134
23135
# No need to generate the scripts if there are no CONFIG_FILES.
23136
# This happens for instance when ./config.status config.h
23137
if test -n "$CONFIG_FILES"; then
23138
23139
_ACEOF
23140
23141
23142
23143
ac_delim='%!_!# '
23144
for ac_last_try in false false false false false :; do
23145
  cat >conf$$subs.sed <<_ACEOF
23146
SHELL!$SHELL$ac_delim
23147
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23148
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23149
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23150
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23151
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23152
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23153
exec_prefix!$exec_prefix$ac_delim
23154
prefix!$prefix$ac_delim
23155
program_transform_name!$program_transform_name$ac_delim
23156
bindir!$bindir$ac_delim
23157
sbindir!$sbindir$ac_delim
23158
libexecdir!$libexecdir$ac_delim
23159
datarootdir!$datarootdir$ac_delim
23160
datadir!$datadir$ac_delim
23161
sysconfdir!$sysconfdir$ac_delim
23162
sharedstatedir!$sharedstatedir$ac_delim
23163
localstatedir!$localstatedir$ac_delim
23164
includedir!$includedir$ac_delim
23165
oldincludedir!$oldincludedir$ac_delim
23166
docdir!$docdir$ac_delim
23167
infodir!$infodir$ac_delim
23168
htmldir!$htmldir$ac_delim
23169
dvidir!$dvidir$ac_delim
23170
pdfdir!$pdfdir$ac_delim
23171
psdir!$psdir$ac_delim
23172
libdir!$libdir$ac_delim
23173
localedir!$localedir$ac_delim
23174
mandir!$mandir$ac_delim
23175
DEFS!$DEFS$ac_delim
23176
ECHO_C!$ECHO_C$ac_delim
23177
ECHO_N!$ECHO_N$ac_delim
23178
ECHO_T!$ECHO_T$ac_delim
23179
LIBS!$LIBS$ac_delim
23180
build_alias!$build_alias$ac_delim
23181
host_alias!$host_alias$ac_delim
23182
target_alias!$target_alias$ac_delim
23183
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23184
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23185
INSTALL_DATA!$INSTALL_DATA$ac_delim
23186
CYGPATH_W!$CYGPATH_W$ac_delim
23187
PACKAGE!$PACKAGE$ac_delim
23188
VERSION!$VERSION$ac_delim
23189
ACLOCAL!$ACLOCAL$ac_delim
23190
AUTOCONF!$AUTOCONF$ac_delim
23191
AUTOMAKE!$AUTOMAKE$ac_delim
23192
AUTOHEADER!$AUTOHEADER$ac_delim
23193
MAKEINFO!$MAKEINFO$ac_delim
23194
install_sh!$install_sh$ac_delim
23195
STRIP!$STRIP$ac_delim
23196
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23197
mkdir_p!$mkdir_p$ac_delim
23198
AWK!$AWK$ac_delim
23199
SET_MAKE!$SET_MAKE$ac_delim
23200
am__leading_dot!$am__leading_dot$ac_delim
23201
AMTAR!$AMTAR$ac_delim
23202
am__tar!$am__tar$ac_delim
23203
am__untar!$am__untar$ac_delim
23204
INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
23205
INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
23206
INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
23207
INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
23208
INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
23209
INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
23210
INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
23211
INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
23212
INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
23213
INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
23214
INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
23215
INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
23216
INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
23217
INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
23218
INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
23219
INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
23220
INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
23221
INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23222
INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
1 by Sebastien Bacher
Import upstream version 0.7.1
23223
INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
23224
INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
23225
INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
23226
INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
23227
ALL_LINGUAS!$ALL_LINGUAS$ac_delim
23228
CC!$CC$ac_delim
23229
CFLAGS!$CFLAGS$ac_delim
23230
LDFLAGS!$LDFLAGS$ac_delim
23231
CPPFLAGS!$CPPFLAGS$ac_delim
23232
ac_ct_CC!$ac_ct_CC$ac_delim
23233
EXEEXT!$EXEEXT$ac_delim
23234
OBJEXT!$OBJEXT$ac_delim
23235
DEPDIR!$DEPDIR$ac_delim
23236
am__include!$am__include$ac_delim
23237
am__quote!$am__quote$ac_delim
23238
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23239
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23240
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23241
CCDEPMODE!$CCDEPMODE$ac_delim
23242
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23243
_ACEOF
23244
23245
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23246
    break
23247
  elif $ac_last_try; then
23248
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23249
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23250
   { (exit 1); exit 1; }; }
23251
  else
23252
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23253
  fi
23254
done
23255
23256
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23257
if test -n "$ac_eof"; then
23258
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23259
  ac_eof=`expr $ac_eof + 1`
23260
fi
23261
23262
cat >>$CONFIG_STATUS <<_ACEOF
23263
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23264
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23265
_ACEOF
23266
sed '
23267
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23268
s/^/s,@/; s/!/@,|#_!!_#|/
23269
:n
23270
t n
23271
s/'"$ac_delim"'$/,g/; t
23272
s/$/\\/; p
23273
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23274
' >>$CONFIG_STATUS <conf$$subs.sed
23275
rm -f conf$$subs.sed
23276
cat >>$CONFIG_STATUS <<_ACEOF
23277
CEOF$ac_eof
23278
_ACEOF
23279
23280
23281
ac_delim='%!_!# '
23282
for ac_last_try in false false false false false :; do
23283
  cat >conf$$subs.sed <<_ACEOF
1 by Sebastien Bacher
Import upstream version 0.7.1
23284
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23285
DATADIRNAME!$DATADIRNAME$ac_delim
1 by Sebastien Bacher
Import upstream version 0.7.1
23286
build!$build$ac_delim
23287
build_cpu!$build_cpu$ac_delim
23288
build_vendor!$build_vendor$ac_delim
23289
build_os!$build_os$ac_delim
23290
host!$host$ac_delim
23291
host_cpu!$host_cpu$ac_delim
23292
host_vendor!$host_vendor$ac_delim
23293
host_os!$host_os$ac_delim
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23294
SED!$SED$ac_delim
1 by Sebastien Bacher
Import upstream version 0.7.1
23295
GREP!$GREP$ac_delim
23296
EGREP!$EGREP$ac_delim
23297
LN_S!$LN_S$ac_delim
23298
ECHO!$ECHO$ac_delim
23299
AR!$AR$ac_delim
23300
RANLIB!$RANLIB$ac_delim
23301
CPP!$CPP$ac_delim
23302
CXX!$CXX$ac_delim
23303
CXXFLAGS!$CXXFLAGS$ac_delim
23304
ac_ct_CXX!$ac_ct_CXX$ac_delim
23305
CXXDEPMODE!$CXXDEPMODE$ac_delim
23306
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23307
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23308
CXXCPP!$CXXCPP$ac_delim
23309
F77!$F77$ac_delim
23310
FFLAGS!$FFLAGS$ac_delim
23311
ac_ct_F77!$ac_ct_F77$ac_delim
23312
LIBTOOL!$LIBTOOL$ac_delim
23313
HAVE_PKGCONFIG!$HAVE_PKGCONFIG$ac_delim
23314
PKG_CONFIG!$PKG_CONFIG$ac_delim
23315
NAUTILUS_CFLAGS!$NAUTILUS_CFLAGS$ac_delim
23316
NAUTILUS_LIBS!$NAUTILUS_LIBS$ac_delim
23317
GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
23318
GLIB_LIBS!$GLIB_LIBS$ac_delim
23319
pixmapsdir!$pixmapsdir$ac_delim
23320
interfacesdir!$interfacesdir$ac_delim
23321
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
23322
USE_NLS!$USE_NLS$ac_delim
23323
MSGFMT!$MSGFMT$ac_delim
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23324
MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
1 by Sebastien Bacher
Import upstream version 0.7.1
23325
GMSGFMT!$GMSGFMT$ac_delim
23326
XGETTEXT!$XGETTEXT$ac_delim
23327
CATALOGS!$CATALOGS$ac_delim
23328
CATOBJEXT!$CATOBJEXT$ac_delim
23329
GMOFILES!$GMOFILES$ac_delim
23330
INSTOBJEXT!$INSTOBJEXT$ac_delim
23331
INTLLIBS!$INTLLIBS$ac_delim
23332
PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
23333
PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
23334
POFILES!$POFILES$ac_delim
23335
POSUB!$POSUB$ac_delim
23336
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
23337
gnomelocaledir!$gnomelocaledir$ac_delim
23338
LIBOBJS!$LIBOBJS$ac_delim
23339
LTLIBOBJS!$LTLIBOBJS$ac_delim
23340
_ACEOF
23341
10 by Michael Terry, Chow Loong Jin, Michael Terry
[ Chow Loong Jin ]
23342
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
1 by Sebastien Bacher
Import upstream version 0.7.1
23343
    break
23344
  elif $ac_last_try; then
23345
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23346
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23347
   { (exit 1); exit 1; }; }
23348
  else
23349
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23350
  fi
23351
done
23352
23353
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23354
if test -n "$ac_eof"; then
23355
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23356
  ac_eof=`expr $ac_eof + 1`
23357
fi
23358
23359
cat >>$CONFIG_STATUS <<_ACEOF
23360
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23361
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23362
_ACEOF
23363
sed '
23364
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23365
s/^/s,@/; s/!/@,|#_!!_#|/
23366
:n
23367
t n
23368
s/'"$ac_delim"'$/,g/; t
23369
s/$/\\/; p
23370
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23371
' >>$CONFIG_STATUS <conf$$subs.sed
23372
rm -f conf$$subs.sed
23373
cat >>$CONFIG_STATUS <<_ACEOF
23374
:end
23375
s/|#_!!_#|//g
23376
CEOF$ac_eof
23377
_ACEOF
23378
23379
23380
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23381
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23382
# trailing colons and then remove the whole line if VPATH becomes empty
23383
# (actually we leave an empty line to preserve line numbers).
23384
if test "x$srcdir" = x.; then
23385
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23386
s/:*\$(srcdir):*/:/
23387
s/:*\${srcdir}:*/:/
23388
s/:*@srcdir@:*/:/
23389
s/^\([^=]*=[	 ]*\):*/\1/
23390
s/:*$//
23391
s/^[^=]*=[	 ]*$//
23392
}'
23393
fi
23394
23395
cat >>$CONFIG_STATUS <<\_ACEOF
23396
fi # test -n "$CONFIG_FILES"
23397
23398
23399
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23400
do
23401
  case $ac_tag in
23402
  :[FHLC]) ac_mode=$ac_tag; continue;;
23403
  esac
23404
  case $ac_mode$ac_tag in
23405
  :[FHL]*:*);;
23406
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23407
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23408
   { (exit 1); exit 1; }; };;
23409
  :[FH]-) ac_tag=-:-;;
23410
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23411
  esac
23412
  ac_save_IFS=$IFS
23413
  IFS=:
23414
  set x $ac_tag
23415
  IFS=$ac_save_IFS
23416
  shift
23417
  ac_file=$1
23418
  shift
23419
23420
  case $ac_mode in
23421
  :L) ac_source=$1;;
23422
  :[FH])
23423
    ac_file_inputs=
23424
    for ac_f
23425
    do
23426
      case $ac_f in
23427
      -) ac_f="$tmp/stdin";;
23428
      *) # Look for the file first in the build tree, then in the source tree
23429
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23430
	 # because $ac_f cannot contain `:'.
23431
	 test -f "$ac_f" ||
23432
	   case $ac_f in
23433
	   [\\/$]*) false;;
23434
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23435
	   esac ||
23436
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23437
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23438
   { (exit 1); exit 1; }; };;
23439
      esac
23440
      ac_file_inputs="$ac_file_inputs $ac_f"
23441
    done
23442
23443
    # Let's still pretend it is `configure' which instantiates (i.e., don't
23444
    # use $as_me), people would be surprised to read:
23445
    #    /* config.h.  Generated by config.status.  */
23446
    configure_input="Generated from "`IFS=:
23447
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23448
    if test x"$ac_file" != x-; then
23449
      configure_input="$ac_file.  $configure_input"
23450
      { echo "$as_me:$LINENO: creating $ac_file" >&5
23451
echo "$as_me: creating $ac_file" >&6;}
23452
    fi
23453
23454
    case $ac_tag in
23455
    *:-:* | *:-) cat >"$tmp/stdin";;
23456
    esac
23457
    ;;
23458
  esac
23459
23460
  ac_dir=`$as_dirname -- "$ac_file" ||
23461
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23462
	 X"$ac_file" : 'X\(//\)[^/]' \| \
23463
	 X"$ac_file" : 'X\(//\)$' \| \
23464
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23465
echo X"$ac_file" |
23466
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23467
	    s//\1/
23468
	    q
23469
	  }
23470
	  /^X\(\/\/\)[^/].*/{
23471
	    s//\1/
23472
	    q
23473
	  }
23474
	  /^X\(\/\/\)$/{
23475
	    s//\1/
23476
	    q
23477
	  }
23478
	  /^X\(\/\).*/{
23479
	    s//\1/
23480
	    q
23481
	  }
23482
	  s/.*/./; q'`
23483
  { as_dir="$ac_dir"
23484
  case $as_dir in #(
23485
  -*) as_dir=./$as_dir;;
23486
  esac
23487
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23488
    as_dirs=
23489
    while :; do
23490
      case $as_dir in #(
23491
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23492
      *) as_qdir=$as_dir;;
23493
      esac
23494
      as_dirs="'$as_qdir' $as_dirs"
23495
      as_dir=`$as_dirname -- "$as_dir" ||
23496
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23497
	 X"$as_dir" : 'X\(//\)[^/]' \| \
23498
	 X"$as_dir" : 'X\(//\)$' \| \
23499
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23500
echo X"$as_dir" |
23501
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23502
	    s//\1/
23503
	    q
23504
	  }
23505
	  /^X\(\/\/\)[^/].*/{
23506
	    s//\1/
23507
	    q
23508
	  }
23509
	  /^X\(\/\/\)$/{
23510
	    s//\1/
23511
	    q
23512
	  }
23513
	  /^X\(\/\).*/{
23514
	    s//\1/
23515
	    q
23516
	  }
23517
	  s/.*/./; q'`
23518
      test -d "$as_dir" && break
23519
    done
23520
    test -z "$as_dirs" || eval "mkdir $as_dirs"
23521
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23522
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23523
   { (exit 1); exit 1; }; }; }
23524
  ac_builddir=.
23525
23526
case "$ac_dir" in
23527
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23528
*)
23529
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23530
  # A ".." for each directory in $ac_dir_suffix.
23531
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23532
  case $ac_top_builddir_sub in
23533
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23534
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23535
  esac ;;
23536
esac
23537
ac_abs_top_builddir=$ac_pwd
23538
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23539
# for backward compatibility:
23540
ac_top_builddir=$ac_top_build_prefix
23541
23542
case $srcdir in
23543
  .)  # We are building in place.
23544
    ac_srcdir=.
23545
    ac_top_srcdir=$ac_top_builddir_sub
23546
    ac_abs_top_srcdir=$ac_pwd ;;
23547
  [\\/]* | ?:[\\/]* )  # Absolute name.
23548
    ac_srcdir=$srcdir$ac_dir_suffix;
23549
    ac_top_srcdir=$srcdir
23550
    ac_abs_top_srcdir=$srcdir ;;
23551
  *) # Relative name.
23552
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23553
    ac_top_srcdir=$ac_top_build_prefix$srcdir
23554
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23555
esac
23556
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23557
23558
23559
  case $ac_mode in
23560
  :F)
23561
  #
23562
  # CONFIG_FILE
23563
  #
23564
23565
  case $INSTALL in
23566
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23567
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23568
  esac
23569
_ACEOF
23570
23571
cat >>$CONFIG_STATUS <<\_ACEOF
23572
# If the template does not know about datarootdir, expand it.
23573
# FIXME: This hack should be removed a few years after 2.60.
23574
ac_datarootdir_hack=; ac_datarootdir_seen=
23575
23576
case `sed -n '/datarootdir/ {
23577
  p
23578
  q
23579
}
23580
/@datadir@/p
23581
/@docdir@/p
23582
/@infodir@/p
23583
/@localedir@/p
23584
/@mandir@/p
23585
' $ac_file_inputs` in
23586
*datarootdir*) ac_datarootdir_seen=yes;;
23587
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23588
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23589
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23590
_ACEOF
23591
cat >>$CONFIG_STATUS <<_ACEOF
23592
  ac_datarootdir_hack='
23593
  s&@datadir@&$datadir&g
23594
  s&@docdir@&$docdir&g
23595
  s&@infodir@&$infodir&g
23596
  s&@localedir@&$localedir&g
23597
  s&@mandir@&$mandir&g
23598
    s&\\\${datarootdir}&$datarootdir&g' ;;
23599
esac
23600
_ACEOF
23601
23602
# Neutralize VPATH when `$srcdir' = `.'.
23603
# Shell code in configure.ac might set extrasub.
23604
# FIXME: do we really want to maintain this feature?
23605
cat >>$CONFIG_STATUS <<_ACEOF
23606
  sed "$ac_vpsub
23607
$extrasub
23608
_ACEOF
23609
cat >>$CONFIG_STATUS <<\_ACEOF
23610
:t
23611
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23612
s&@configure_input@&$configure_input&;t t
23613
s&@top_builddir@&$ac_top_builddir_sub&;t t
23614
s&@srcdir@&$ac_srcdir&;t t
23615
s&@abs_srcdir@&$ac_abs_srcdir&;t t
23616
s&@top_srcdir@&$ac_top_srcdir&;t t
23617
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23618
s&@builddir@&$ac_builddir&;t t
23619
s&@abs_builddir@&$ac_abs_builddir&;t t
23620
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23621
s&@INSTALL@&$ac_INSTALL&;t t
23622
$ac_datarootdir_hack
23623
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23624
23625
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23626
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23627
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23628
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23629
which seems to be undefined.  Please make sure it is defined." >&5
23630
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23631
which seems to be undefined.  Please make sure it is defined." >&2;}
23632
23633
  rm -f "$tmp/stdin"
23634
  case $ac_file in
23635
  -) cat "$tmp/out"; rm -f "$tmp/out";;
23636
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23637
  esac
23638
 ;;
23639
  :H)
23640
  #
23641
  # CONFIG_HEADER
23642
  #
23643
_ACEOF
23644
23645
# Transform confdefs.h into a sed script `conftest.defines', that
23646
# substitutes the proper values into config.h.in to produce config.h.
23647
rm -f conftest.defines conftest.tail
23648
# First, append a space to every undef/define line, to ease matching.
23649
echo 's/$/ /' >conftest.defines
23650
# Then, protect against being on the right side of a sed subst, or in
23651
# an unquoted here document, in config.status.  If some macros were
23652
# called several times there might be several #defines for the same
23653
# symbol, which is useless.  But do not sort them, since the last
23654
# AC_DEFINE must be honored.
23655
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23656
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23657
# NAME is the cpp macro being defined, VALUE is the value it is being given.
23658
# PARAMS is the parameter list in the macro definition--in most cases, it's
23659
# just an empty string.
23660
ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23661
ac_dB='\\)[	 (].*,\\1define\\2'
23662
ac_dC=' '
23663
ac_dD=' ,'
23664
23665
uniq confdefs.h |
23666
  sed -n '
23667
	t rset
23668
	:rset
23669
	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23670
	t ok
23671
	d
23672
	:ok
23673
	s/[\\&,]/\\&/g
23674
	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23675
	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23676
  ' >>conftest.defines
23677
23678
# Remove the space that was appended to ease matching.
23679
# Then replace #undef with comments.  This is necessary, for
23680
# example, in the case of _POSIX_SOURCE, which is predefined and required
23681
# on some systems where configure will not decide to define it.
23682
# (The regexp can be short, since the line contains either #define or #undef.)
23683
echo 's/ $//
23684
s,^[	 #]*u.*,/* & */,' >>conftest.defines
23685
23686
# Break up conftest.defines:
23687
ac_max_sed_lines=50
23688
23689
# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23690
# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23691
# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23692
# et cetera.
23693
ac_in='$ac_file_inputs'
23694
ac_out='"$tmp/out1"'
23695
ac_nxt='"$tmp/out2"'
23696
23697
while :
23698
do
23699
  # Write a here document:
23700
    cat >>$CONFIG_STATUS <<_ACEOF
23701
    # First, check the format of the line:
23702
    cat >"\$tmp/defines.sed" <<\\CEOF
23703
/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23704
/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23705
b
23706
:def
23707
_ACEOF
23708
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23709
  echo 'CEOF
23710
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23711
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23712
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23713
  grep . conftest.tail >/dev/null || break
23714
  rm -f conftest.defines
23715
  mv conftest.tail conftest.defines
23716
done
23717
rm -f conftest.defines conftest.tail
23718
23719
echo "ac_result=$ac_in" >>$CONFIG_STATUS
23720
cat >>$CONFIG_STATUS <<\_ACEOF
23721
  if test x"$ac_file" != x-; then
23722
    echo "/* $configure_input  */" >"$tmp/config.h"
23723
    cat "$ac_result" >>"$tmp/config.h"
23724
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23725
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23726
echo "$as_me: $ac_file is unchanged" >&6;}
23727
    else
23728
      rm -f $ac_file
23729
      mv "$tmp/config.h" $ac_file
23730
    fi
23731
  else
23732
    echo "/* $configure_input  */"
23733
    cat "$ac_result"
23734
  fi
23735
  rm -f "$tmp/out12"
23736
# Compute $ac_file's index in $config_headers.
23737
_am_stamp_count=1
23738
for _am_header in $config_headers :; do
23739
  case $_am_header in
23740
    $ac_file | $ac_file:* )
23741
      break ;;
23742
    * )
23743
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23744
  esac
23745
done
23746
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23747
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23748
	 X$ac_file : 'X\(//\)[^/]' \| \
23749
	 X$ac_file : 'X\(//\)$' \| \
23750
	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23751
echo X$ac_file |
23752
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23753
	    s//\1/
23754
	    q
23755
	  }
23756
	  /^X\(\/\/\)[^/].*/{
23757
	    s//\1/
23758
	    q
23759
	  }
23760
	  /^X\(\/\/\)$/{
23761
	    s//\1/
23762
	    q
23763
	  }
23764
	  /^X\(\/\).*/{
23765
	    s//\1/
23766
	    q
23767
	  }
23768
	  s/.*/./; q'`/stamp-h$_am_stamp_count
23769
 ;;
23770
23771
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23772
echo "$as_me: executing $ac_file commands" >&6;}
23773
 ;;
23774
  esac
23775
23776
23777
  case $ac_file$ac_mode in
23778
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23779
  # Strip MF so we end up with the name of the file.
23780
  mf=`echo "$mf" | sed -e 's/:.*$//'`
23781
  # Check whether this is an Automake generated Makefile or not.
23782
  # We used to match only the files named `Makefile.in', but
23783
  # some people rename them; so instead we look at the file content.
23784
  # Grep'ing the first line is not enough: some people post-process
23785
  # each Makefile.in and add a new line on top of each file to say so.
23786
  # So let's grep whole file.
23787
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23788
    dirpart=`$as_dirname -- "$mf" ||
23789
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23790
	 X"$mf" : 'X\(//\)[^/]' \| \
23791
	 X"$mf" : 'X\(//\)$' \| \
23792
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23793
echo X"$mf" |
23794
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23795
	    s//\1/
23796
	    q
23797
	  }
23798
	  /^X\(\/\/\)[^/].*/{
23799
	    s//\1/
23800
	    q
23801
	  }
23802
	  /^X\(\/\/\)$/{
23803
	    s//\1/
23804
	    q
23805
	  }
23806
	  /^X\(\/\).*/{
23807
	    s//\1/
23808
	    q
23809
	  }
23810
	  s/.*/./; q'`
23811
  else
23812
    continue
23813
  fi
23814
  # Extract the definition of DEPDIR, am__include, and am__quote
23815
  # from the Makefile without running `make'.
23816
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23817
  test -z "$DEPDIR" && continue
23818
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23819
  test -z "am__include" && continue
23820
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23821
  # When using ansi2knr, U may be empty or an underscore; expand it
23822
  U=`sed -n 's/^U = //p' < "$mf"`
23823
  # Find all dependency output files, they are included files with
23824
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23825
  # simplest approach to changing $(DEPDIR) to its actual value in the
23826
  # expansion.
23827
  for file in `sed -n "
23828
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23829
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23830
    # Make sure the directory exists.
23831
    test -f "$dirpart/$file" && continue
23832
    fdir=`$as_dirname -- "$file" ||
23833
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23834
	 X"$file" : 'X\(//\)[^/]' \| \
23835
	 X"$file" : 'X\(//\)$' \| \
23836
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23837
echo X"$file" |
23838
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23839
	    s//\1/
23840
	    q
23841
	  }
23842
	  /^X\(\/\/\)[^/].*/{
23843
	    s//\1/
23844
	    q
23845
	  }
23846
	  /^X\(\/\/\)$/{
23847
	    s//\1/
23848
	    q
23849
	  }
23850
	  /^X\(\/\).*/{
23851
	    s//\1/
23852
	    q
23853
	  }
23854
	  s/.*/./; q'`
23855
    { as_dir=$dirpart/$fdir
23856
  case $as_dir in #(
23857
  -*) as_dir=./$as_dir;;
23858
  esac
23859
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23860
    as_dirs=
23861
    while :; do
23862
      case $as_dir in #(
23863
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23864
      *) as_qdir=$as_dir;;
23865
      esac
23866
      as_dirs="'$as_qdir' $as_dirs"
23867
      as_dir=`$as_dirname -- "$as_dir" ||
23868
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23869
	 X"$as_dir" : 'X\(//\)[^/]' \| \
23870
	 X"$as_dir" : 'X\(//\)$' \| \
23871
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23872
echo X"$as_dir" |
23873
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23874
	    s//\1/
23875
	    q
23876
	  }
23877
	  /^X\(\/\/\)[^/].*/{
23878
	    s//\1/
23879
	    q
23880
	  }
23881
	  /^X\(\/\/\)$/{
23882
	    s//\1/
23883
	    q
23884
	  }
23885
	  /^X\(\/\).*/{
23886
	    s//\1/
23887
	    q
23888
	  }
23889
	  s/.*/./; q'`
23890
      test -d "$as_dir" && break
23891
    done
23892
    test -z "$as_dirs" || eval "mkdir $as_dirs"
23893
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23894
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23895
   { (exit 1); exit 1; }; }; }
23896
    # echo "creating $dirpart/$file"
23897
    echo '# dummy' > "$dirpart/$file"
23898
  done
23899
done
23900
 ;;
1.1.1 by Michael Vogt
Import upstream version 0.7.2
23901
    "intltool":C)
23902
23903
for file in intltool-extract intltool-merge intltool-update; do
23904
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
23905
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
23906
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
23907
	< ${ac_aux_dir}/${file}.in > ${file}.out
23908
  if cmp -s ${file} ${file}.out 2>/dev/null; then
23909
    rm -f ${file}.out
23910
  else
23911
    mv -f ${file}.out ${file}
23912
  fi
23913
  chmod ugo+x ${file}
23914
  chmod u+w ${file}
23915
done
23916
23917
 ;;
1 by Sebastien Bacher
Import upstream version 0.7.1
23918
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
23919
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
23920
      esac ;;
23921
    "po/stamp-it":C)
23922
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
23923
    >"po/stamp-it.tmp"
23924
    sed '/^#/d
23925
	 s/^[[].*] *//
23926
	 /^[ 	]*$/d
23927
	'"s|^|	$ac_top_srcdir/|" \
23928
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
23929
23930
    if test ! -f "po/Makefile"; then
23931
      { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
23932
echo "$as_me: error: po/Makefile is not ready." >&2;}
23933
   { (exit 1); exit 1; }; }
23934
    fi
23935
    mv "po/Makefile" "po/Makefile.tmp"
23936
    sed '/^POTFILES =/,/[^\\]$/ {
23937
		/^POTFILES =/!d
23938
		r po/POTFILES
23939
	  }
23940
	 ' "po/Makefile.tmp" >"po/Makefile"
23941
    rm -f "po/Makefile.tmp"
23942
    mv "po/stamp-it.tmp" "po/stamp-it"
23943
   ;;
23944
23945
  esac
23946
done # for ac_tag
23947
23948
23949
{ (exit 0); exit 0; }
23950
_ACEOF
23951
chmod +x $CONFIG_STATUS
23952
ac_clean_files=$ac_clean_files_save
23953
23954
23955
# configure is writing to config.log, and then calls config.status.
23956
# config.status does its own redirection, appending to config.log.
23957
# Unfortunately, on DOS this fails, as config.log is still kept open
23958
# by configure, so config.status won't be able to write to it; its
23959
# output is simply discarded.  So we exec the FD to /dev/null,
23960
# effectively closing config.log, so it can be properly (re)opened and
23961
# appended to by config.status.  When coming back to configure, we
23962
# need to make the FD available again.
23963
if test "$no_create" != yes; then
23964
  ac_cs_success=:
23965
  ac_config_status_args=
23966
  test "$silent" = yes &&
23967
    ac_config_status_args="$ac_config_status_args --quiet"
23968
  exec 5>/dev/null
23969
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23970
  exec 5>>config.log
23971
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23972
  # would make configure fail if this is the last instruction.
23973
  $ac_cs_success || { (exit 1); exit 1; }
23974
fi
23975
23976