Annotation of rpl/configure, revision 1.90

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.86      bertrand    3: # Generated by GNU Autoconf 2.68 for rpl 4.1.4.
1.15      bertrand    4: #
1.1       bertrand    5: #
                      6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.36      bertrand    7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
                      8: # Foundation, Inc.
1.15      bertrand    9: #
                     10: #
1.1       bertrand   11: # This configure script is free software; the Free Software Foundation
                     12: # gives unlimited permission to copy, distribute and modify it.
1.15      bertrand   13: ## -------------------- ##
                     14: ## M4sh Initialization. ##
                     15: ## -------------------- ##
1.1       bertrand   16: 
                     17: # Be more Bourne compatible
                     18: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand   19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand   20:   emulate sh
                     21:   NULLCMD=:
1.15      bertrand   22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand   23:   # is contrary to our usage.  Disable this feature.
                     24:   alias -g '${1+"$@"}'='"$@"'
                     25:   setopt NO_GLOB_SUBST
                     26: else
1.15      bertrand   27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
1.1       bertrand   32: esac
                     33: fi
                     34: 
                     35: 
1.15      bertrand   36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     43: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     44: # but without wasting forks for bash or zsh.
                     45: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     47:   as_echo='print -r --'
                     48:   as_echo_n='print -rn --'
                     49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     50:   as_echo='printf %s\n'
                     51:   as_echo_n='printf %s'
                     52: else
                     53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     55:     as_echo_n='/usr/ucb/echo -n'
                     56:   else
                     57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     58:     as_echo_n_body='eval
                     59:       arg=$1;
                     60:       case $arg in #(
                     61:       *"$as_nl"*)
                     62:    expr "X$arg" : "X\\(.*\\)$as_nl";
                     63:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     64:       esac;
                     65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     66:     '
                     67:     export as_echo_n_body
                     68:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     69:   fi
                     70:   export as_echo_body
                     71:   as_echo='sh -c $as_echo_body as_echo'
                     72: fi
1.14      bertrand   73: 
                     74: # The user is always right.
                     75: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand   76:   PATH_SEPARATOR=:
                     77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     79:       PATH_SEPARATOR=';'
                     80:   }
1.1       bertrand   81: fi
                     82: 
                     83: 
                     84: # IFS
                     85: # We need space, tab and new line, in precisely that order.  Quoting is
                     86: # there to prevent editors from complaining about space-tab.
                     87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     88: # splitting by setting IFS to empty value.)
                     89: IFS=" ""   $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
1.57      bertrand   92: as_myself=
1.15      bertrand   93: case $0 in #((
1.1       bertrand   94:   *[\\/]* ) as_myself=$0 ;;
                     95:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     96: for as_dir in $PATH
                     97: do
                     98:   IFS=$as_save_IFS
                     99:   test -z "$as_dir" && as_dir=.
1.15      bertrand  100:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    101:   done
1.1       bertrand  102: IFS=$as_save_IFS
                    103: 
                    104:      ;;
                    105: esac
                    106: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    107: # in which case we are not to be found in the path.
                    108: if test "x$as_myself" = x; then
                    109:   as_myself=$0
                    110: fi
                    111: if test ! -f "$as_myself"; then
1.15      bertrand  112:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    113:   exit 1
1.1       bertrand  114: fi
                    115: 
1.15      bertrand  116: # Unset variables that we do not need and which cause bugs (e.g. in
                    117: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    118: # suppresses any "Segmentation fault" message there.  '((' could
                    119: # trigger a bug in pdksh 5.2.14.
                    120: for as_var in BASH_ENV ENV MAIL MAILPATH
                    121: do eval test x\${$as_var+set} = xset \
                    122:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  123: done
                    124: PS1='$ '
                    125: PS2='> '
                    126: PS4='+ '
                    127: 
                    128: # NLS nuisances.
1.15      bertrand  129: LC_ALL=C
                    130: export LC_ALL
                    131: LANGUAGE=C
                    132: export LANGUAGE
1.1       bertrand  133: 
                    134: # CDPATH.
1.15      bertrand  135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  136: 
                    137: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  138:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    139:   emulate sh
                    140:   NULLCMD=:
                    141:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    142:   # is contrary to our usage.  Disable this feature.
                    143:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    144:   setopt NO_GLOB_SUBST
1.1       bertrand  145: else
1.15      bertrand  146:   case \`(set -o) 2>/dev/null\` in #(
                    147:   *posix*) :
                    148:     set -o posix ;; #(
                    149:   *) :
                    150:      ;;
                    151: esac
1.1       bertrand  152: fi
1.15      bertrand  153: "
                    154:   as_required="as_fn_return () { (exit \$1); }
                    155: as_fn_success () { as_fn_return 0; }
                    156: as_fn_failure () { as_fn_return 1; }
                    157: as_fn_ret_success () { return 0; }
                    158: as_fn_ret_failure () { return 1; }
1.1       bertrand  159: 
                    160: exitcode=0
1.15      bertrand  161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    166: 
                    167: else
                    168:   exitcode=1; echo positional parameters were not saved.
                    169: fi
                    170: test x\$exitcode = x0 || exit 1"
                    171:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    172:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    173:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    174:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    175: test \$(( 1 + 1 )) = 2 || exit 1"
                    176:   if (eval "$as_required") 2>/dev/null; then :
                    177:   as_have_required=yes
1.14      bertrand  178: else
1.15      bertrand  179:   as_have_required=no
1.14      bertrand  180: fi
1.15      bertrand  181:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  182: 
                    183: else
1.15      bertrand  184:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    185: as_found=false
1.1       bertrand  186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    187: do
                    188:   IFS=$as_save_IFS
                    189:   test -z "$as_dir" && as_dir=.
1.15      bertrand  190:   as_found=:
                    191:   case $as_dir in #(
1.1       bertrand  192:     /*)
                    193:       for as_base in sh bash ksh sh5; do
1.15      bertrand  194:         # Try only shells that exist, to save several forks.
                    195:         as_shell=$as_dir/$as_base
                    196:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    197:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    198:   CONFIG_SHELL=$as_shell as_have_required=yes
                    199:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    200:   break 2
                    201: fi
                    202: fi
1.1       bertrand  203:       done;;
                    204:        esac
1.15      bertrand  205:   as_found=false
1.1       bertrand  206: done
1.15      bertrand  207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    208:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    209:   CONFIG_SHELL=$SHELL as_have_required=yes
                    210: fi; }
1.1       bertrand  211: IFS=$as_save_IFS
                    212: 
                    213: 
1.15      bertrand  214:       if test "x$CONFIG_SHELL" != x; then :
                    215:   # We cannot yet assume a decent shell, so we have to provide a
                    216:    # neutralization value for shells without unset; and this also
                    217:    # works around shells that cannot unset nonexistent variables.
1.57      bertrand  218:    # Preserve -v and -x to the replacement shell.
1.15      bertrand  219:    BASH_ENV=/dev/null
                    220:    ENV=/dev/null
                    221:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    222:    export CONFIG_SHELL
1.57      bertrand  223:    case $- in # ((((
                    224:      *v*x* | *x*v* ) as_opts=-vx ;;
                    225:      *v* ) as_opts=-v ;;
                    226:      *x* ) as_opts=-x ;;
                    227:      * ) as_opts= ;;
                    228:    esac
                    229:    exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1.15      bertrand  230: fi
                    231: 
                    232:     if test x$as_have_required = xno; then :
                    233:   $as_echo "$0: This script requires a shell more modern than all"
                    234:   $as_echo "$0: the shells that I found on your system."
                    235:   if test x${ZSH_VERSION+set} = xset ; then
                    236:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    237:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    238:   else
                    239:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    240: $0: including any error possibly output before this
                    241: $0: message. Then install a modern shell, or manually run
                    242: $0: the script under such a shell if you do have one."
                    243:   fi
                    244:   exit 1
                    245: fi
1.1       bertrand  246: fi
                    247: fi
1.15      bertrand  248: SHELL=${CONFIG_SHELL-/bin/sh}
                    249: export SHELL
                    250: # Unset more variables known to interfere with behavior of common tools.
                    251: CLICOLOR_FORCE= GREP_OPTIONS=
                    252: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  253: 
1.15      bertrand  254: ## --------------------- ##
                    255: ## M4sh Shell Functions. ##
                    256: ## --------------------- ##
                    257: # as_fn_unset VAR
                    258: # ---------------
                    259: # Portably unset VAR.
                    260: as_fn_unset ()
                    261: {
                    262:   { eval $1=; unset $1;}
                    263: }
                    264: as_unset=as_fn_unset
                    265: 
                    266: # as_fn_set_status STATUS
                    267: # -----------------------
                    268: # Set $? to STATUS, without forking.
                    269: as_fn_set_status ()
                    270: {
                    271:   return $1
                    272: } # as_fn_set_status
                    273: 
                    274: # as_fn_exit STATUS
                    275: # -----------------
                    276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    277: as_fn_exit ()
                    278: {
                    279:   set +e
                    280:   as_fn_set_status $1
                    281:   exit $1
                    282: } # as_fn_exit
                    283: 
                    284: # as_fn_mkdir_p
                    285: # -------------
                    286: # Create "$as_dir" as a directory, including parents if necessary.
                    287: as_fn_mkdir_p ()
                    288: {
1.14      bertrand  289: 
1.15      bertrand  290:   case $as_dir in #(
                    291:   -*) as_dir=./$as_dir;;
                    292:   esac
                    293:   test -d "$as_dir" || eval $as_mkdir_p || {
                    294:     as_dirs=
                    295:     while :; do
                    296:       case $as_dir in #(
                    297:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    298:       *) as_qdir=$as_dir;;
                    299:       esac
                    300:       as_dirs="'$as_qdir' $as_dirs"
                    301:       as_dir=`$as_dirname -- "$as_dir" ||
                    302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    303:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    304:     X"$as_dir" : 'X\(//\)$' \| \
                    305:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    306: $as_echo X"$as_dir" |
                    307:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\/\)[^/].*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      /^X\(\/\/\)$/{
                    316:        s//\1/
                    317:        q
                    318:      }
                    319:      /^X\(\/\).*/{
                    320:        s//\1/
                    321:        q
                    322:      }
                    323:      s/.*/./; q'`
                    324:       test -d "$as_dir" && break
                    325:     done
                    326:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand  327:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1       bertrand  328: 
                    329: 
1.15      bertrand  330: } # as_fn_mkdir_p
                    331: # as_fn_append VAR VALUE
                    332: # ----------------------
                    333: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    334: # advantage of any shell optimizations that allow amortized linear growth over
                    335: # repeated appends, instead of the typical quadratic growth present in naive
                    336: # implementations.
                    337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    338:   eval 'as_fn_append ()
                    339:   {
                    340:     eval $1+=\$2
                    341:   }'
1.14      bertrand  342: else
1.15      bertrand  343:   as_fn_append ()
                    344:   {
                    345:     eval $1=\$$1\$2
                    346:   }
                    347: fi # as_fn_append
1.1       bertrand  348: 
1.15      bertrand  349: # as_fn_arith ARG...
                    350: # ------------------
                    351: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    353: # must be portable across $(()) and expr.
                    354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    355:   eval 'as_fn_arith ()
                    356:   {
                    357:     as_val=$(( $* ))
                    358:   }'
1.1       bertrand  359: else
1.15      bertrand  360:   as_fn_arith ()
                    361:   {
                    362:     as_val=`expr "$@" || test $? -eq 1`
                    363:   }
                    364: fi # as_fn_arith
1.14      bertrand  365: 
                    366: 
1.36      bertrand  367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    368: # ----------------------------------------
1.15      bertrand  369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand  371: # script with STATUS, using 1 if that was 0.
1.15      bertrand  372: as_fn_error ()
                    373: {
1.36      bertrand  374:   as_status=$1; test $as_status -eq 0 && as_status=1
                    375:   if test "$4"; then
                    376:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    377:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand  378:   fi
1.36      bertrand  379:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand  380:   as_fn_exit $as_status
                    381: } # as_fn_error
1.14      bertrand  382: 
1.15      bertrand  383: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    384:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    385:   as_expr=expr
1.1       bertrand  386: else
1.15      bertrand  387:   as_expr=false
1.14      bertrand  388: fi
                    389: 
1.15      bertrand  390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    391:   as_basename=basename
1.1       bertrand  392: else
1.15      bertrand  393:   as_basename=false
1.14      bertrand  394: fi
                    395: 
1.15      bertrand  396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    397:   as_dirname=dirname
1.1       bertrand  398: else
1.15      bertrand  399:   as_dirname=false
1.1       bertrand  400: fi
                    401: 
1.15      bertrand  402: as_me=`$as_basename -- "$0" ||
                    403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    404:     X"$0" : 'X\(//\)$' \| \
                    405:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    406: $as_echo X/"$0" |
                    407:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      /^X\/\(\/\/\)$/{
                    412:        s//\1/
                    413:        q
                    414:      }
                    415:      /^X\/\(\/\).*/{
                    416:        s//\1/
                    417:        q
                    418:      }
                    419:      s/.*/./; q'`
1.1       bertrand  420: 
1.15      bertrand  421: # Avoid depending upon Character Ranges.
                    422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    425: as_cr_digits='0123456789'
                    426: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  427: 
                    428: 
1.15      bertrand  429:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    430:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    431:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    432:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    433:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  434:   sed -n '
                    435:     p
                    436:     /[$]LINENO/=
                    437:   ' <$as_myself |
                    438:     sed '
                    439:       s/[$]LINENO.*/&-/
                    440:       t lineno
                    441:       b
                    442:       :lineno
                    443:       N
                    444:       :loop
                    445:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    446:       t loop
                    447:       s/-\n.*//
                    448:     ' >$as_me.lineno &&
                    449:   chmod +x "$as_me.lineno" ||
1.15      bertrand  450:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  451: 
                    452:   # Don't try to exec as it changes $[0], causing all sort of problems
                    453:   # (the dirname of $[0] is not the place where we might find the
                    454:   # original and so on.  Autoconf is especially sensitive to this).
                    455:   . "./$as_me.lineno"
                    456:   # Exit status is that of the last command.
                    457:   exit
                    458: }
                    459: 
1.15      bertrand  460: ECHO_C= ECHO_N= ECHO_T=
                    461: case `echo -n x` in #(((((
                    462: -n*)
                    463:   case `echo 'xy\c'` in
1.1       bertrand  464:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  465:   xy)  ECHO_C='\c';;
                    466:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    467:        ECHO_T='    ';;
1.1       bertrand  468:   esac;;
                    469: *)
                    470:   ECHO_N='-n';;
                    471: esac
                    472: 
                    473: rm -f conf$$ conf$$.exe conf$$.file
                    474: if test -d conf$$.dir; then
                    475:   rm -f conf$$.dir/conf$$.file
                    476: else
                    477:   rm -f conf$$.dir
1.15      bertrand  478:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  479: fi
1.15      bertrand  480: if (echo >conf$$.file) 2>/dev/null; then
                    481:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s='ln -s'
                    483:     # ... but there are two gotchas:
                    484:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    485:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    486:     # In both cases, we have to default to `cp -p'.
                    487:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    488:       as_ln_s='cp -p'
                    489:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    490:     as_ln_s=ln
                    491:   else
1.1       bertrand  492:     as_ln_s='cp -p'
1.15      bertrand  493:   fi
1.1       bertrand  494: else
                    495:   as_ln_s='cp -p'
                    496: fi
                    497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    498: rmdir conf$$.dir 2>/dev/null
                    499: 
                    500: if mkdir -p . 2>/dev/null; then
1.15      bertrand  501:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  502: else
                    503:   test -d ./-p && rmdir ./-p
                    504:   as_mkdir_p=false
                    505: fi
                    506: 
                    507: if test -x / >/dev/null 2>&1; then
                    508:   as_test_x='test -x'
                    509: else
                    510:   if ls -dL / >/dev/null 2>&1; then
                    511:     as_ls_L_option=L
                    512:   else
                    513:     as_ls_L_option=
                    514:   fi
                    515:   as_test_x='
                    516:     eval sh -c '\''
                    517:       if test -d "$1"; then
1.15      bertrand  518:    test -d "$1/.";
1.1       bertrand  519:       else
1.15      bertrand  520:    case $1 in #(
                    521:    -*)set "./$1";;
1.1       bertrand  522:    esac;
1.15      bertrand  523:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  524:    ???[sx]*):;;*)false;;esac;fi
                    525:     '\'' sh
                    526:   '
                    527: fi
                    528: as_executable_p=$as_test_x
                    529: 
                    530: # Sed expression to map a string onto a valid CPP name.
                    531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    532: 
                    533: # Sed expression to map a string onto a valid variable name.
                    534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    535: 
                    536: 
1.15      bertrand  537: test -n "$DJDIR" || exec 7<&0 </dev/null
                    538: exec 6>&1
1.1       bertrand  539: 
                    540: # Name of the host.
1.36      bertrand  541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1       bertrand  542: # so uname gets run too.
                    543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    544: 
                    545: #
                    546: # Initializations.
                    547: #
                    548: ac_default_prefix=/usr/local
                    549: ac_clean_files=
                    550: ac_config_libobj_dir=.
                    551: LIBOBJS=
                    552: cross_compiling=no
                    553: subdirs=
                    554: MFLAGS=
                    555: MAKEFLAGS=
                    556: 
                    557: # Identity of this package.
                    558: PACKAGE_NAME='rpl'
                    559: PACKAGE_TARNAME='rpl'
1.86      bertrand  560: PACKAGE_VERSION='4.1.4'
                    561: PACKAGE_STRING='rpl 4.1.4'
1.1       bertrand  562: PACKAGE_BUGREPORT=''
1.15      bertrand  563: PACKAGE_URL=''
1.1       bertrand  564: 
1.80      bertrand  565: enable_option_checking=no
1.1       bertrand  566: ac_default_prefix=/usr/local
                    567: # Factoring default headers for most tests.
                    568: ac_includes_default="\
                    569: #include <stdio.h>
                    570: #ifdef HAVE_SYS_TYPES_H
                    571: # include <sys/types.h>
                    572: #endif
                    573: #ifdef HAVE_SYS_STAT_H
                    574: # include <sys/stat.h>
                    575: #endif
                    576: #ifdef STDC_HEADERS
                    577: # include <stdlib.h>
                    578: # include <stddef.h>
                    579: #else
                    580: # ifdef HAVE_STDLIB_H
                    581: #  include <stdlib.h>
                    582: # endif
                    583: #endif
                    584: #ifdef HAVE_STRING_H
                    585: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    586: #  include <memory.h>
                    587: # endif
                    588: # include <string.h>
                    589: #endif
                    590: #ifdef HAVE_STRINGS_H
                    591: # include <strings.h>
                    592: #endif
                    593: #ifdef HAVE_INTTYPES_H
                    594: # include <inttypes.h>
                    595: #endif
                    596: #ifdef HAVE_STDINT_H
                    597: # include <stdint.h>
                    598: #endif
                    599: #ifdef HAVE_UNISTD_H
                    600: # include <unistd.h>
                    601: #endif"
                    602: 
1.15      bertrand  603: ac_subst_vars='am__EXEEXT_FALSE
                    604: am__EXEEXT_TRUE
                    605: LTLIBOBJS
                    606: LIBOBJS
1.80      bertrand  607: LIBMOTIF
                    608: INCMOTIF
1.56      bertrand  609: GIAC
                    610: PARI
                    611: COCOA
                    612: NTL
1.55      bertrand  613: MPFR
                    614: GMP
1.49      bertrand  615: MALLOC
1.30      bertrand  616: EXT_SQL
1.15      bertrand  617: DATE_FR
                    618: FINAL_ENCODING
1.76      bertrand  619: SIGSEGV
1.80      bertrand  620: BUILD_OPENMOTIF
1.78      bertrand  621: OPENMOTIF
1.82      bertrand  622: LIBXPM
1.15      bertrand  623: OPENSSL
                    624: SQLITE
                    625: ICONV
                    626: FILE
                    627: GNUPLOT
                    628: GPP
                    629: GSL
                    630: UNITS
                    631: READLINE
                    632: NCURSES
1.75      bertrand  633: ELF
1.40      bertrand  634: BSH_PATH
1.34      bertrand  635: IPV6
1.33      bertrand  636: SEMUN
1.36      bertrand  637: IPCS_SYSV
1.17      bertrand  638: SEMAPHORES_NOMMES
                    639: NESTED_FUNCTIONS
                    640: EXPORT_DYNAMIC
1.33      bertrand  641: C_STANDARD
1.90    ! bertrand  642: WHOLE_LIB2
        !           643: WHOLE_LIB1
1.15      bertrand  644: OS
1.69      bertrand  645: HOST
1.15      bertrand  646: GNUPLOT_COMPILATION
                    647: EGREP
                    648: GREP
                    649: libPgSQLlib
                    650: libPgSQLinc
                    651: POSTGRESQL_SUPPORT
                    652: libMySQLlib
                    653: libMySQLinc
                    654: MYSQL_SUPPORT
                    655: DATE
                    656: includeX
                    657: libX
                    658: MOTIF_SUPPORT
                    659: DEBUG
                    660: EXPERIMENTAL_CODE
                    661: VIM_SUPPORT
                    662: POSTSCRIPT_SUPPORT
                    663: FORCE_GNUPLOT_PATH
                    664: GNUPLOT_SUPPORT
                    665: VIM
                    666: GNUPLOT_P
                    667: GV
                    668: GS
                    669: DVIPS
                    670: LATEX
                    671: TEX
                    672: SED
                    673: RANLIB
                    674: LN_S
                    675: RUNPATH
                    676: PROFILAGE
1.80      bertrand  677: subdirs
1.89      bertrand  678: SHARED_MEMORY
1.67      bertrand  679: LIBRPLCAS
                    680: RPLCAS
1.66      bertrand  681: ABI
1.88      bertrand  682: RPLTOOLS
1.15      bertrand  683: X_EXTRA_LIBS
                    684: X_LIBS
                    685: X_PRE_LIBS
                    686: X_CFLAGS
                    687: CPP
                    688: XMKMF
                    689: ac_ct_FC
                    690: FCFLAGS
                    691: FC
                    692: ac_ct_F77
                    693: FFLAGS
                    694: F77
                    695: am__fastdepCXX_FALSE
                    696: am__fastdepCXX_TRUE
                    697: CXXDEPMODE
                    698: ac_ct_CXX
                    699: CXXFLAGS
                    700: CXX
                    701: am__fastdepCC_FALSE
                    702: am__fastdepCC_TRUE
                    703: CCDEPMODE
                    704: AMDEPBACKSLASH
                    705: AMDEP_FALSE
                    706: AMDEP_TRUE
                    707: am__quote
                    708: am__include
                    709: DEPDIR
                    710: OBJEXT
                    711: EXEEXT
                    712: ac_ct_CC
                    713: CPPFLAGS
                    714: LDFLAGS
                    715: CFLAGS
                    716: CC
                    717: am__untar
                    718: am__tar
                    719: AMTAR
                    720: am__leading_dot
                    721: SET_MAKE
                    722: AWK
                    723: mkdir_p
                    724: MKDIR_P
                    725: INSTALL_STRIP_PROGRAM
                    726: STRIP
                    727: install_sh
                    728: MAKEINFO
                    729: AUTOHEADER
                    730: AUTOMAKE
                    731: AUTOCONF
                    732: ACLOCAL
                    733: VERSION
                    734: PACKAGE
                    735: CYGPATH_W
                    736: am__isrc
                    737: INSTALL_DATA
                    738: INSTALL_SCRIPT
                    739: INSTALL_PROGRAM
                    740: target_os
                    741: target_vendor
                    742: target_cpu
                    743: target
                    744: host_os
                    745: host_vendor
                    746: host_cpu
                    747: host
                    748: build_os
                    749: build_vendor
                    750: build_cpu
                    751: build
                    752: target_alias
                    753: host_alias
                    754: build_alias
                    755: LIBS
                    756: ECHO_T
                    757: ECHO_N
                    758: ECHO_C
                    759: DEFS
                    760: mandir
                    761: localedir
                    762: libdir
                    763: psdir
                    764: pdfdir
                    765: dvidir
                    766: htmldir
                    767: infodir
                    768: docdir
                    769: oldincludedir
                    770: includedir
                    771: localstatedir
                    772: sharedstatedir
                    773: sysconfdir
                    774: datadir
                    775: datarootdir
                    776: libexecdir
                    777: sbindir
                    778: bindir
                    779: program_transform_name
                    780: prefix
                    781: exec_prefix
                    782: PACKAGE_URL
                    783: PACKAGE_BUGREPORT
                    784: PACKAGE_STRING
                    785: PACKAGE_VERSION
                    786: PACKAGE_TARNAME
                    787: PACKAGE_NAME
1.14      bertrand  788: PATH_SEPARATOR
1.15      bertrand  789: SHELL'
                    790: ac_subst_files=''
                    791: ac_user_opts='
                    792: enable_option_checking
                    793: enable_dependency_tracking
                    794: with_x
1.69      bertrand  795: with_32bits_abi
                    796: with_64bits_abi
1.88      bertrand  797: with_rpltools
                    798: enable_rplcas
1.89      bertrand  799: enable_shared_memory
1.15      bertrand  800: enable_optimization
1.87      bertrand  801: enable_sysv_ipcs
1.30      bertrand  802: enable_full_static
1.15      bertrand  803: enable_final_encoding
                    804: enable_tex
                    805: enable_vim
                    806: enable_embedded_gnuplot
                    807: enable_gnuplot
                    808: enable_motif
                    809: enable_experimental
                    810: enable_debug
                    811: enable_profile
                    812: enable_final_run_path
                    813: with_mysql
                    814: with_postgresql
1.40      bertrand  815: with_bourne_shell
1.15      bertrand  816: with_openssl_arch
                    817: '
                    818:       ac_precious_vars='build_alias
1.1       bertrand  819: host_alias
                    820: target_alias
                    821: CC
                    822: CFLAGS
                    823: LDFLAGS
1.15      bertrand  824: LIBS
1.1       bertrand  825: CPPFLAGS
                    826: CXX
                    827: CXXFLAGS
1.15      bertrand  828: CCC
1.1       bertrand  829: F77
                    830: FFLAGS
                    831: FC
                    832: FCFLAGS
                    833: XMKMF
                    834: CPP'
1.80      bertrand  835: ac_subdirs_all='tools/$LIBXPM
                    836: tools/$OPENMOTIF
                    837: tools/$GNUPLOT
1.69      bertrand  838: tools/$NCURSES
1.1       bertrand  839: tools/$READLINE
                    840: tools/$GSL
                    841: tools/$GPP
                    842: tools/$FILE
                    843: tools/$ICONV
1.9       bertrand  844: tools/$SQLITE
1.76      bertrand  845: tools/$UNITS
                    846: tools/$SIGSEGV'
1.1       bertrand  847: 
                    848: # Initialize some variables set by options.
                    849: ac_init_help=
                    850: ac_init_version=false
1.15      bertrand  851: ac_unrecognized_opts=
                    852: ac_unrecognized_sep=
1.1       bertrand  853: # The variables have the same names as the options, with
                    854: # dashes changed to underlines.
                    855: cache_file=/dev/null
                    856: exec_prefix=NONE
                    857: no_create=
                    858: no_recursion=
                    859: prefix=NONE
                    860: program_prefix=NONE
                    861: program_suffix=NONE
                    862: program_transform_name=s,x,x,
                    863: silent=
                    864: site=
                    865: srcdir=
                    866: verbose=
                    867: x_includes=NONE
                    868: x_libraries=NONE
                    869: 
                    870: # Installation directory options.
                    871: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    872: # and all the variables that are supposed to be based on exec_prefix
                    873: # by default will actually change.
                    874: # Use braces instead of parens because sh, perl, etc. also accept them.
                    875: # (The list follows the same order as the GNU Coding Standards.)
                    876: bindir='${exec_prefix}/bin'
                    877: sbindir='${exec_prefix}/sbin'
                    878: libexecdir='${exec_prefix}/libexec'
                    879: datarootdir='${prefix}/share'
                    880: datadir='${datarootdir}'
                    881: sysconfdir='${prefix}/etc'
                    882: sharedstatedir='${prefix}/com'
                    883: localstatedir='${prefix}/var'
                    884: includedir='${prefix}/include'
                    885: oldincludedir='/usr/include'
                    886: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    887: infodir='${datarootdir}/info'
                    888: htmldir='${docdir}'
                    889: dvidir='${docdir}'
                    890: pdfdir='${docdir}'
                    891: psdir='${docdir}'
                    892: libdir='${exec_prefix}/lib'
                    893: localedir='${datarootdir}/locale'
                    894: mandir='${datarootdir}/man'
                    895: 
                    896: ac_prev=
                    897: ac_dashdash=
                    898: for ac_option
                    899: do
                    900:   # If the previous option needs an argument, assign it.
                    901:   if test -n "$ac_prev"; then
                    902:     eval $ac_prev=\$ac_option
                    903:     ac_prev=
                    904:     continue
                    905:   fi
                    906: 
                    907:   case $ac_option in
1.36      bertrand  908:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    909:   *=)   ac_optarg= ;;
                    910:   *)    ac_optarg=yes ;;
1.1       bertrand  911:   esac
                    912: 
                    913:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    914: 
                    915:   case $ac_dashdash$ac_option in
                    916:   --)
                    917:     ac_dashdash=yes ;;
                    918: 
                    919:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    920:     ac_prev=bindir ;;
                    921:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    922:     bindir=$ac_optarg ;;
                    923: 
                    924:   -build | --build | --buil | --bui | --bu)
                    925:     ac_prev=build_alias ;;
                    926:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    927:     build_alias=$ac_optarg ;;
                    928: 
                    929:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    930:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    931:     ac_prev=cache_file ;;
                    932:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    933:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    934:     cache_file=$ac_optarg ;;
                    935: 
                    936:   --config-cache | -C)
                    937:     cache_file=config.cache ;;
                    938: 
                    939:   -datadir | --datadir | --datadi | --datad)
                    940:     ac_prev=datadir ;;
                    941:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    942:     datadir=$ac_optarg ;;
                    943: 
                    944:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    945:   | --dataroo | --dataro | --datar)
                    946:     ac_prev=datarootdir ;;
                    947:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    948:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    949:     datarootdir=$ac_optarg ;;
                    950: 
                    951:   -disable-* | --disable-*)
1.15      bertrand  952:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  953:     # Reject names that are not valid shell variable names.
1.15      bertrand  954:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  955:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  956:     ac_useropt_orig=$ac_useropt
                    957:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    958:     case $ac_user_opts in
                    959:       *"
                    960: "enable_$ac_useropt"
                    961: "*) ;;
                    962:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    963:     ac_unrecognized_sep=', ';;
                    964:     esac
                    965:     eval enable_$ac_useropt=no ;;
1.1       bertrand  966: 
                    967:   -docdir | --docdir | --docdi | --doc | --do)
                    968:     ac_prev=docdir ;;
                    969:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    970:     docdir=$ac_optarg ;;
                    971: 
                    972:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    973:     ac_prev=dvidir ;;
                    974:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    975:     dvidir=$ac_optarg ;;
                    976: 
                    977:   -enable-* | --enable-*)
1.15      bertrand  978:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  979:     # Reject names that are not valid shell variable names.
1.15      bertrand  980:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  981:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  982:     ac_useropt_orig=$ac_useropt
                    983:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    984:     case $ac_user_opts in
                    985:       *"
                    986: "enable_$ac_useropt"
                    987: "*) ;;
                    988:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    989:     ac_unrecognized_sep=', ';;
                    990:     esac
                    991:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  992: 
                    993:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    994:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    995:   | --exec | --exe | --ex)
                    996:     ac_prev=exec_prefix ;;
                    997:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    998:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    999:   | --exec=* | --exe=* | --ex=*)
                   1000:     exec_prefix=$ac_optarg ;;
                   1001: 
                   1002:   -gas | --gas | --ga | --g)
                   1003:     # Obsolete; use --with-gas.
                   1004:     with_gas=yes ;;
                   1005: 
                   1006:   -help | --help | --hel | --he | -h)
                   1007:     ac_init_help=long ;;
                   1008:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1009:     ac_init_help=recursive ;;
                   1010:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1011:     ac_init_help=short ;;
                   1012: 
                   1013:   -host | --host | --hos | --ho)
                   1014:     ac_prev=host_alias ;;
                   1015:   -host=* | --host=* | --hos=* | --ho=*)
                   1016:     host_alias=$ac_optarg ;;
                   1017: 
                   1018:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1019:     ac_prev=htmldir ;;
                   1020:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1021:   | --ht=*)
                   1022:     htmldir=$ac_optarg ;;
                   1023: 
                   1024:   -includedir | --includedir | --includedi | --included | --include \
                   1025:   | --includ | --inclu | --incl | --inc)
                   1026:     ac_prev=includedir ;;
                   1027:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1028:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1029:     includedir=$ac_optarg ;;
                   1030: 
                   1031:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1032:     ac_prev=infodir ;;
                   1033:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1034:     infodir=$ac_optarg ;;
                   1035: 
                   1036:   -libdir | --libdir | --libdi | --libd)
                   1037:     ac_prev=libdir ;;
                   1038:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1039:     libdir=$ac_optarg ;;
                   1040: 
                   1041:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1042:   | --libexe | --libex | --libe)
                   1043:     ac_prev=libexecdir ;;
                   1044:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1045:   | --libexe=* | --libex=* | --libe=*)
                   1046:     libexecdir=$ac_optarg ;;
                   1047: 
                   1048:   -localedir | --localedir | --localedi | --localed | --locale)
                   1049:     ac_prev=localedir ;;
                   1050:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1051:     localedir=$ac_optarg ;;
                   1052: 
                   1053:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1054:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1055:     ac_prev=localstatedir ;;
                   1056:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1057:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1058:     localstatedir=$ac_optarg ;;
                   1059: 
                   1060:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1061:     ac_prev=mandir ;;
                   1062:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1063:     mandir=$ac_optarg ;;
                   1064: 
                   1065:   -nfp | --nfp | --nf)
                   1066:     # Obsolete; use --without-fp.
                   1067:     with_fp=no ;;
                   1068: 
                   1069:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1070:   | --no-cr | --no-c | -n)
                   1071:     no_create=yes ;;
                   1072: 
                   1073:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1074:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1075:     no_recursion=yes ;;
                   1076: 
                   1077:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1078:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1079:   | --oldin | --oldi | --old | --ol | --o)
                   1080:     ac_prev=oldincludedir ;;
                   1081:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1082:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1083:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1084:     oldincludedir=$ac_optarg ;;
                   1085: 
                   1086:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1087:     ac_prev=prefix ;;
                   1088:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1089:     prefix=$ac_optarg ;;
                   1090: 
                   1091:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1092:   | --program-pre | --program-pr | --program-p)
                   1093:     ac_prev=program_prefix ;;
                   1094:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1095:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1096:     program_prefix=$ac_optarg ;;
                   1097: 
                   1098:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1099:   | --program-suf | --program-su | --program-s)
                   1100:     ac_prev=program_suffix ;;
                   1101:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1102:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1103:     program_suffix=$ac_optarg ;;
                   1104: 
                   1105:   -program-transform-name | --program-transform-name \
                   1106:   | --program-transform-nam | --program-transform-na \
                   1107:   | --program-transform-n | --program-transform- \
                   1108:   | --program-transform | --program-transfor \
                   1109:   | --program-transfo | --program-transf \
                   1110:   | --program-trans | --program-tran \
                   1111:   | --progr-tra | --program-tr | --program-t)
                   1112:     ac_prev=program_transform_name ;;
                   1113:   -program-transform-name=* | --program-transform-name=* \
                   1114:   | --program-transform-nam=* | --program-transform-na=* \
                   1115:   | --program-transform-n=* | --program-transform-=* \
                   1116:   | --program-transform=* | --program-transfor=* \
                   1117:   | --program-transfo=* | --program-transf=* \
                   1118:   | --program-trans=* | --program-tran=* \
                   1119:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1120:     program_transform_name=$ac_optarg ;;
                   1121: 
                   1122:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1123:     ac_prev=pdfdir ;;
                   1124:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1125:     pdfdir=$ac_optarg ;;
                   1126: 
                   1127:   -psdir | --psdir | --psdi | --psd | --ps)
                   1128:     ac_prev=psdir ;;
                   1129:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1130:     psdir=$ac_optarg ;;
                   1131: 
                   1132:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1133:   | -silent | --silent | --silen | --sile | --sil)
                   1134:     silent=yes ;;
                   1135: 
                   1136:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1137:     ac_prev=sbindir ;;
                   1138:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1139:   | --sbi=* | --sb=*)
                   1140:     sbindir=$ac_optarg ;;
                   1141: 
                   1142:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1143:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1144:   | --sharedst | --shareds | --shared | --share | --shar \
                   1145:   | --sha | --sh)
                   1146:     ac_prev=sharedstatedir ;;
                   1147:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1148:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1149:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1150:   | --sha=* | --sh=*)
                   1151:     sharedstatedir=$ac_optarg ;;
                   1152: 
                   1153:   -site | --site | --sit)
                   1154:     ac_prev=site ;;
                   1155:   -site=* | --site=* | --sit=*)
                   1156:     site=$ac_optarg ;;
                   1157: 
                   1158:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1159:     ac_prev=srcdir ;;
                   1160:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1161:     srcdir=$ac_optarg ;;
                   1162: 
                   1163:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1164:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1165:     ac_prev=sysconfdir ;;
                   1166:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1167:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1168:     sysconfdir=$ac_optarg ;;
                   1169: 
                   1170:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1171:     ac_prev=target_alias ;;
                   1172:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1173:     target_alias=$ac_optarg ;;
                   1174: 
                   1175:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1176:     verbose=yes ;;
                   1177: 
                   1178:   -version | --version | --versio | --versi | --vers | -V)
                   1179:     ac_init_version=: ;;
                   1180: 
                   1181:   -with-* | --with-*)
1.15      bertrand 1182:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1183:     # Reject names that are not valid shell variable names.
1.15      bertrand 1184:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1185:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1186:     ac_useropt_orig=$ac_useropt
                   1187:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1188:     case $ac_user_opts in
                   1189:       *"
                   1190: "with_$ac_useropt"
                   1191: "*) ;;
                   1192:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1193:     ac_unrecognized_sep=', ';;
                   1194:     esac
                   1195:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1196: 
                   1197:   -without-* | --without-*)
1.15      bertrand 1198:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1199:     # Reject names that are not valid shell variable names.
1.15      bertrand 1200:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1201:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1202:     ac_useropt_orig=$ac_useropt
                   1203:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1204:     case $ac_user_opts in
                   1205:       *"
                   1206: "with_$ac_useropt"
                   1207: "*) ;;
                   1208:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1209:     ac_unrecognized_sep=', ';;
                   1210:     esac
                   1211:     eval with_$ac_useropt=no ;;
1.1       bertrand 1212: 
                   1213:   --x)
                   1214:     # Obsolete; use --with-x.
                   1215:     with_x=yes ;;
                   1216: 
                   1217:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1218:   | --x-incl | --x-inc | --x-in | --x-i)
                   1219:     ac_prev=x_includes ;;
                   1220:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1221:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1222:     x_includes=$ac_optarg ;;
                   1223: 
                   1224:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1225:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1226:     ac_prev=x_libraries ;;
                   1227:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1228:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1229:     x_libraries=$ac_optarg ;;
                   1230: 
1.36      bertrand 1231:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1232: Try \`$0 --help' for more information"
1.1       bertrand 1233:     ;;
                   1234: 
                   1235:   *=*)
                   1236:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1237:     # Reject names that are not valid shell variable names.
1.15      bertrand 1238:     case $ac_envvar in #(
                   1239:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1240:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1241:     esac
1.1       bertrand 1242:     eval $ac_envvar=\$ac_optarg
                   1243:     export $ac_envvar ;;
                   1244: 
                   1245:   *)
                   1246:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1247:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1248:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1249:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57      bertrand 1250:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1       bertrand 1251:     ;;
                   1252: 
                   1253:   esac
                   1254: done
                   1255: 
                   1256: if test -n "$ac_prev"; then
                   1257:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1258:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1259: fi
                   1260: 
                   1261: if test -n "$ac_unrecognized_opts"; then
                   1262:   case $enable_option_checking in
                   1263:     no) ;;
1.36      bertrand 1264:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1265:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1266:   esac
1.1       bertrand 1267: fi
                   1268: 
1.15      bertrand 1269: # Check all directory arguments for consistency.
1.1       bertrand 1270: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1271:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1272:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1273:        libdir localedir mandir
                   1274: do
                   1275:   eval ac_val=\$$ac_var
1.15      bertrand 1276:   # Remove trailing slashes.
                   1277:   case $ac_val in
                   1278:     */ )
                   1279:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1280:       eval $ac_var=\$ac_val;;
                   1281:   esac
                   1282:   # Be sure to have absolute directory names.
1.1       bertrand 1283:   case $ac_val in
                   1284:     [\\/$]* | ?:[\\/]* )  continue;;
                   1285:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1286:   esac
1.36      bertrand 1287:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1288: done
                   1289: 
                   1290: # There might be people who depend on the old broken behavior: `$host'
                   1291: # used to hold the argument of --host etc.
                   1292: # FIXME: To remove some day.
                   1293: build=$build_alias
                   1294: host=$host_alias
                   1295: target=$target_alias
                   1296: 
                   1297: # FIXME: To remove some day.
                   1298: if test "x$host_alias" != x; then
                   1299:   if test "x$build_alias" = x; then
                   1300:     cross_compiling=maybe
1.36      bertrand 1301:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1302:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1303:   elif test "x$build_alias" != "x$host_alias"; then
                   1304:     cross_compiling=yes
                   1305:   fi
                   1306: fi
                   1307: 
                   1308: ac_tool_prefix=
                   1309: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1310: 
                   1311: test "$silent" = yes && exec 6>/dev/null
                   1312: 
                   1313: 
                   1314: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1315: ac_ls_di=`ls -di .` &&
                   1316: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1317:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1318: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1319:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1320: 
                   1321: 
                   1322: # Find the source files, if location was not specified.
                   1323: if test -z "$srcdir"; then
                   1324:   ac_srcdir_defaulted=yes
                   1325:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1326:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1327: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1328:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1329:     X"$as_myself" : 'X\(//\)$' \| \
                   1330:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1331: $as_echo X"$as_myself" |
1.1       bertrand 1332:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1333:        s//\1/
                   1334:        q
                   1335:      }
                   1336:      /^X\(\/\/\)[^/].*/{
                   1337:        s//\1/
                   1338:        q
                   1339:      }
                   1340:      /^X\(\/\/\)$/{
                   1341:        s//\1/
                   1342:        q
                   1343:      }
                   1344:      /^X\(\/\).*/{
                   1345:        s//\1/
                   1346:        q
                   1347:      }
                   1348:      s/.*/./; q'`
                   1349:   srcdir=$ac_confdir
                   1350:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1351:     srcdir=..
                   1352:   fi
                   1353: else
                   1354:   ac_srcdir_defaulted=no
                   1355: fi
                   1356: if test ! -r "$srcdir/$ac_unique_file"; then
                   1357:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1358:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1359: fi
                   1360: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1361: ac_abs_confdir=`(
1.36      bertrand 1362:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1363:    pwd)`
                   1364: # When building in place, set srcdir=.
                   1365: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1366:   srcdir=.
                   1367: fi
                   1368: # Remove unnecessary trailing slashes from srcdir.
                   1369: # Double slashes in file names in object file debugging info
                   1370: # mess up M-x gdb in Emacs.
                   1371: case $srcdir in
                   1372: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1373: esac
                   1374: for ac_var in $ac_precious_vars; do
                   1375:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1376:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1377:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1378:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1379: done
                   1380: 
                   1381: #
                   1382: # Report the --help message.
                   1383: #
                   1384: if test "$ac_init_help" = "long"; then
                   1385:   # Omit some internal or obsolete options to make the list less imposing.
                   1386:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1387:   cat <<_ACEOF
1.86      bertrand 1388: \`configure' configures rpl 4.1.4 to adapt to many kinds of systems.
1.1       bertrand 1389: 
                   1390: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1391: 
                   1392: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1393: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1394: 
                   1395: Defaults for the options are specified in brackets.
                   1396: 
                   1397: Configuration:
                   1398:   -h, --help              display this help and exit
                   1399:       --help=short        display options specific to this package
                   1400:       --help=recursive    display the short help of all the included packages
                   1401:   -V, --version           display version information and exit
1.36      bertrand 1402:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1403:       --cache-file=FILE   cache test results in FILE [disabled]
                   1404:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1405:   -n, --no-create         do not create output files
                   1406:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1407: 
                   1408: Installation directories:
                   1409:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1410:                           [$ac_default_prefix]
1.1       bertrand 1411:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1412:                           [PREFIX]
1.1       bertrand 1413: 
                   1414: By default, \`make install' will install all the files in
                   1415: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1416: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1417: for instance \`--prefix=\$HOME'.
                   1418: 
                   1419: For better control, use the options below.
                   1420: 
                   1421: Fine tuning of the installation directories:
1.15      bertrand 1422:   --bindir=DIR            user executables [EPREFIX/bin]
                   1423:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1424:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1425:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1426:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1427:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1428:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1429:   --includedir=DIR        C header files [PREFIX/include]
                   1430:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1431:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1432:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1433:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1434:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1435:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1436:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1437:   --htmldir=DIR           html documentation [DOCDIR]
                   1438:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1439:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1440:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1441: _ACEOF
                   1442: 
                   1443:   cat <<\_ACEOF
                   1444: 
                   1445: Program names:
                   1446:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1447:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1448:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1449: 
                   1450: X features:
                   1451:   --x-includes=DIR    X include files are in DIR
                   1452:   --x-libraries=DIR   X library files are in DIR
                   1453: 
                   1454: System types:
                   1455:   --build=BUILD     configure for building on BUILD [guessed]
                   1456:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1457:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1458: _ACEOF
                   1459: fi
                   1460: 
                   1461: if test -n "$ac_init_help"; then
                   1462:   case $ac_init_help in
1.86      bertrand 1463:      short | recursive ) echo "Configuration of rpl 4.1.4:";;
1.1       bertrand 1464:    esac
                   1465:   cat <<\_ACEOF
                   1466: 
                   1467: Optional Features:
1.15      bertrand 1468:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1469:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1470:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1471:   --disable-dependency-tracking  speeds up one-time build
                   1472:   --enable-dependency-tracking   do not reject slow dependency extractors
1.88      bertrand 1473:   --enable-rplcas         compile rplcas (default=no)
1.89      bertrand 1474:   --enable-shared-memory  enable shared memory [default=yes]
1.1       bertrand 1475:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.81      bertrand 1476:   --enable-sysv-ipcs      use SystemV IPC functions [default=guessed]
1.30      bertrand 1477:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1478:   --enable-final-encoding force final encoding [default=guessed]
                   1479:   --enable-tex            provide the TeX support [default=guessed]
                   1480:   --enable-vim            provide the vim support [default=guessed]
                   1481:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1482:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1483:   --enable-motif          provide the Motif support [default=guessed]
                   1484:   --enable-experimental   enable experimental code [default=no]
                   1485:   --enable-debug          enable debug code [default=no]
                   1486:   --enable-profile        enable profile code [default=no]
                   1487:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1488: 
                   1489: Optional Packages:
                   1490:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1491:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1492:   --with-x                use the X Window System
1.64      bertrand 1493:   --with-32bits-abi       force 32bits ABI (multilib)
1.67      bertrand 1494:   --with-64bits-abi       force 64bits ABI (multilib)
1.88      bertrand 1495:   --with-rpltools         specify rpltools path used for cross compilation
1.1       bertrand 1496:   --with-mysql=PATH         specify directory for installed mysql
                   1497:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1498:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1499:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1500: 
                   1501: Some influential environment variables:
                   1502:   CC          C compiler command
                   1503:   CFLAGS      C compiler flags
                   1504:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1505:               nonstandard directory <lib dir>
                   1506:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1507:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1508:               you have headers in a nonstandard directory <include dir>
                   1509:   CXX         C++ compiler command
                   1510:   CXXFLAGS    C++ compiler flags
                   1511:   F77         Fortran 77 compiler command
                   1512:   FFLAGS      Fortran 77 compiler flags
                   1513:   FC          Fortran compiler command
                   1514:   FCFLAGS     Fortran compiler flags
                   1515:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1516:   CPP         C preprocessor
                   1517: 
                   1518: Use these variables to override the choices made by `configure' or to help
                   1519: it to find libraries and programs with nonstandard names/locations.
                   1520: 
1.15      bertrand 1521: Report bugs to the package provider.
1.1       bertrand 1522: _ACEOF
                   1523: ac_status=$?
                   1524: fi
                   1525: 
                   1526: if test "$ac_init_help" = "recursive"; then
                   1527:   # If there are subdirs, report their specific --help.
                   1528:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1529:     test -d "$ac_dir" ||
                   1530:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1531:       continue
1.1       bertrand 1532:     ac_builddir=.
                   1533: 
                   1534: case "$ac_dir" in
                   1535: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1536: *)
1.15      bertrand 1537:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1538:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1539:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1540:   case $ac_top_builddir_sub in
                   1541:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1542:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1543:   esac ;;
                   1544: esac
                   1545: ac_abs_top_builddir=$ac_pwd
                   1546: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1547: # for backward compatibility:
                   1548: ac_top_builddir=$ac_top_build_prefix
                   1549: 
                   1550: case $srcdir in
                   1551:   .)  # We are building in place.
                   1552:     ac_srcdir=.
                   1553:     ac_top_srcdir=$ac_top_builddir_sub
                   1554:     ac_abs_top_srcdir=$ac_pwd ;;
                   1555:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1556:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1557:     ac_top_srcdir=$srcdir
                   1558:     ac_abs_top_srcdir=$srcdir ;;
                   1559:   *) # Relative name.
                   1560:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1561:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1562:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1563: esac
                   1564: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1565: 
                   1566:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1567:     # Check for guested configure.
                   1568:     if test -f "$ac_srcdir/configure.gnu"; then
                   1569:       echo &&
                   1570:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1571:     elif test -f "$ac_srcdir/configure"; then
                   1572:       echo &&
                   1573:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1574:     else
1.15      bertrand 1575:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1576:     fi || ac_status=$?
                   1577:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1578:   done
                   1579: fi
                   1580: 
                   1581: test -n "$ac_init_help" && exit $ac_status
                   1582: if $ac_init_version; then
                   1583:   cat <<\_ACEOF
1.86      bertrand 1584: rpl configure 4.1.4
1.57      bertrand 1585: generated by GNU Autoconf 2.68
1.1       bertrand 1586: 
1.36      bertrand 1587: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1588: This configure script is free software; the Free Software Foundation
                   1589: gives unlimited permission to copy, distribute and modify it.
                   1590: _ACEOF
                   1591:   exit
                   1592: fi
                   1593: 
1.15      bertrand 1594: ## ------------------------ ##
                   1595: ## Autoconf initialization. ##
                   1596: ## ------------------------ ##
                   1597: 
                   1598: # ac_fn_c_try_compile LINENO
                   1599: # --------------------------
                   1600: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1601: ac_fn_c_try_compile ()
                   1602: {
                   1603:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1604:   rm -f conftest.$ac_objext
                   1605:   if { { ac_try="$ac_compile"
                   1606: case "(($ac_try" in
                   1607:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1608:   *) ac_try_echo=$ac_try;;
                   1609: esac
                   1610: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1611: $as_echo "$ac_try_echo"; } >&5
                   1612:   (eval "$ac_compile") 2>conftest.err
                   1613:   ac_status=$?
                   1614:   if test -s conftest.err; then
                   1615:     grep -v '^ *+' conftest.err >conftest.er1
                   1616:     cat conftest.er1 >&5
                   1617:     mv -f conftest.er1 conftest.err
                   1618:   fi
                   1619:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1620:   test $ac_status = 0; } && {
                   1621:     test -z "$ac_c_werror_flag" ||
                   1622:     test ! -s conftest.err
                   1623:        } && test -s conftest.$ac_objext; then :
                   1624:   ac_retval=0
                   1625: else
                   1626:   $as_echo "$as_me: failed program was:" >&5
                   1627: sed 's/^/| /' conftest.$ac_ext >&5
                   1628: 
                   1629:    ac_retval=1
                   1630: fi
1.57      bertrand 1631:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1632:   as_fn_set_status $ac_retval
1.1       bertrand 1633: 
1.15      bertrand 1634: } # ac_fn_c_try_compile
1.1       bertrand 1635: 
1.15      bertrand 1636: # ac_fn_cxx_try_compile LINENO
                   1637: # ----------------------------
                   1638: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1639: ac_fn_cxx_try_compile ()
1.1       bertrand 1640: {
1.15      bertrand 1641:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1642:   rm -f conftest.$ac_objext
                   1643:   if { { ac_try="$ac_compile"
                   1644: case "(($ac_try" in
                   1645:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1646:   *) ac_try_echo=$ac_try;;
                   1647: esac
                   1648: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1649: $as_echo "$ac_try_echo"; } >&5
                   1650:   (eval "$ac_compile") 2>conftest.err
                   1651:   ac_status=$?
                   1652:   if test -s conftest.err; then
                   1653:     grep -v '^ *+' conftest.err >conftest.er1
                   1654:     cat conftest.er1 >&5
                   1655:     mv -f conftest.er1 conftest.err
                   1656:   fi
                   1657:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1658:   test $ac_status = 0; } && {
                   1659:     test -z "$ac_cxx_werror_flag" ||
                   1660:     test ! -s conftest.err
                   1661:        } && test -s conftest.$ac_objext; then :
                   1662:   ac_retval=0
                   1663: else
                   1664:   $as_echo "$as_me: failed program was:" >&5
                   1665: sed 's/^/| /' conftest.$ac_ext >&5
                   1666: 
                   1667:    ac_retval=1
                   1668: fi
1.57      bertrand 1669:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1670:   as_fn_set_status $ac_retval
1.1       bertrand 1671: 
1.15      bertrand 1672: } # ac_fn_cxx_try_compile
1.1       bertrand 1673: 
1.15      bertrand 1674: # ac_fn_f77_try_compile LINENO
                   1675: # ----------------------------
                   1676: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1677: ac_fn_f77_try_compile ()
                   1678: {
                   1679:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1680:   rm -f conftest.$ac_objext
                   1681:   if { { ac_try="$ac_compile"
                   1682: case "(($ac_try" in
                   1683:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1684:   *) ac_try_echo=$ac_try;;
                   1685: esac
                   1686: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1687: $as_echo "$ac_try_echo"; } >&5
                   1688:   (eval "$ac_compile") 2>conftest.err
                   1689:   ac_status=$?
                   1690:   if test -s conftest.err; then
                   1691:     grep -v '^ *+' conftest.err >conftest.er1
                   1692:     cat conftest.er1 >&5
                   1693:     mv -f conftest.er1 conftest.err
                   1694:   fi
                   1695:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1696:   test $ac_status = 0; } && {
                   1697:     test -z "$ac_f77_werror_flag" ||
                   1698:     test ! -s conftest.err
                   1699:        } && test -s conftest.$ac_objext; then :
                   1700:   ac_retval=0
                   1701: else
                   1702:   $as_echo "$as_me: failed program was:" >&5
                   1703: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1704: 
1.15      bertrand 1705:    ac_retval=1
                   1706: fi
1.57      bertrand 1707:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1708:   as_fn_set_status $ac_retval
1.1       bertrand 1709: 
1.15      bertrand 1710: } # ac_fn_f77_try_compile
1.1       bertrand 1711: 
1.15      bertrand 1712: # ac_fn_fc_try_compile LINENO
                   1713: # ---------------------------
                   1714: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1715: ac_fn_fc_try_compile ()
                   1716: {
                   1717:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1718:   rm -f conftest.$ac_objext
                   1719:   if { { ac_try="$ac_compile"
                   1720: case "(($ac_try" in
                   1721:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1722:   *) ac_try_echo=$ac_try;;
                   1723: esac
                   1724: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1725: $as_echo "$ac_try_echo"; } >&5
                   1726:   (eval "$ac_compile") 2>conftest.err
                   1727:   ac_status=$?
                   1728:   if test -s conftest.err; then
                   1729:     grep -v '^ *+' conftest.err >conftest.er1
                   1730:     cat conftest.er1 >&5
                   1731:     mv -f conftest.er1 conftest.err
                   1732:   fi
                   1733:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1734:   test $ac_status = 0; } && {
                   1735:     test -z "$ac_fc_werror_flag" ||
                   1736:     test ! -s conftest.err
                   1737:        } && test -s conftest.$ac_objext; then :
                   1738:   ac_retval=0
                   1739: else
                   1740:   $as_echo "$as_me: failed program was:" >&5
                   1741: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1742: 
1.15      bertrand 1743:    ac_retval=1
                   1744: fi
1.57      bertrand 1745:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1746:   as_fn_set_status $ac_retval
1.1       bertrand 1747: 
1.15      bertrand 1748: } # ac_fn_fc_try_compile
1.1       bertrand 1749: 
1.15      bertrand 1750: # ac_fn_c_try_cpp LINENO
                   1751: # ----------------------
                   1752: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1753: ac_fn_c_try_cpp ()
                   1754: {
                   1755:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1756:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1757: case "(($ac_try" in
                   1758:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1759:   *) ac_try_echo=$ac_try;;
                   1760: esac
                   1761: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1762: $as_echo "$ac_try_echo"; } >&5
                   1763:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1764:   ac_status=$?
                   1765:   if test -s conftest.err; then
                   1766:     grep -v '^ *+' conftest.err >conftest.er1
                   1767:     cat conftest.er1 >&5
                   1768:     mv -f conftest.er1 conftest.err
                   1769:   fi
                   1770:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1771:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1772:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1773:     test ! -s conftest.err
                   1774:        }; then :
                   1775:   ac_retval=0
                   1776: else
                   1777:   $as_echo "$as_me: failed program was:" >&5
                   1778: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1779: 
1.15      bertrand 1780:     ac_retval=1
                   1781: fi
1.57      bertrand 1782:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1783:   as_fn_set_status $ac_retval
1.1       bertrand 1784: 
1.15      bertrand 1785: } # ac_fn_c_try_cpp
1.1       bertrand 1786: 
1.15      bertrand 1787: # ac_fn_c_try_link LINENO
                   1788: # -----------------------
                   1789: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1790: ac_fn_c_try_link ()
                   1791: {
                   1792:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1793:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1794:   if { { ac_try="$ac_link"
                   1795: case "(($ac_try" in
                   1796:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1797:   *) ac_try_echo=$ac_try;;
                   1798: esac
                   1799: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1800: $as_echo "$ac_try_echo"; } >&5
                   1801:   (eval "$ac_link") 2>conftest.err
                   1802:   ac_status=$?
                   1803:   if test -s conftest.err; then
                   1804:     grep -v '^ *+' conftest.err >conftest.er1
                   1805:     cat conftest.er1 >&5
                   1806:     mv -f conftest.er1 conftest.err
                   1807:   fi
                   1808:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1809:   test $ac_status = 0; } && {
                   1810:     test -z "$ac_c_werror_flag" ||
                   1811:     test ! -s conftest.err
                   1812:        } && test -s conftest$ac_exeext && {
                   1813:     test "$cross_compiling" = yes ||
                   1814:     $as_test_x conftest$ac_exeext
                   1815:        }; then :
                   1816:   ac_retval=0
                   1817: else
                   1818:   $as_echo "$as_me: failed program was:" >&5
                   1819: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1820: 
1.15      bertrand 1821:    ac_retval=1
                   1822: fi
                   1823:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1824:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1825:   # interfere with the next link command; also delete a directory that is
                   1826:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1827:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57      bertrand 1828:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 1829:   as_fn_set_status $ac_retval
1.1       bertrand 1830: 
1.15      bertrand 1831: } # ac_fn_c_try_link
1.1       bertrand 1832: 
1.15      bertrand 1833: # ac_fn_c_check_func LINENO FUNC VAR
                   1834: # ----------------------------------
                   1835: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1836: ac_fn_c_check_func ()
                   1837: {
                   1838:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1839:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1840: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1841: if eval \${$3+:} false; then :
1.15      bertrand 1842:   $as_echo_n "(cached) " >&6
                   1843: else
                   1844:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1845: /* end confdefs.h.  */
                   1846: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1847:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1848: #define $2 innocuous_$2
1.1       bertrand 1849: 
1.15      bertrand 1850: /* System header to define __stub macros and hopefully few prototypes,
                   1851:     which can conflict with char $2 (); below.
                   1852:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1853:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1854: 
1.15      bertrand 1855: #ifdef __STDC__
                   1856: # include <limits.h>
                   1857: #else
                   1858: # include <assert.h>
                   1859: #endif
1.1       bertrand 1860: 
1.15      bertrand 1861: #undef $2
1.1       bertrand 1862: 
1.15      bertrand 1863: /* Override any GCC internal prototype to avoid an error.
                   1864:    Use char because int might match the return type of a GCC
                   1865:    builtin and then its argument prototype would still apply.  */
                   1866: #ifdef __cplusplus
                   1867: extern "C"
                   1868: #endif
                   1869: char $2 ();
                   1870: /* The GNU C library defines this for functions which it implements
                   1871:     to always fail with ENOSYS.  Some functions are actually named
                   1872:     something starting with __ and the normal name is an alias.  */
                   1873: #if defined __stub_$2 || defined __stub___$2
                   1874: choke me
                   1875: #endif
1.1       bertrand 1876: 
1.15      bertrand 1877: int
                   1878: main ()
                   1879: {
                   1880: return $2 ();
                   1881:   ;
                   1882:   return 0;
                   1883: }
1.1       bertrand 1884: _ACEOF
1.15      bertrand 1885: if ac_fn_c_try_link "$LINENO"; then :
                   1886:   eval "$3=yes"
                   1887: else
                   1888:   eval "$3=no"
                   1889: fi
                   1890: rm -f core conftest.err conftest.$ac_objext \
                   1891:     conftest$ac_exeext conftest.$ac_ext
                   1892: fi
                   1893: eval ac_res=\$$3
                   1894:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1895: $as_echo "$ac_res" >&6; }
1.57      bertrand 1896:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 1897: 
1.15      bertrand 1898: } # ac_fn_c_check_func
1.1       bertrand 1899: 
1.83      bertrand 1900: # ac_fn_c_try_run LINENO
                   1901: # ----------------------
                   1902: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1903: # that executables *can* be run.
                   1904: ac_fn_c_try_run ()
                   1905: {
                   1906:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1907:   if { { ac_try="$ac_link"
                   1908: case "(($ac_try" in
                   1909:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1910:   *) ac_try_echo=$ac_try;;
                   1911: esac
                   1912: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1913: $as_echo "$ac_try_echo"; } >&5
                   1914:   (eval "$ac_link") 2>&5
                   1915:   ac_status=$?
                   1916:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1917:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1918:   { { case "(($ac_try" in
                   1919:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1920:   *) ac_try_echo=$ac_try;;
                   1921: esac
                   1922: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1923: $as_echo "$ac_try_echo"; } >&5
                   1924:   (eval "$ac_try") 2>&5
                   1925:   ac_status=$?
                   1926:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1927:   test $ac_status = 0; }; }; then :
                   1928:   ac_retval=0
                   1929: else
                   1930:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1931:        $as_echo "$as_me: failed program was:" >&5
                   1932: sed 's/^/| /' conftest.$ac_ext >&5
                   1933: 
                   1934:        ac_retval=$ac_status
                   1935: fi
                   1936:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1937:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1938:   as_fn_set_status $ac_retval
                   1939: 
                   1940: } # ac_fn_c_try_run
                   1941: 
1.33      bertrand 1942: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1943: # -------------------------------------------
                   1944: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1945: # variable VAR accordingly.
                   1946: ac_fn_c_check_type ()
                   1947: {
                   1948:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1949:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1950: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 1951: if eval \${$3+:} false; then :
1.33      bertrand 1952:   $as_echo_n "(cached) " >&6
                   1953: else
                   1954:   eval "$3=no"
                   1955:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1956: /* end confdefs.h.  */
                   1957: $4
                   1958: int
                   1959: main ()
                   1960: {
                   1961: if (sizeof ($2))
                   1962:     return 0;
                   1963:   ;
                   1964:   return 0;
                   1965: }
                   1966: _ACEOF
                   1967: if ac_fn_c_try_compile "$LINENO"; then :
                   1968:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1969: /* end confdefs.h.  */
                   1970: $4
                   1971: int
                   1972: main ()
                   1973: {
                   1974: if (sizeof (($2)))
                   1975:        return 0;
                   1976:   ;
                   1977:   return 0;
                   1978: }
                   1979: _ACEOF
                   1980: if ac_fn_c_try_compile "$LINENO"; then :
                   1981: 
                   1982: else
                   1983:   eval "$3=yes"
                   1984: fi
                   1985: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1986: fi
                   1987: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1988: fi
                   1989: eval ac_res=\$$3
                   1990:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1991: $as_echo "$ac_res" >&6; }
1.57      bertrand 1992:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33      bertrand 1993: 
                   1994: } # ac_fn_c_check_type
                   1995: 
1.15      bertrand 1996: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1997: # --------------------------------------------
                   1998: # Tries to find the compile-time value of EXPR in a program that includes
                   1999: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   2000: # computed
                   2001: ac_fn_c_compute_int ()
                   2002: {
                   2003:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2004:   if test "$cross_compiling" = yes; then
                   2005:     # Depending upon the size, compute the lo and hi bounds.
                   2006: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2007: /* end confdefs.h.  */
                   2008: $4
                   2009: int
                   2010: main ()
                   2011: {
                   2012: static int test_array [1 - 2 * !(($2) >= 0)];
                   2013: test_array [0] = 0
1.1       bertrand 2014: 
1.15      bertrand 2015:   ;
                   2016:   return 0;
                   2017: }
1.1       bertrand 2018: _ACEOF
1.15      bertrand 2019: if ac_fn_c_try_compile "$LINENO"; then :
                   2020:   ac_lo=0 ac_mid=0
                   2021:   while :; do
                   2022:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2023: /* end confdefs.h.  */
                   2024: $4
                   2025: int
                   2026: main ()
                   2027: {
                   2028: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2029: test_array [0] = 0
1.1       bertrand 2030: 
1.15      bertrand 2031:   ;
                   2032:   return 0;
                   2033: }
                   2034: _ACEOF
                   2035: if ac_fn_c_try_compile "$LINENO"; then :
                   2036:   ac_hi=$ac_mid; break
                   2037: else
                   2038:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2039:            if test $ac_lo -le $ac_mid; then
                   2040:              ac_lo= ac_hi=
                   2041:              break
                   2042:            fi
                   2043:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2044: fi
                   2045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2046:   done
                   2047: else
                   2048:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2049: /* end confdefs.h.  */
                   2050: $4
                   2051: int
                   2052: main ()
                   2053: {
                   2054: static int test_array [1 - 2 * !(($2) < 0)];
                   2055: test_array [0] = 0
1.1       bertrand 2056: 
1.15      bertrand 2057:   ;
                   2058:   return 0;
                   2059: }
1.1       bertrand 2060: _ACEOF
1.15      bertrand 2061: if ac_fn_c_try_compile "$LINENO"; then :
                   2062:   ac_hi=-1 ac_mid=-1
                   2063:   while :; do
                   2064:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2065: /* end confdefs.h.  */
                   2066: $4
                   2067: int
                   2068: main ()
                   2069: {
                   2070: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2071: test_array [0] = 0
1.1       bertrand 2072: 
1.15      bertrand 2073:   ;
                   2074:   return 0;
                   2075: }
                   2076: _ACEOF
                   2077: if ac_fn_c_try_compile "$LINENO"; then :
                   2078:   ac_lo=$ac_mid; break
                   2079: else
                   2080:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2081:            if test $ac_mid -le $ac_hi; then
                   2082:              ac_lo= ac_hi=
                   2083:              break
                   2084:            fi
                   2085:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2086: fi
                   2087: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2088:   done
1.1       bertrand 2089: else
1.15      bertrand 2090:   ac_lo= ac_hi=
                   2091: fi
                   2092: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2093: fi
1.15      bertrand 2094: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2095: # Binary search between lo and hi bounds.
                   2096: while test "x$ac_lo" != "x$ac_hi"; do
                   2097:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2098:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2099: /* end confdefs.h.  */
                   2100: $4
                   2101: int
                   2102: main ()
                   2103: {
                   2104: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2105: test_array [0] = 0
1.1       bertrand 2106: 
1.15      bertrand 2107:   ;
                   2108:   return 0;
                   2109: }
                   2110: _ACEOF
                   2111: if ac_fn_c_try_compile "$LINENO"; then :
                   2112:   ac_hi=$ac_mid
1.1       bertrand 2113: else
1.15      bertrand 2114:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2115: fi
1.15      bertrand 2116: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2117: done
                   2118: case $ac_lo in #((
                   2119: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2120: '') ac_retval=1 ;;
                   2121: esac
                   2122:   else
                   2123:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2124: /* end confdefs.h.  */
                   2125: $4
                   2126: static long int longval () { return $2; }
                   2127: static unsigned long int ulongval () { return $2; }
                   2128: #include <stdio.h>
                   2129: #include <stdlib.h>
                   2130: int
                   2131: main ()
                   2132: {
1.1       bertrand 2133: 
1.15      bertrand 2134:   FILE *f = fopen ("conftest.val", "w");
                   2135:   if (! f)
                   2136:     return 1;
                   2137:   if (($2) < 0)
                   2138:     {
                   2139:       long int i = longval ();
                   2140:       if (i != ($2))
                   2141:    return 1;
                   2142:       fprintf (f, "%ld", i);
                   2143:     }
                   2144:   else
                   2145:     {
                   2146:       unsigned long int i = ulongval ();
                   2147:       if (i != ($2))
                   2148:    return 1;
                   2149:       fprintf (f, "%lu", i);
                   2150:     }
                   2151:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2152:      on some platforms.  */
                   2153:   return ferror (f) || fclose (f) != 0;
                   2154: 
                   2155:   ;
                   2156:   return 0;
                   2157: }
                   2158: _ACEOF
                   2159: if ac_fn_c_try_run "$LINENO"; then :
                   2160:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2161: else
                   2162:   ac_retval=1
1.14      bertrand 2163: fi
1.15      bertrand 2164: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2165:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2166: rm -f conftest.val
1.14      bertrand 2167: 
1.15      bertrand 2168:   fi
1.57      bertrand 2169:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15      bertrand 2170:   as_fn_set_status $ac_retval
1.14      bertrand 2171: 
1.15      bertrand 2172: } # ac_fn_c_compute_int
1.1       bertrand 2173: 
1.15      bertrand 2174: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2175: # -------------------------------------------------------
                   2176: # Tests whether HEADER exists and can be compiled using the include files in
                   2177: # INCLUDES, setting the cache variable VAR accordingly.
                   2178: ac_fn_c_check_header_compile ()
                   2179: {
                   2180:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2181:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2182: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2183: if eval \${$3+:} false; then :
1.15      bertrand 2184:   $as_echo_n "(cached) " >&6
                   2185: else
                   2186:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2187: /* end confdefs.h.  */
                   2188: $4
                   2189: #include <$2>
                   2190: _ACEOF
                   2191: if ac_fn_c_try_compile "$LINENO"; then :
                   2192:   eval "$3=yes"
                   2193: else
                   2194:   eval "$3=no"
                   2195: fi
                   2196: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2197: fi
                   2198: eval ac_res=\$$3
                   2199:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2200: $as_echo "$ac_res" >&6; }
1.57      bertrand 2201:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2202: 
1.15      bertrand 2203: } # ac_fn_c_check_header_compile
1.1       bertrand 2204: 
1.15      bertrand 2205: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2206: # -------------------------------------------------------
                   2207: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2208: # the include files in INCLUDES and setting the cache variable VAR
                   2209: # accordingly.
                   2210: ac_fn_c_check_header_mongrel ()
                   2211: {
                   2212:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57      bertrand 2213:   if eval \${$3+:} false; then :
1.15      bertrand 2214:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2215: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2216: if eval \${$3+:} false; then :
1.15      bertrand 2217:   $as_echo_n "(cached) " >&6
                   2218: fi
                   2219: eval ac_res=\$$3
                   2220:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2221: $as_echo "$ac_res" >&6; }
                   2222: else
                   2223:   # Is the header compilable?
                   2224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2225: $as_echo_n "checking $2 usability... " >&6; }
                   2226: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2227: /* end confdefs.h.  */
                   2228: $4
                   2229: #include <$2>
                   2230: _ACEOF
                   2231: if ac_fn_c_try_compile "$LINENO"; then :
                   2232:   ac_header_compiler=yes
                   2233: else
                   2234:   ac_header_compiler=no
                   2235: fi
                   2236: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2238: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2239: 
1.15      bertrand 2240: # Is the header present?
                   2241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2242: $as_echo_n "checking $2 presence... " >&6; }
                   2243: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2244: /* end confdefs.h.  */
                   2245: #include <$2>
                   2246: _ACEOF
                   2247: if ac_fn_c_try_cpp "$LINENO"; then :
                   2248:   ac_header_preproc=yes
                   2249: else
                   2250:   ac_header_preproc=no
                   2251: fi
1.36      bertrand 2252: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2254: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2255: 
1.15      bertrand 2256: # So?  What about this header?
                   2257: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2258:   yes:no: )
                   2259:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2260: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2261:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2262: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2263:     ;;
                   2264:   no:yes:* )
                   2265:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2266: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2267:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2268: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2269:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2270: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2271:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2272: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2273:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2274: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2275:     ;;
                   2276: esac
                   2277:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2278: $as_echo_n "checking for $2... " >&6; }
1.57      bertrand 2279: if eval \${$3+:} false; then :
1.15      bertrand 2280:   $as_echo_n "(cached) " >&6
                   2281: else
                   2282:   eval "$3=\$ac_header_compiler"
                   2283: fi
                   2284: eval ac_res=\$$3
                   2285:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2286: $as_echo "$ac_res" >&6; }
                   2287: fi
1.57      bertrand 2288:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1       bertrand 2289: 
1.15      bertrand 2290: } # ac_fn_c_check_header_mongrel
                   2291: cat >config.log <<_ACEOF
                   2292: This file contains any messages produced by compilers while
                   2293: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2294: 
1.86      bertrand 2295: It was created by rpl $as_me 4.1.4, which was
1.57      bertrand 2296: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 2297: 
1.15      bertrand 2298:   $ $0 $@
1.1       bertrand 2299: 
1.15      bertrand 2300: _ACEOF
                   2301: exec 5>>config.log
                   2302: {
                   2303: cat <<_ASUNAME
                   2304: ## --------- ##
                   2305: ## Platform. ##
                   2306: ## --------- ##
1.1       bertrand 2307: 
1.15      bertrand 2308: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2309: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2310: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2311: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2312: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2313: 
1.15      bertrand 2314: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2315: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2316: 
1.15      bertrand 2317: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2318: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2319: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2320: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2321: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2322: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2323: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2324: 
1.15      bertrand 2325: _ASUNAME
1.1       bertrand 2326: 
1.15      bertrand 2327: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2328: for as_dir in $PATH
                   2329: do
                   2330:   IFS=$as_save_IFS
                   2331:   test -z "$as_dir" && as_dir=.
                   2332:     $as_echo "PATH: $as_dir"
                   2333:   done
                   2334: IFS=$as_save_IFS
1.1       bertrand 2335: 
1.15      bertrand 2336: } >&5
1.1       bertrand 2337: 
1.15      bertrand 2338: cat >&5 <<_ACEOF
1.1       bertrand 2339: 
                   2340: 
1.15      bertrand 2341: ## ----------- ##
                   2342: ## Core tests. ##
                   2343: ## ----------- ##
1.1       bertrand 2344: 
1.15      bertrand 2345: _ACEOF
1.1       bertrand 2346: 
                   2347: 
1.15      bertrand 2348: # Keep a trace of the command line.
                   2349: # Strip out --no-create and --no-recursion so they do not pile up.
                   2350: # Strip out --silent because we don't want to record it for future runs.
                   2351: # Also quote any args containing shell meta-characters.
                   2352: # Make two passes to allow for proper duplicate-argument suppression.
                   2353: ac_configure_args=
                   2354: ac_configure_args0=
                   2355: ac_configure_args1=
                   2356: ac_must_keep_next=false
                   2357: for ac_pass in 1 2
                   2358: do
                   2359:   for ac_arg
                   2360:   do
                   2361:     case $ac_arg in
                   2362:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2363:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2364:     | -silent | --silent | --silen | --sile | --sil)
                   2365:       continue ;;
                   2366:     *\'*)
                   2367:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2368:     esac
                   2369:     case $ac_pass in
                   2370:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2371:     2)
                   2372:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2373:       if test $ac_must_keep_next = true; then
                   2374:    ac_must_keep_next=false # Got value, back to normal.
                   2375:       else
                   2376:    case $ac_arg in
                   2377:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2378:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2379:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2380:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2381:        case "$ac_configure_args0 " in
                   2382:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2383:        esac
                   2384:        ;;
                   2385:      -* ) ac_must_keep_next=true ;;
                   2386:    esac
                   2387:       fi
                   2388:       as_fn_append ac_configure_args " '$ac_arg'"
                   2389:       ;;
                   2390:     esac
                   2391:   done
                   2392: done
                   2393: { ac_configure_args0=; unset ac_configure_args0;}
                   2394: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2395: 
1.15      bertrand 2396: # When interrupted or exit'd, cleanup temporary files, and complete
                   2397: # config.log.  We remove comments because anyway the quotes in there
                   2398: # would cause problems or look ugly.
                   2399: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2400: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2401: trap 'exit_status=$?
                   2402:   # Save into config.log some information that might help in debugging.
                   2403:   {
                   2404:     echo
1.1       bertrand 2405: 
1.36      bertrand 2406:     $as_echo "## ---------------- ##
1.15      bertrand 2407: ## Cache variables. ##
1.36      bertrand 2408: ## ---------------- ##"
1.15      bertrand 2409:     echo
                   2410:     # The following way of writing the cache mishandles newlines in values,
                   2411: (
                   2412:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2413:     eval ac_val=\$$ac_var
                   2414:     case $ac_val in #(
                   2415:     *${as_nl}*)
                   2416:       case $ac_var in #(
                   2417:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2418: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2419:       esac
                   2420:       case $ac_var in #(
                   2421:       _ | IFS | as_nl) ;; #(
                   2422:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2423:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2424:       esac ;;
                   2425:     esac
                   2426:   done
                   2427:   (set) 2>&1 |
                   2428:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2429:     *${as_nl}ac_space=\ *)
                   2430:       sed -n \
                   2431:    "s/'\''/'\''\\\\'\'''\''/g;
                   2432:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2433:       ;; #(
                   2434:     *)
                   2435:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2436:       ;;
                   2437:     esac |
                   2438:     sort
                   2439: )
                   2440:     echo
1.1       bertrand 2441: 
1.36      bertrand 2442:     $as_echo "## ----------------- ##
1.15      bertrand 2443: ## Output variables. ##
1.36      bertrand 2444: ## ----------------- ##"
1.15      bertrand 2445:     echo
                   2446:     for ac_var in $ac_subst_vars
                   2447:     do
                   2448:       eval ac_val=\$$ac_var
                   2449:       case $ac_val in
                   2450:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2451:       esac
                   2452:       $as_echo "$ac_var='\''$ac_val'\''"
                   2453:     done | sort
                   2454:     echo
1.1       bertrand 2455: 
1.15      bertrand 2456:     if test -n "$ac_subst_files"; then
1.36      bertrand 2457:       $as_echo "## ------------------- ##
1.15      bertrand 2458: ## File substitutions. ##
1.36      bertrand 2459: ## ------------------- ##"
1.15      bertrand 2460:       echo
                   2461:       for ac_var in $ac_subst_files
                   2462:       do
                   2463:    eval ac_val=\$$ac_var
                   2464:    case $ac_val in
                   2465:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2466:    esac
                   2467:    $as_echo "$ac_var='\''$ac_val'\''"
                   2468:       done | sort
                   2469:       echo
1.14      bertrand 2470:     fi
                   2471: 
1.15      bertrand 2472:     if test -s confdefs.h; then
1.36      bertrand 2473:       $as_echo "## ----------- ##
1.15      bertrand 2474: ## confdefs.h. ##
1.36      bertrand 2475: ## ----------- ##"
1.15      bertrand 2476:       echo
                   2477:       cat confdefs.h
                   2478:       echo
                   2479:     fi
                   2480:     test "$ac_signal" != 0 &&
                   2481:       $as_echo "$as_me: caught signal $ac_signal"
                   2482:     $as_echo "$as_me: exit $exit_status"
                   2483:   } >&5
                   2484:   rm -f core *.core core.conftest.* &&
                   2485:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2486:     exit $exit_status
                   2487: ' 0
                   2488: for ac_signal in 1 2 13 15; do
                   2489:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2490: done
                   2491: ac_signal=0
1.14      bertrand 2492: 
1.15      bertrand 2493: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2494: rm -f -r conftest* confdefs.h
1.14      bertrand 2495: 
1.15      bertrand 2496: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2497: 
1.15      bertrand 2498: # Predefined preprocessor variables.
1.14      bertrand 2499: 
1.15      bertrand 2500: cat >>confdefs.h <<_ACEOF
                   2501: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2502: _ACEOF
1.14      bertrand 2503: 
1.15      bertrand 2504: cat >>confdefs.h <<_ACEOF
                   2505: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2506: _ACEOF
                   2507: 
1.15      bertrand 2508: cat >>confdefs.h <<_ACEOF
                   2509: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2510: _ACEOF
1.14      bertrand 2511: 
1.15      bertrand 2512: cat >>confdefs.h <<_ACEOF
                   2513: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2514: _ACEOF
                   2515: 
1.15      bertrand 2516: cat >>confdefs.h <<_ACEOF
                   2517: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2518: _ACEOF
1.14      bertrand 2519: 
1.15      bertrand 2520: cat >>confdefs.h <<_ACEOF
                   2521: #define PACKAGE_URL "$PACKAGE_URL"
                   2522: _ACEOF
1.14      bertrand 2523: 
                   2524: 
1.15      bertrand 2525: # Let the site file select an alternate cache file if it wants to.
                   2526: # Prefer an explicitly selected file to automatically selected ones.
                   2527: ac_site_file1=NONE
                   2528: ac_site_file2=NONE
                   2529: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2530:   # We do not want a PATH search for config.site.
                   2531:   case $CONFIG_SITE in #((
                   2532:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2533:     */*) ac_site_file1=$CONFIG_SITE;;
                   2534:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2535:   esac
1.15      bertrand 2536: elif test "x$prefix" != xNONE; then
                   2537:   ac_site_file1=$prefix/share/config.site
                   2538:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2539: else
1.15      bertrand 2540:   ac_site_file1=$ac_default_prefix/share/config.site
                   2541:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2542: fi
1.15      bertrand 2543: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2544: do
                   2545:   test "x$ac_site_file" = xNONE && continue
                   2546:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2547:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2548: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2549:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2550:     . "$ac_site_file" \
                   2551:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2552: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2553: as_fn_error $? "failed to load site script $ac_site_file
1.57      bertrand 2554: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 2555:   fi
                   2556: done
1.14      bertrand 2557: 
1.15      bertrand 2558: if test -r "$cache_file"; then
                   2559:   # Some versions of bash will fail to source /dev/null (special files
                   2560:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2561:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2562:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2563: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2564:     case $cache_file in
                   2565:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2566:       *)                      . "./$cache_file";;
                   2567:     esac
                   2568:   fi
1.14      bertrand 2569: else
1.15      bertrand 2570:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2571: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2572:   >$cache_file
1.14      bertrand 2573: fi
                   2574: 
1.15      bertrand 2575: # Check that the precious variables saved in the cache have kept the same
                   2576: # value.
                   2577: ac_cache_corrupted=false
                   2578: for ac_var in $ac_precious_vars; do
                   2579:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2580:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2581:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2582:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2583:   case $ac_old_set,$ac_new_set in
                   2584:     set,)
                   2585:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2586: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2587:       ac_cache_corrupted=: ;;
                   2588:     ,set)
                   2589:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2590: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2591:       ac_cache_corrupted=: ;;
                   2592:     ,);;
                   2593:     *)
                   2594:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2595:    # differences in whitespace do not lead to failure.
                   2596:    ac_old_val_w=`echo x $ac_old_val`
                   2597:    ac_new_val_w=`echo x $ac_new_val`
                   2598:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2599:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2600: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2601:      ac_cache_corrupted=:
                   2602:    else
                   2603:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2604: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2605:      eval $ac_var=\$ac_old_val
                   2606:    fi
                   2607:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2608: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2609:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2610: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2611:       fi;;
                   2612:   esac
                   2613:   # Pass precious variables to config.status.
                   2614:   if test "$ac_new_set" = set; then
                   2615:     case $ac_new_val in
                   2616:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2617:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2618:     esac
                   2619:     case " $ac_configure_args " in
                   2620:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2621:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2622:     esac
1.14      bertrand 2623:   fi
                   2624: done
1.15      bertrand 2625: if $ac_cache_corrupted; then
                   2626:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2627: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2628:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2629: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2630:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2631: fi
                   2632: ## -------------------- ##
                   2633: ## Main body of script. ##
                   2634: ## -------------------- ##
1.14      bertrand 2635: 
1.15      bertrand 2636: ac_ext=c
                   2637: ac_cpp='$CPP $CPPFLAGS'
                   2638: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2639: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2640: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2641: 
                   2642: 
1.15      bertrand 2643: ac_aux_dir=
                   2644: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2645:   if test -f "$ac_dir/install-sh"; then
                   2646:     ac_aux_dir=$ac_dir
                   2647:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2648:     break
                   2649:   elif test -f "$ac_dir/install.sh"; then
                   2650:     ac_aux_dir=$ac_dir
                   2651:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2652:     break
                   2653:   elif test -f "$ac_dir/shtool"; then
                   2654:     ac_aux_dir=$ac_dir
                   2655:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2656:     break
                   2657:   fi
1.14      bertrand 2658: done
1.15      bertrand 2659: if test -z "$ac_aux_dir"; then
1.36      bertrand 2660:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2661: fi
1.14      bertrand 2662: 
1.15      bertrand 2663: # These three variables are undocumented and unsupported,
                   2664: # and are intended to be withdrawn in a future Autoconf release.
                   2665: # They can cause serious problems if a builder's source tree is in a directory
                   2666: # whose full name contains unusual characters.
                   2667: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2668: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2669: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2670: 
                   2671: 
1.15      bertrand 2672: # Make sure we can run config.sub.
                   2673: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2674:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2675: 
1.15      bertrand 2676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2677: $as_echo_n "checking build system type... " >&6; }
1.57      bertrand 2678: if ${ac_cv_build+:} false; then :
1.15      bertrand 2679:   $as_echo_n "(cached) " >&6
1.14      bertrand 2680: else
1.15      bertrand 2681:   ac_build_alias=$build_alias
                   2682: test "x$ac_build_alias" = x &&
                   2683:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2684: test "x$ac_build_alias" = x &&
1.36      bertrand 2685:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2686: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2687:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2688: 
                   2689: fi
1.15      bertrand 2690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2691: $as_echo "$ac_cv_build" >&6; }
                   2692: case $ac_cv_build in
                   2693: *-*-*) ;;
1.57      bertrand 2694: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15      bertrand 2695: esac
                   2696: build=$ac_cv_build
                   2697: ac_save_IFS=$IFS; IFS='-'
                   2698: set x $ac_cv_build
                   2699: shift
                   2700: build_cpu=$1
                   2701: build_vendor=$2
                   2702: shift; shift
                   2703: # Remember, the first character of IFS is used to create $*,
                   2704: # except with old shells:
                   2705: build_os=$*
                   2706: IFS=$ac_save_IFS
                   2707: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2708: 
                   2709: 
1.15      bertrand 2710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2711: $as_echo_n "checking host system type... " >&6; }
1.57      bertrand 2712: if ${ac_cv_host+:} false; then :
1.15      bertrand 2713:   $as_echo_n "(cached) " >&6
1.14      bertrand 2714: else
1.15      bertrand 2715:   if test "x$host_alias" = x; then
                   2716:   ac_cv_host=$ac_cv_build
1.14      bertrand 2717: else
1.15      bertrand 2718:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2719:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2720: fi
                   2721: 
                   2722: fi
1.15      bertrand 2723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2724: $as_echo "$ac_cv_host" >&6; }
                   2725: case $ac_cv_host in
                   2726: *-*-*) ;;
1.57      bertrand 2727: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15      bertrand 2728: esac
                   2729: host=$ac_cv_host
                   2730: ac_save_IFS=$IFS; IFS='-'
                   2731: set x $ac_cv_host
                   2732: shift
                   2733: host_cpu=$1
                   2734: host_vendor=$2
                   2735: shift; shift
                   2736: # Remember, the first character of IFS is used to create $*,
                   2737: # except with old shells:
                   2738: host_os=$*
                   2739: IFS=$ac_save_IFS
                   2740: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2741: 
                   2742: 
1.15      bertrand 2743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2744: $as_echo_n "checking target system type... " >&6; }
1.57      bertrand 2745: if ${ac_cv_target+:} false; then :
1.15      bertrand 2746:   $as_echo_n "(cached) " >&6
                   2747: else
                   2748:   if test "x$target_alias" = x; then
                   2749:   ac_cv_target=$ac_cv_host
1.14      bertrand 2750: else
1.15      bertrand 2751:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2752:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2753: fi
1.14      bertrand 2754: 
                   2755: fi
1.15      bertrand 2756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2757: $as_echo "$ac_cv_target" >&6; }
                   2758: case $ac_cv_target in
                   2759: *-*-*) ;;
1.57      bertrand 2760: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15      bertrand 2761: esac
                   2762: target=$ac_cv_target
                   2763: ac_save_IFS=$IFS; IFS='-'
                   2764: set x $ac_cv_target
                   2765: shift
                   2766: target_cpu=$1
                   2767: target_vendor=$2
                   2768: shift; shift
                   2769: # Remember, the first character of IFS is used to create $*,
                   2770: # except with old shells:
                   2771: target_os=$*
                   2772: IFS=$ac_save_IFS
                   2773: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2774: 
1.14      bertrand 2775: 
1.15      bertrand 2776: # The aliases save the names the user supplied, while $host etc.
                   2777: # will get canonicalized.
                   2778: test -n "$target_alias" &&
                   2779:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2780:     NONENONEs,x,x, &&
                   2781:   program_prefix=${target_alias}-
1.1       bertrand 2782: 
1.15      bertrand 2783: am__api_version='1.11'
1.1       bertrand 2784: 
1.14      bertrand 2785: # Find a good install program.  We prefer a C program (faster),
                   2786: # so one script is as good as another.  But avoid the broken or
                   2787: # incompatible versions:
                   2788: # SysV /etc/install, /usr/sbin/install
                   2789: # SunOS /usr/etc/install
                   2790: # IRIX /sbin/install
                   2791: # AIX /bin/install
                   2792: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2793: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2794: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2795: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2796: # OS/2's system install, which has a completely different semantic
                   2797: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2798: # Reject install programs that cannot install multiple files.
                   2799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2800: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2801: if test -z "$INSTALL"; then
1.57      bertrand 2802: if ${ac_cv_path_install+:} false; then :
1.15      bertrand 2803:   $as_echo_n "(cached) " >&6
1.14      bertrand 2804: else
                   2805:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2806: for as_dir in $PATH
                   2807: do
                   2808:   IFS=$as_save_IFS
                   2809:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2810:     # Account for people who put trailing slashes in PATH elements.
                   2811: case $as_dir/ in #((
                   2812:   ./ | .// | /[cC]/* | \
1.14      bertrand 2813:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2814:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2815:   /usr/ucb/* ) ;;
                   2816:   *)
                   2817:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2818:     # Don't use installbsd from OSF since it installs stuff as root
                   2819:     # by default.
                   2820:     for ac_prog in ginstall scoinst install; do
                   2821:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2822:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2823:      if test $ac_prog = install &&
                   2824:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2825:        # AIX install.  It has an incompatible calling convention.
                   2826:        :
                   2827:      elif test $ac_prog = install &&
                   2828:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2829:        # program-specific install script used by HP pwplus--don't use.
                   2830:        :
                   2831:      else
1.15      bertrand 2832:        rm -rf conftest.one conftest.two conftest.dir
                   2833:        echo one > conftest.one
                   2834:        echo two > conftest.two
                   2835:        mkdir conftest.dir
                   2836:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2837:          test -s conftest.one && test -s conftest.two &&
                   2838:          test -s conftest.dir/conftest.one &&
                   2839:          test -s conftest.dir/conftest.two
                   2840:        then
                   2841:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2842:          break 3
                   2843:        fi
1.14      bertrand 2844:      fi
                   2845:    fi
                   2846:       done
                   2847:     done
                   2848:     ;;
                   2849: esac
1.15      bertrand 2850: 
                   2851:   done
1.14      bertrand 2852: IFS=$as_save_IFS
1.1       bertrand 2853: 
1.15      bertrand 2854: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2855: 
1.14      bertrand 2856: fi
                   2857:   if test "${ac_cv_path_install+set}" = set; then
                   2858:     INSTALL=$ac_cv_path_install
                   2859:   else
                   2860:     # As a last resort, use the slow shell script.  Don't cache a
                   2861:     # value for INSTALL within a source directory, because that will
                   2862:     # break other packages using the cache if that directory is
                   2863:     # removed, or if the value is a relative name.
                   2864:     INSTALL=$ac_install_sh
                   2865:   fi
                   2866: fi
1.15      bertrand 2867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2868: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2869: 
1.14      bertrand 2870: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2871: # It thinks the first close brace ends the variable substitution.
                   2872: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2873: 
1.14      bertrand 2874: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2875: 
1.14      bertrand 2876: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2877: 
1.15      bertrand 2878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2879: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2880: # Just in case
                   2881: sleep 1
                   2882: echo timestamp > conftest.file
                   2883: # Reject unsafe characters in $srcdir or the absolute working directory
                   2884: # name.  Accept space and tab only in the latter.
                   2885: am_lf='
                   2886: '
                   2887: case `pwd` in
                   2888:   *[\\\"\#\$\&\'\`$am_lf]*)
1.57      bertrand 2889:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15      bertrand 2890: esac
                   2891: case $srcdir in
                   2892:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.57      bertrand 2893:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15      bertrand 2894: esac
                   2895: 
                   2896: # Do `set' in a subshell so we don't clobber the current shell's
                   2897: # arguments.  Must try -L first in case configure is actually a
                   2898: # symlink; some systems play weird games with the mod time of symlinks
                   2899: # (eg FreeBSD returns the mod time of the symlink's containing
                   2900: # directory).
                   2901: if (
                   2902:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2903:    if test "$*" = "X"; then
                   2904:       # -L didn't work.
                   2905:       set X `ls -t "$srcdir/configure" conftest.file`
                   2906:    fi
                   2907:    rm -f conftest.file
                   2908:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2909:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2910: 
                   2911:       # If neither matched, then we have a broken ls.  This can happen
                   2912:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2913:       # broken ls alias from the environment.  This has actually
                   2914:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2915:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2916: alias in your environment" "$LINENO" 5
                   2917:    fi
                   2918: 
                   2919:    test "$2" = conftest.file
                   2920:    )
                   2921: then
                   2922:    # Ok.
                   2923:    :
1.14      bertrand 2924: else
1.36      bertrand 2925:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2926: Check your system clock" "$LINENO" 5
1.14      bertrand 2927: fi
1.15      bertrand 2928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2929: $as_echo "yes" >&6; }
                   2930: test "$program_prefix" != NONE &&
                   2931:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2932: # Use a double $ so make ignores it.
                   2933: test "$program_suffix" != NONE &&
                   2934:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2935: # Double any \ or $.
                   2936: # By default was `s,x,x', remove it if useless.
                   2937: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2938: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2939: 
                   2940: # expand $ac_aux_dir to an absolute path
                   2941: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2942: 
1.15      bertrand 2943: if test x"${MISSING+set}" != xset; then
                   2944:   case $am_aux_dir in
                   2945:   *\ * | *\    *)
                   2946:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2947:   *)
1.15      bertrand 2948:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2949:   esac
1.14      bertrand 2950: fi
1.15      bertrand 2951: # Use eval to expand $SHELL
                   2952: if eval "$MISSING --run true"; then
                   2953:   am_missing_run="$MISSING --run "
1.14      bertrand 2954: else
1.15      bertrand 2955:   am_missing_run=
                   2956:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2957: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2958: fi
                   2959: 
                   2960: if test x"${install_sh}" != xset; then
                   2961:   case $am_aux_dir in
                   2962:   *\ * | *\    *)
                   2963:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2964:   *)
                   2965:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2966:   esac
1.14      bertrand 2967: fi
1.15      bertrand 2968: 
                   2969: # Installed binaries are usually stripped using `strip' when the user
                   2970: # run `make install-strip'.  However `strip' might not be the right
                   2971: # tool to use in cross-compilation environments, therefore Automake
                   2972: # will honor the `STRIP' environment variable to overrule this program.
                   2973: if test "$cross_compiling" != no; then
                   2974:   if test -n "$ac_tool_prefix"; then
                   2975:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2976: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2978: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 2979: if ${ac_cv_prog_STRIP+:} false; then :
1.15      bertrand 2980:   $as_echo_n "(cached) " >&6
1.14      bertrand 2981: else
1.15      bertrand 2982:   if test -n "$STRIP"; then
                   2983:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2984: else
                   2985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2986: for as_dir in $PATH
                   2987: do
                   2988:   IFS=$as_save_IFS
                   2989:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2990:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2991:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2992:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2993:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2994:     break 2
                   2995:   fi
                   2996: done
1.15      bertrand 2997:   done
1.14      bertrand 2998: IFS=$as_save_IFS
1.1       bertrand 2999: 
1.14      bertrand 3000: fi
                   3001: fi
1.15      bertrand 3002: STRIP=$ac_cv_prog_STRIP
                   3003: if test -n "$STRIP"; then
                   3004:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   3005: $as_echo "$STRIP" >&6; }
1.14      bertrand 3006: else
1.15      bertrand 3007:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3008: $as_echo "no" >&6; }
1.14      bertrand 3009: fi
1.1       bertrand 3010: 
                   3011: 
1.14      bertrand 3012: fi
1.15      bertrand 3013: if test -z "$ac_cv_prog_STRIP"; then
                   3014:   ac_ct_STRIP=$STRIP
                   3015:   # Extract the first word of "strip", so it can be a program name with args.
                   3016: set dummy strip; ac_word=$2
                   3017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3018: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3019: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15      bertrand 3020:   $as_echo_n "(cached) " >&6
1.14      bertrand 3021: else
1.15      bertrand 3022:   if test -n "$ac_ct_STRIP"; then
                   3023:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 3024: else
1.14      bertrand 3025: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3026: for as_dir in $PATH
1.1       bertrand 3027: do
1.14      bertrand 3028:   IFS=$as_save_IFS
                   3029:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3030:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3031:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3032:     ac_cv_prog_ac_ct_STRIP="strip"
                   3033:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3034:     break 2
1.1       bertrand 3035:   fi
                   3036: done
1.15      bertrand 3037:   done
1.14      bertrand 3038: IFS=$as_save_IFS
1.1       bertrand 3039: 
1.14      bertrand 3040: fi
                   3041: fi
1.15      bertrand 3042: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3043: if test -n "$ac_ct_STRIP"; then
                   3044:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3045: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3046: else
1.15      bertrand 3047:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3048: $as_echo "no" >&6; }
1.1       bertrand 3049: fi
                   3050: 
1.15      bertrand 3051:   if test "x$ac_ct_STRIP" = x; then
                   3052:     STRIP=":"
1.14      bertrand 3053:   else
                   3054:     case $cross_compiling:$ac_tool_warned in
                   3055: yes:)
1.15      bertrand 3056: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3057: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3058: ac_tool_warned=yes ;;
                   3059: esac
1.15      bertrand 3060:     STRIP=$ac_ct_STRIP
1.1       bertrand 3061:   fi
1.14      bertrand 3062: else
1.15      bertrand 3063:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3064: fi
                   3065: 
1.15      bertrand 3066: fi
                   3067: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3068: 
1.15      bertrand 3069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3070: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3071: if test -z "$MKDIR_P"; then
1.57      bertrand 3072:   if ${ac_cv_path_mkdir+:} false; then :
1.15      bertrand 3073:   $as_echo_n "(cached) " >&6
1.14      bertrand 3074: else
1.15      bertrand 3075:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3076: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3077: do
                   3078:   IFS=$as_save_IFS
                   3079:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3080:     for ac_prog in mkdir gmkdir; do
                   3081:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3082:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3083:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3084:         'mkdir (GNU coreutils) '* | \
                   3085:         'mkdir (coreutils) '* | \
                   3086:         'mkdir (fileutils) '4.1*)
                   3087:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3088:           break 3;;
                   3089:       esac
                   3090:     done
                   3091:        done
                   3092:   done
1.14      bertrand 3093: IFS=$as_save_IFS
1.1       bertrand 3094: 
                   3095: fi
1.15      bertrand 3096: 
                   3097:   test -d ./--version && rmdir ./--version
                   3098:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3099:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3100:   else
                   3101:     # As a last resort, use the slow shell script.  Don't cache a
                   3102:     # value for MKDIR_P within a source directory, because that will
                   3103:     # break other packages using the cache if that directory is
                   3104:     # removed, or if the value is a relative name.
                   3105:     MKDIR_P="$ac_install_sh -d"
                   3106:   fi
1.14      bertrand 3107: fi
1.15      bertrand 3108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3109: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3110: 
1.15      bertrand 3111: mkdir_p="$MKDIR_P"
                   3112: case $mkdir_p in
                   3113:   [\\/$]* | ?:[\\/]*) ;;
                   3114:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3115: esac
1.1       bertrand 3116: 
1.15      bertrand 3117: for ac_prog in gawk mawk nawk awk
                   3118: do
                   3119:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3120: set dummy $ac_prog; ac_word=$2
                   3121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3122: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3123: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 3124:   $as_echo_n "(cached) " >&6
1.1       bertrand 3125: else
1.15      bertrand 3126:   if test -n "$AWK"; then
                   3127:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3128: else
1.14      bertrand 3129: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3130: for as_dir in $PATH
                   3131: do
                   3132:   IFS=$as_save_IFS
                   3133:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3134:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3135:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3136:     ac_cv_prog_AWK="$ac_prog"
                   3137:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3138:     break 2
                   3139:   fi
                   3140: done
1.15      bertrand 3141:   done
1.14      bertrand 3142: IFS=$as_save_IFS
                   3143: 
                   3144: fi
1.1       bertrand 3145: fi
1.15      bertrand 3146: AWK=$ac_cv_prog_AWK
                   3147: if test -n "$AWK"; then
                   3148:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3149: $as_echo "$AWK" >&6; }
1.14      bertrand 3150: else
1.15      bertrand 3151:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3152: $as_echo "no" >&6; }
1.1       bertrand 3153: fi
                   3154: 
                   3155: 
1.15      bertrand 3156:   test -n "$AWK" && break
                   3157: done
1.1       bertrand 3158: 
1.15      bertrand 3159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3160: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3161: set x ${MAKE-make}
                   3162: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 3163: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 3164:   $as_echo_n "(cached) " >&6
1.14      bertrand 3165: else
1.15      bertrand 3166:   cat >conftest.make <<\_ACEOF
                   3167: SHELL = /bin/sh
                   3168: all:
                   3169:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3170: _ACEOF
1.36      bertrand 3171: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3172: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3173:   *@@@%%%=?*=@@@%%%*)
                   3174:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3175:   *)
                   3176:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3177: esac
                   3178: rm -f conftest.make
                   3179: fi
                   3180: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3181:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3182: $as_echo "yes" >&6; }
                   3183:   SET_MAKE=
1.1       bertrand 3184: else
1.15      bertrand 3185:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3186: $as_echo "no" >&6; }
                   3187:   SET_MAKE="MAKE=${MAKE-make}"
                   3188: fi
1.1       bertrand 3189: 
1.15      bertrand 3190: rm -rf .tst 2>/dev/null
                   3191: mkdir .tst 2>/dev/null
                   3192: if test -d .tst; then
                   3193:   am__leading_dot=.
                   3194: else
                   3195:   am__leading_dot=_
1.14      bertrand 3196: fi
1.15      bertrand 3197: rmdir .tst 2>/dev/null
                   3198: 
                   3199: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3200:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3201:   # is not polluted with repeated "-I."
                   3202:   am__isrc=' -I$(srcdir)'
                   3203:   # test to see if srcdir already configured
                   3204:   if test -f $srcdir/config.status; then
1.36      bertrand 3205:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3206:   fi
1.1       bertrand 3207: fi
1.15      bertrand 3208: 
                   3209: # test whether we have cygpath
                   3210: if test -z "$CYGPATH_W"; then
                   3211:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3212:     CYGPATH_W='cygpath -w'
                   3213:   else
                   3214:     CYGPATH_W=echo
                   3215:   fi
1.1       bertrand 3216: fi
                   3217: 
                   3218: 
1.15      bertrand 3219: # Define the identity of the package.
                   3220:  PACKAGE='rpl'
1.86      bertrand 3221:  VERSION='4.1.4'
1.15      bertrand 3222: 
                   3223: 
                   3224: cat >>confdefs.h <<_ACEOF
                   3225: #define PACKAGE "$PACKAGE"
                   3226: _ACEOF
                   3227: 
                   3228: 
                   3229: cat >>confdefs.h <<_ACEOF
                   3230: #define VERSION "$VERSION"
                   3231: _ACEOF
                   3232: 
                   3233: # Some tools Automake needs.
                   3234: 
                   3235: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3236: 
                   3237: 
                   3238: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3239: 
                   3240: 
                   3241: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3242: 
                   3243: 
                   3244: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3245: 
                   3246: 
                   3247: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3248: 
                   3249: # We need awk for the "check" target.  The system "awk" is bad on
                   3250: # some platforms.
                   3251: # Always define AMTAR for backward compatibility.
                   3252: 
                   3253: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3254: 
                   3255: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3256: 
                   3257: 
                   3258: 
                   3259: 
1.1       bertrand 3260: 
                   3261: 
1.15      bertrand 3262: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3263: 
                   3264: 
1.54      bertrand 3265: NCURSES=ncurses-5.9
1.50      bertrand 3266: READLINE=readline-6.2
1.30      bertrand 3267: UNITS=units-1.88
1.57      bertrand 3268: GSL=gsl-1.15
1.72      bertrand 3269: GPP=gpp-3.0
1.52      bertrand 3270: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3271: FILE=file-5.03
                   3272: ICONV=libiconv-1.13.1
1.87      bertrand 3273: SQLITE=sqlite-3.7.8
1.74      bertrand 3274: OPENSSL=openssl-1.0.0e
1.79      bertrand 3275: OPENMOTIF=openmotif-2.3.3
1.80      bertrand 3276: LIBXPM=libXpm-3.5.9
1.76      bertrand 3277: SIGSEGV=libsigsegv-2.6
1.14      bertrand 3278: 
1.75      bertrand 3279: GMP=gmp-5.0.2
1.55      bertrand 3280: MPFR=mpfr-3.0.1
1.56      bertrand 3281: NTL=ntl-5.5.2
                   3282: COCOA=CoCoALib-0.9943
1.76      bertrand 3283: PARI=pari-2.5.0
1.67      bertrand 3284: GIAC=giac-0.9.3
1.55      bertrand 3285: 
1.15      bertrand 3286: ac_ext=c
                   3287: ac_cpp='$CPP $CPPFLAGS'
                   3288: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3289: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3290: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3291: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3292:   for ac_prog in gcc
1.15      bertrand 3293:   do
                   3294:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3295: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3297: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3298: if ${ac_cv_prog_CC+:} false; then :
1.15      bertrand 3299:   $as_echo_n "(cached) " >&6
1.1       bertrand 3300: else
1.15      bertrand 3301:   if test -n "$CC"; then
                   3302:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3303: else
                   3304: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3305: for as_dir in $PATH
                   3306: do
                   3307:   IFS=$as_save_IFS
                   3308:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3309:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3310:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3311:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3312:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3313:     break 2
                   3314:   fi
                   3315: done
1.15      bertrand 3316:   done
1.1       bertrand 3317: IFS=$as_save_IFS
                   3318: 
                   3319: fi
                   3320: fi
1.15      bertrand 3321: CC=$ac_cv_prog_CC
                   3322: if test -n "$CC"; then
                   3323:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3324: $as_echo "$CC" >&6; }
1.1       bertrand 3325: else
1.15      bertrand 3326:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3327: $as_echo "no" >&6; }
1.1       bertrand 3328: fi
                   3329: 
                   3330: 
1.15      bertrand 3331:     test -n "$CC" && break
                   3332:   done
                   3333: fi
                   3334: if test -z "$CC"; then
                   3335:   ac_ct_CC=$CC
1.23      bertrand 3336:   for ac_prog in gcc
1.15      bertrand 3337: do
                   3338:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3339: set dummy $ac_prog; ac_word=$2
                   3340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3341: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 3342: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15      bertrand 3343:   $as_echo_n "(cached) " >&6
1.1       bertrand 3344: else
1.15      bertrand 3345:   if test -n "$ac_ct_CC"; then
                   3346:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3347: else
                   3348: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3349: for as_dir in $PATH
                   3350: do
                   3351:   IFS=$as_save_IFS
                   3352:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3353:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3354:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3355:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3356:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3357:     break 2
                   3358:   fi
                   3359: done
1.15      bertrand 3360:   done
1.1       bertrand 3361: IFS=$as_save_IFS
                   3362: 
                   3363: fi
                   3364: fi
1.15      bertrand 3365: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3366: if test -n "$ac_ct_CC"; then
                   3367:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3368: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3369: else
1.15      bertrand 3370:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3371: $as_echo "no" >&6; }
1.1       bertrand 3372: fi
                   3373: 
                   3374: 
1.15      bertrand 3375:   test -n "$ac_ct_CC" && break
                   3376: done
1.1       bertrand 3377: 
1.15      bertrand 3378:   if test "x$ac_ct_CC" = x; then
                   3379:     CC=""
                   3380:   else
                   3381:     case $cross_compiling:$ac_tool_warned in
                   3382: yes:)
                   3383: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3384: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3385: ac_tool_warned=yes ;;
                   3386: esac
                   3387:     CC=$ac_ct_CC
1.1       bertrand 3388:   fi
                   3389: fi
                   3390: 
                   3391: 
1.15      bertrand 3392: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3393: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3394: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57      bertrand 3395: See \`config.log' for more details" "$LINENO" 5; }
1.1       bertrand 3396: 
1.15      bertrand 3397: # Provide some information about the compiler.
                   3398: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3399: set X $ac_compile
                   3400: ac_compiler=$2
                   3401: for ac_option in --version -v -V -qversion; do
                   3402:   { { ac_try="$ac_compiler $ac_option >&5"
                   3403: case "(($ac_try" in
                   3404:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3405:   *) ac_try_echo=$ac_try;;
                   3406: esac
                   3407: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3408: $as_echo "$ac_try_echo"; } >&5
                   3409:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3410:   ac_status=$?
                   3411:   if test -s conftest.err; then
                   3412:     sed '10a\
                   3413: ... rest of stderr output deleted ...
                   3414:          10q' conftest.err >conftest.er1
                   3415:     cat conftest.er1 >&5
1.1       bertrand 3416:   fi
1.15      bertrand 3417:   rm -f conftest.er1 conftest.err
                   3418:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3419:   test $ac_status = 0; }
1.1       bertrand 3420: done
                   3421: 
1.15      bertrand 3422: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3423: /* end confdefs.h.  */
                   3424: 
                   3425: int
                   3426: main ()
                   3427: {
1.14      bertrand 3428: 
1.15      bertrand 3429:   ;
                   3430:   return 0;
                   3431: }
                   3432: _ACEOF
                   3433: ac_clean_files_save=$ac_clean_files
                   3434: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3435: # Try to create an executable without -o first, disregard a.out.
                   3436: # It will help us diagnose broken compilers, and finding out an intuition
                   3437: # of exeext.
                   3438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3439: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3440: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3441: 
1.15      bertrand 3442: # The possible output files:
                   3443: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3444: 
1.15      bertrand 3445: ac_rmfiles=
                   3446: for ac_file in $ac_files
1.1       bertrand 3447: do
1.15      bertrand 3448:   case $ac_file in
                   3449:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3450:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3451:   esac
1.1       bertrand 3452: done
1.15      bertrand 3453: rm -f $ac_rmfiles
                   3454: 
                   3455: if { { ac_try="$ac_link_default"
                   3456: case "(($ac_try" in
                   3457:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3458:   *) ac_try_echo=$ac_try;;
                   3459: esac
                   3460: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3461: $as_echo "$ac_try_echo"; } >&5
                   3462:   (eval "$ac_link_default") 2>&5
                   3463:   ac_status=$?
                   3464:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3465:   test $ac_status = 0; }; then :
                   3466:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3467: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3468: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3469: # so that the user can short-circuit this test for compilers unknown to
                   3470: # Autoconf.
                   3471: for ac_file in $ac_files ''
                   3472: do
                   3473:   test -f "$ac_file" || continue
                   3474:   case $ac_file in
                   3475:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3476:    ;;
                   3477:     [ab].out )
                   3478:    # We found the default executable, but exeext='' is most
                   3479:    # certainly right.
                   3480:    break;;
                   3481:     *.* )
                   3482:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3483:    then :; else
                   3484:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3485:    fi
                   3486:    # We set ac_cv_exeext here because the later test for it is not
                   3487:    # safe: cross compilers may not add the suffix if given an `-o'
                   3488:    # argument, so we may need to know it at that point already.
                   3489:    # Even if this section looks crufty: it has the advantage of
                   3490:    # actually working.
                   3491:    break;;
                   3492:     * )
                   3493:    break;;
                   3494:   esac
1.14      bertrand 3495: done
1.15      bertrand 3496: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3497: 
1.14      bertrand 3498: else
1.15      bertrand 3499:   ac_file=''
1.1       bertrand 3500: fi
1.15      bertrand 3501: if test -z "$ac_file"; then :
                   3502:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3503: $as_echo "no" >&6; }
                   3504: $as_echo "$as_me: failed program was:" >&5
                   3505: sed 's/^/| /' conftest.$ac_ext >&5
                   3506: 
                   3507: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3508: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3509: as_fn_error 77 "C compiler cannot create executables
1.57      bertrand 3510: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3511: else
                   3512:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3513: $as_echo "yes" >&6; }
                   3514: fi
                   3515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3516: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3518: $as_echo "$ac_file" >&6; }
                   3519: ac_exeext=$ac_cv_exeext
1.1       bertrand 3520: 
1.15      bertrand 3521: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3522: ac_clean_files=$ac_clean_files_save
                   3523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3524: $as_echo_n "checking for suffix of executables... " >&6; }
                   3525: if { { ac_try="$ac_link"
                   3526: case "(($ac_try" in
                   3527:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3528:   *) ac_try_echo=$ac_try;;
                   3529: esac
                   3530: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3531: $as_echo "$ac_try_echo"; } >&5
                   3532:   (eval "$ac_link") 2>&5
                   3533:   ac_status=$?
                   3534:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3535:   test $ac_status = 0; }; then :
                   3536:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3537: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3538: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3539: # `rm'.
                   3540: for ac_file in conftest.exe conftest conftest.*; do
                   3541:   test -f "$ac_file" || continue
                   3542:   case $ac_file in
                   3543:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3544:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3545:      break;;
                   3546:     * ) break;;
                   3547:   esac
                   3548: done
1.14      bertrand 3549: else
1.15      bertrand 3550:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3551: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3552: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57      bertrand 3553: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3554: fi
                   3555: rm -f conftest conftest$ac_cv_exeext
                   3556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3557: $as_echo "$ac_cv_exeext" >&6; }
                   3558: 
                   3559: rm -f conftest.$ac_ext
                   3560: EXEEXT=$ac_cv_exeext
                   3561: ac_exeext=$EXEEXT
                   3562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3563: /* end confdefs.h.  */
1.15      bertrand 3564: #include <stdio.h>
1.14      bertrand 3565: int
                   3566: main ()
                   3567: {
1.15      bertrand 3568: FILE *f = fopen ("conftest.out", "w");
                   3569:  return ferror (f) || fclose (f) != 0;
                   3570: 
1.14      bertrand 3571:   ;
                   3572:   return 0;
                   3573: }
                   3574: _ACEOF
1.15      bertrand 3575: ac_clean_files="$ac_clean_files conftest.out"
                   3576: # Check that the compiler produces executables we can run.  If not, either
                   3577: # the compiler is broken, or we cross compile.
                   3578: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3579: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3580: if test "$cross_compiling" != yes; then
                   3581:   { { ac_try="$ac_link"
1.1       bertrand 3582: case "(($ac_try" in
                   3583:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3584:   *) ac_try_echo=$ac_try;;
                   3585: esac
1.15      bertrand 3586: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3587: $as_echo "$ac_try_echo"; } >&5
                   3588:   (eval "$ac_link") 2>&5
                   3589:   ac_status=$?
                   3590:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3591:   test $ac_status = 0; }
                   3592:   if { ac_try='./conftest$ac_cv_exeext'
                   3593:   { { case "(($ac_try" in
                   3594:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3595:   *) ac_try_echo=$ac_try;;
                   3596: esac
                   3597: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3598: $as_echo "$ac_try_echo"; } >&5
                   3599:   (eval "$ac_try") 2>&5
1.1       bertrand 3600:   ac_status=$?
1.15      bertrand 3601:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3602:   test $ac_status = 0; }; }; then
                   3603:     cross_compiling=no
                   3604:   else
                   3605:     if test "$cross_compiling" = maybe; then
                   3606:    cross_compiling=yes
                   3607:     else
                   3608:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3609: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3610: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3611: If you meant to cross compile, use \`--host'.
1.57      bertrand 3612: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 3613:     fi
                   3614:   fi
1.14      bertrand 3615: fi
1.15      bertrand 3616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3617: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3618: 
1.15      bertrand 3619: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3620: ac_clean_files=$ac_clean_files_save
                   3621: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3622: $as_echo_n "checking for suffix of object files... " >&6; }
1.57      bertrand 3623: if ${ac_cv_objext+:} false; then :
1.15      bertrand 3624:   $as_echo_n "(cached) " >&6
1.14      bertrand 3625: else
1.15      bertrand 3626:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3627: /* end confdefs.h.  */
                   3628: 
                   3629: int
                   3630: main ()
                   3631: {
1.15      bertrand 3632: 
1.1       bertrand 3633:   ;
                   3634:   return 0;
                   3635: }
                   3636: _ACEOF
1.15      bertrand 3637: rm -f conftest.o conftest.obj
                   3638: if { { ac_try="$ac_compile"
1.1       bertrand 3639: case "(($ac_try" in
                   3640:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3641:   *) ac_try_echo=$ac_try;;
                   3642: esac
1.15      bertrand 3643: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3644: $as_echo "$ac_try_echo"; } >&5
                   3645:   (eval "$ac_compile") 2>&5
1.1       bertrand 3646:   ac_status=$?
1.15      bertrand 3647:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3648:   test $ac_status = 0; }; then :
                   3649:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3650:   test -f "$ac_file" || continue;
                   3651:   case $ac_file in
                   3652:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3653:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3654:        break;;
                   3655:   esac
                   3656: done
1.14      bertrand 3657: else
1.15      bertrand 3658:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3659: sed 's/^/| /' conftest.$ac_ext >&5
                   3660: 
1.15      bertrand 3661: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3662: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3663: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57      bertrand 3664: See \`config.log' for more details" "$LINENO" 5; }
1.14      bertrand 3665: fi
1.15      bertrand 3666: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3667: fi
                   3668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3669: $as_echo "$ac_cv_objext" >&6; }
                   3670: OBJEXT=$ac_cv_objext
                   3671: ac_objext=$OBJEXT
                   3672: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3673: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57      bertrand 3674: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15      bertrand 3675:   $as_echo_n "(cached) " >&6
                   3676: else
                   3677:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3678: /* end confdefs.h.  */
                   3679: 
                   3680: int
                   3681: main ()
                   3682: {
                   3683: #ifndef __GNUC__
                   3684:        choke me
                   3685: #endif
1.14      bertrand 3686: 
1.15      bertrand 3687:   ;
                   3688:   return 0;
                   3689: }
                   3690: _ACEOF
                   3691: if ac_fn_c_try_compile "$LINENO"; then :
                   3692:   ac_compiler_gnu=yes
1.14      bertrand 3693: else
1.15      bertrand 3694:   ac_compiler_gnu=no
1.14      bertrand 3695: fi
1.15      bertrand 3696: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3697: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3698: 
1.15      bertrand 3699: fi
                   3700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3701: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3702: if test $ac_compiler_gnu = yes; then
                   3703:   GCC=yes
1.14      bertrand 3704: else
1.15      bertrand 3705:   GCC=
1.14      bertrand 3706: fi
1.15      bertrand 3707: ac_test_CFLAGS=${CFLAGS+set}
                   3708: ac_save_CFLAGS=$CFLAGS
                   3709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3710: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57      bertrand 3711: if ${ac_cv_prog_cc_g+:} false; then :
1.15      bertrand 3712:   $as_echo_n "(cached) " >&6
                   3713: else
                   3714:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3715:    ac_c_werror_flag=yes
                   3716:    ac_cv_prog_cc_g=no
                   3717:    CFLAGS="-g"
                   3718:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3719: /* end confdefs.h.  */
1.14      bertrand 3720: 
1.15      bertrand 3721: int
                   3722: main ()
                   3723: {
1.14      bertrand 3724: 
1.15      bertrand 3725:   ;
                   3726:   return 0;
                   3727: }
                   3728: _ACEOF
                   3729: if ac_fn_c_try_compile "$LINENO"; then :
                   3730:   ac_cv_prog_cc_g=yes
                   3731: else
                   3732:   CFLAGS=""
                   3733:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3734: /* end confdefs.h.  */
1.14      bertrand 3735: 
1.15      bertrand 3736: int
                   3737: main ()
                   3738: {
1.14      bertrand 3739: 
1.15      bertrand 3740:   ;
                   3741:   return 0;
                   3742: }
                   3743: _ACEOF
                   3744: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3745: 
1.15      bertrand 3746: else
                   3747:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3748:     CFLAGS="-g"
                   3749:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3750: /* end confdefs.h.  */
1.14      bertrand 3751: 
1.15      bertrand 3752: int
                   3753: main ()
                   3754: {
1.14      bertrand 3755: 
1.15      bertrand 3756:   ;
                   3757:   return 0;
                   3758: }
                   3759: _ACEOF
                   3760: if ac_fn_c_try_compile "$LINENO"; then :
                   3761:   ac_cv_prog_cc_g=yes
                   3762: fi
                   3763: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3764: fi
                   3765: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3766: fi
                   3767: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3768:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3769: fi
                   3770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3771: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3772: if test "$ac_test_CFLAGS" = set; then
                   3773:   CFLAGS=$ac_save_CFLAGS
                   3774: elif test $ac_cv_prog_cc_g = yes; then
                   3775:   if test "$GCC" = yes; then
                   3776:     CFLAGS="-g -O2"
                   3777:   else
                   3778:     CFLAGS="-g"
                   3779:   fi
                   3780: else
                   3781:   if test "$GCC" = yes; then
                   3782:     CFLAGS="-O2"
                   3783:   else
                   3784:     CFLAGS=
                   3785:   fi
                   3786: fi
                   3787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3788: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57      bertrand 3789: if ${ac_cv_prog_cc_c89+:} false; then :
1.15      bertrand 3790:   $as_echo_n "(cached) " >&6
1.1       bertrand 3791: else
1.15      bertrand 3792:   ac_cv_prog_cc_c89=no
                   3793: ac_save_CC=$CC
                   3794: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3795: /* end confdefs.h.  */
1.15      bertrand 3796: #include <stdarg.h>
                   3797: #include <stdio.h>
                   3798: #include <sys/types.h>
                   3799: #include <sys/stat.h>
                   3800: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3801: struct buf { int x; };
                   3802: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3803: static char *e (p, i)
                   3804:      char **p;
                   3805:      int i;
                   3806: {
                   3807:   return p[i];
                   3808: }
                   3809: static char *f (char * (*g) (char **, int), char **p, ...)
                   3810: {
                   3811:   char *s;
                   3812:   va_list v;
                   3813:   va_start (v,p);
                   3814:   s = g (p, va_arg (v,int));
                   3815:   va_end (v);
                   3816:   return s;
                   3817: }
                   3818: 
                   3819: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3820:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3821:    These don't provoke an error unfortunately, instead are silently treated
                   3822:    as 'x'.  The following induces an error, until -std is added to get
                   3823:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3824:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3825:    that's true only with -std.  */
                   3826: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3827: 
1.15      bertrand 3828: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3829:    inside strings and character constants.  */
                   3830: #define FOO(x) 'x'
                   3831: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3832: 
1.15      bertrand 3833: int test (int i, double x);
                   3834: struct s1 {int (*f) (int a);};
                   3835: struct s2 {int (*f) (double a);};
                   3836: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3837: int argc;
                   3838: char **argv;
1.14      bertrand 3839: int
                   3840: main ()
                   3841: {
1.15      bertrand 3842: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3843:   ;
                   3844:   return 0;
                   3845: }
                   3846: _ACEOF
1.15      bertrand 3847: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3848:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3849: do
                   3850:   CC="$ac_save_CC $ac_arg"
                   3851:   if ac_fn_c_try_compile "$LINENO"; then :
                   3852:   ac_cv_prog_cc_c89=$ac_arg
                   3853: fi
                   3854: rm -f core conftest.err conftest.$ac_objext
                   3855:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3856: done
                   3857: rm -f conftest.$ac_ext
                   3858: CC=$ac_save_CC
                   3859: 
                   3860: fi
                   3861: # AC_CACHE_VAL
                   3862: case "x$ac_cv_prog_cc_c89" in
                   3863:   x)
                   3864:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3865: $as_echo "none needed" >&6; } ;;
                   3866:   xno)
                   3867:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3868: $as_echo "unsupported" >&6; } ;;
                   3869:   *)
                   3870:     CC="$CC $ac_cv_prog_cc_c89"
                   3871:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3872: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3873: esac
1.15      bertrand 3874: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3875: 
                   3876: fi
                   3877: 
1.15      bertrand 3878: ac_ext=c
                   3879: ac_cpp='$CPP $CPPFLAGS'
                   3880: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3881: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3882: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3883: DEPDIR="${am__leading_dot}deps"
                   3884: 
                   3885: ac_config_commands="$ac_config_commands depfiles"
                   3886: 
                   3887: 
                   3888: am_make=${MAKE-make}
                   3889: cat > confinc << 'END'
                   3890: am__doit:
                   3891:    @echo this is the am__doit target
                   3892: .PHONY: am__doit
                   3893: END
                   3894: # If we don't find an include directive, just comment out the code.
                   3895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3896: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3897: am__include="#"
                   3898: am__quote=
                   3899: _am_result=none
                   3900: # First try GNU make style include.
                   3901: echo "include confinc" > confmf
                   3902: # Ignore all kinds of additional output from `make'.
                   3903: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3904: *the\ am__doit\ target*)
                   3905:   am__include=include
                   3906:   am__quote=
                   3907:   _am_result=GNU
                   3908:   ;;
                   3909: esac
                   3910: # Now try BSD make style include.
                   3911: if test "$am__include" = "#"; then
                   3912:    echo '.include "confinc"' > confmf
                   3913:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3914:    *the\ am__doit\ target*)
                   3915:      am__include=.include
                   3916:      am__quote="\""
                   3917:      _am_result=BSD
                   3918:      ;;
                   3919:    esac
1.14      bertrand 3920: fi
                   3921: 
                   3922: 
1.15      bertrand 3923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3924: $as_echo "$_am_result" >&6; }
                   3925: rm -f confinc confmf
                   3926: 
                   3927: # Check whether --enable-dependency-tracking was given.
                   3928: if test "${enable_dependency_tracking+set}" = set; then :
                   3929:   enableval=$enable_dependency_tracking;
                   3930: fi
                   3931: 
                   3932: if test "x$enable_dependency_tracking" != xno; then
                   3933:   am_depcomp="$ac_aux_dir/depcomp"
                   3934:   AMDEPBACKSLASH='\'
                   3935: fi
                   3936:  if test "x$enable_dependency_tracking" != xno; then
                   3937:   AMDEP_TRUE=
                   3938:   AMDEP_FALSE='#'
1.1       bertrand 3939: else
1.15      bertrand 3940:   AMDEP_TRUE='#'
                   3941:   AMDEP_FALSE=
1.14      bertrand 3942: fi
1.1       bertrand 3943: 
1.14      bertrand 3944: 
                   3945: 
1.15      bertrand 3946: depcc="$CC"   am_compiler_list=
1.14      bertrand 3947: 
1.15      bertrand 3948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3949: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 3950: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15      bertrand 3951:   $as_echo_n "(cached) " >&6
1.14      bertrand 3952: else
1.15      bertrand 3953:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3954:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3955:   # making bogus files that we don't know about and never remove.  For
                   3956:   # instance it was reported that on HP-UX the gcc test will end up
                   3957:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3958:   # in D'.
                   3959:   mkdir conftest.dir
                   3960:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3961:   # using a relative directory.
                   3962:   cp "$am_depcomp" conftest.dir
                   3963:   cd conftest.dir
                   3964:   # We will build objects and dependencies in a subdirectory because
                   3965:   # it helps to detect inapplicable dependency modes.  For instance
                   3966:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3967:   # side effect of compilation, but ICC will put the dependencies in
                   3968:   # the current directory while Tru64 will put them in the object
                   3969:   # directory.
                   3970:   mkdir sub
1.14      bertrand 3971: 
1.15      bertrand 3972:   am_cv_CC_dependencies_compiler_type=none
                   3973:   if test "$am_compiler_list" = ""; then
                   3974:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   3975:   fi
                   3976:   am__universal=false
                   3977:   case " $depcc " in #(
                   3978:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   3979:      esac
1.14      bertrand 3980: 
1.15      bertrand 3981:   for depmode in $am_compiler_list; do
                   3982:     # Setup a source with many dependencies, because some compilers
                   3983:     # like to wrap large dependency lists on column 80 (with \), and
                   3984:     # we should not choose a depcomp mode which is confused by this.
                   3985:     #
                   3986:     # We need to recreate these files for each test, as the compiler may
                   3987:     # overwrite some of them when testing with obscure command lines.
                   3988:     # This happens at least with the AIX C compiler.
                   3989:     : > sub/conftest.c
                   3990:     for i in 1 2 3 4 5 6; do
                   3991:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   3992:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   3993:       # Solaris 8's {/usr,}/bin/sh.
                   3994:       touch sub/conftst$i.h
                   3995:     done
                   3996:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 3997: 
1.15      bertrand 3998:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   3999:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4000:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4001:     # versions had trouble with output in subdirs
                   4002:     am__obj=sub/conftest.${OBJEXT-o}
                   4003:     am__minus_obj="-o $am__obj"
                   4004:     case $depmode in
                   4005:     gcc)
                   4006:       # This depmode causes a compiler race in universal mode.
                   4007:       test "$am__universal" = false || continue
                   4008:       ;;
                   4009:     nosideeffect)
                   4010:       # after this tag, mechanisms are not by side-effect, so they'll
                   4011:       # only be used when explicitly requested
                   4012:       if test "x$enable_dependency_tracking" = xyes; then
                   4013:    continue
                   4014:       else
                   4015:    break
                   4016:       fi
                   4017:       ;;
                   4018:     msvisualcpp | msvcmsys)
                   4019:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4020:       # not run yet.  These depmodes are late enough in the game, and
                   4021:       # so weak that their functioning should not be impacted.
                   4022:       am__obj=conftest.${OBJEXT-o}
                   4023:       am__minus_obj=
                   4024:       ;;
                   4025:     none) break ;;
                   4026:     esac
                   4027:     if depmode=$depmode \
                   4028:        source=sub/conftest.c object=$am__obj \
                   4029:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4030:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4031:          >/dev/null 2>conftest.err &&
                   4032:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4033:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4034:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4035:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4036:       # icc doesn't choke on unknown options, it will just issue warnings
                   4037:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4038:       # that says an option was ignored or not supported.
                   4039:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4040:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4041:       # The diagnosis changed in icc 8.0:
                   4042:       #   icc: Command line remark: option '-MP' not supported
                   4043:       if (grep 'ignoring option' conftest.err ||
                   4044:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4045:         am_cv_CC_dependencies_compiler_type=$depmode
                   4046:         break
                   4047:       fi
                   4048:     fi
                   4049:   done
1.14      bertrand 4050: 
1.15      bertrand 4051:   cd ..
                   4052:   rm -rf conftest.dir
1.14      bertrand 4053: else
1.15      bertrand 4054:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4055: fi
                   4056: 
1.15      bertrand 4057: fi
                   4058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4059: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4060: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4061: 
1.15      bertrand 4062:  if
                   4063:   test "x$enable_dependency_tracking" != xno \
                   4064:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4065:   am__fastdepCC_TRUE=
                   4066:   am__fastdepCC_FALSE='#'
1.1       bertrand 4067: else
1.15      bertrand 4068:   am__fastdepCC_TRUE='#'
                   4069:   am__fastdepCC_FALSE=
                   4070: fi
                   4071: 
1.1       bertrand 4072: 
                   4073: 
1.30      bertrand 4074: EXT_SQL=
                   4075: 
1.15      bertrand 4076: if test x"$CC" != x""; then
                   4077:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4078:            awk -F. '{ printf("%s", $1);}'`
                   4079:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4080:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4081:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4082:        OPTIMISATION_C=-O3
                   4083:    else
1.23      bertrand 4084:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4085:                then
1.15      bertrand 4086:            OPTIMISATION_C=-O3
                   4087:        else
1.23      bertrand 4088:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4089:                OPTIMISATION_C=-O2
                   4090:            else
1.36      bertrand 4091:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4092:            fi
1.15      bertrand 4093:        fi
                   4094:    fi
1.14      bertrand 4095: fi
                   4096: 
1.15      bertrand 4097: if test "x$CC" != xcc; then
                   4098:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4099: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4100: else
1.15      bertrand 4101:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4102: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4103: fi
1.15      bertrand 4104: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4105:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57      bertrand 4106: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15      bertrand 4107:   $as_echo_n "(cached) " >&6
1.1       bertrand 4108: else
1.15      bertrand 4109:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4110: /* end confdefs.h.  */
                   4111: 
                   4112: int
                   4113: main ()
                   4114: {
1.15      bertrand 4115: 
1.1       bertrand 4116:   ;
                   4117:   return 0;
                   4118: }
                   4119: _ACEOF
1.15      bertrand 4120: # Make sure it works both with $CC and with simple cc.
                   4121: # We do the test twice because some compilers refuse to overwrite an
                   4122: # existing .o file with -o, though they will create one.
                   4123: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4124: rm -f conftest2.*
                   4125: if { { case "(($ac_try" in
                   4126:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4127:   *) ac_try_echo=$ac_try;;
                   4128: esac
                   4129: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4130: $as_echo "$ac_try_echo"; } >&5
                   4131:   (eval "$ac_try") 2>&5
                   4132:   ac_status=$?
                   4133:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4134:   test $ac_status = 0; } &&
                   4135:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4136:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4137:   *) ac_try_echo=$ac_try;;
                   4138: esac
                   4139: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4140: $as_echo "$ac_try_echo"; } >&5
                   4141:   (eval "$ac_try") 2>&5
                   4142:   ac_status=$?
                   4143:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4144:   test $ac_status = 0; };
                   4145: then
                   4146:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4147:   if test "x$CC" != xcc; then
                   4148:     # Test first that cc exists at all.
                   4149:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4150:   { { case "(($ac_try" in
                   4151:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4152:   *) ac_try_echo=$ac_try;;
                   4153: esac
                   4154: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4155: $as_echo "$ac_try_echo"; } >&5
                   4156:   (eval "$ac_try") 2>&5
                   4157:   ac_status=$?
                   4158:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4159:   test $ac_status = 0; }; }; then
                   4160:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4161:       rm -f conftest2.*
                   4162:       if { { case "(($ac_try" in
                   4163:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4164:   *) ac_try_echo=$ac_try;;
                   4165: esac
                   4166: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4167: $as_echo "$ac_try_echo"; } >&5
                   4168:   (eval "$ac_try") 2>&5
                   4169:   ac_status=$?
                   4170:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4171:   test $ac_status = 0; } &&
                   4172:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4173:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4174:   *) ac_try_echo=$ac_try;;
                   4175: esac
1.15      bertrand 4176: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4177: $as_echo "$ac_try_echo"; } >&5
                   4178:   (eval "$ac_try") 2>&5
1.14      bertrand 4179:   ac_status=$?
1.15      bertrand 4180:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4181:   test $ac_status = 0; };
                   4182:       then
                   4183:    # cc works too.
                   4184:    :
                   4185:       else
                   4186:    # cc exists but doesn't like -o.
                   4187:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4188:       fi
                   4189:     fi
                   4190:   fi
1.1       bertrand 4191: else
1.15      bertrand 4192:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4193: fi
                   4194: rm -f core conftest*
1.14      bertrand 4195: 
1.1       bertrand 4196: fi
1.15      bertrand 4197: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4198:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4199: $as_echo "yes" >&6; }
                   4200: else
                   4201:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4202: $as_echo "no" >&6; }
                   4203: 
                   4204: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4205: 
                   4206: fi
1.15      bertrand 4207: 
                   4208: # FIXME: we rely on the cache variable name because
                   4209: # there is no other way.
                   4210: set dummy $CC
                   4211: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4212: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4213: if test "$am_t" != yes; then
                   4214:    # Losing compiler, so override with the script.
                   4215:    # FIXME: It is wrong to rewrite CC.
                   4216:    # But if we don't then we get into trouble of one sort or another.
                   4217:    # A longer-term fix would be to have automake use am__CC in this case,
                   4218:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4219:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4220: fi
1.14      bertrand 4221: 
                   4222: 
1.15      bertrand 4223: 
                   4224: if test "$GCC" != yes; then
1.36      bertrand 4225:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4226: fi
                   4227: 
                   4228: ac_ext=cpp
                   4229: ac_cpp='$CXXCPP $CPPFLAGS'
                   4230: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4231: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4232: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4233: if test -z "$CXX"; then
                   4234:   if test -n "$CCC"; then
                   4235:     CXX=$CCC
                   4236:   else
                   4237:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4238:   for ac_prog in g++
1.15      bertrand 4239:   do
                   4240:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4241: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4243: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4244: if ${ac_cv_prog_CXX+:} false; then :
1.15      bertrand 4245:   $as_echo_n "(cached) " >&6
1.1       bertrand 4246: else
1.15      bertrand 4247:   if test -n "$CXX"; then
                   4248:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4249: else
1.15      bertrand 4250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4251: for as_dir in $PATH
                   4252: do
                   4253:   IFS=$as_save_IFS
                   4254:   test -z "$as_dir" && as_dir=.
                   4255:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4256:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4257:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4258:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4259:     break 2
                   4260:   fi
                   4261: done
                   4262:   done
                   4263: IFS=$as_save_IFS
1.14      bertrand 4264: 
                   4265: fi
                   4266: fi
1.15      bertrand 4267: CXX=$ac_cv_prog_CXX
                   4268: if test -n "$CXX"; then
                   4269:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4270: $as_echo "$CXX" >&6; }
1.14      bertrand 4271: else
1.15      bertrand 4272:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4273: $as_echo "no" >&6; }
1.14      bertrand 4274: fi
                   4275: 
                   4276: 
1.15      bertrand 4277:     test -n "$CXX" && break
                   4278:   done
                   4279: fi
                   4280: if test -z "$CXX"; then
                   4281:   ac_ct_CXX=$CXX
1.23      bertrand 4282:   for ac_prog in g++
1.15      bertrand 4283: do
                   4284:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4285: set dummy $ac_prog; ac_word=$2
                   4286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4287: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4288: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15      bertrand 4289:   $as_echo_n "(cached) " >&6
                   4290: else
                   4291:   if test -n "$ac_ct_CXX"; then
                   4292:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4293: else
                   4294: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4295: for as_dir in $PATH
                   4296: do
                   4297:   IFS=$as_save_IFS
                   4298:   test -z "$as_dir" && as_dir=.
                   4299:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4300:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4301:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4302:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4303:     break 2
                   4304:   fi
                   4305: done
                   4306:   done
                   4307: IFS=$as_save_IFS
1.14      bertrand 4308: 
1.15      bertrand 4309: fi
                   4310: fi
                   4311: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4312: if test -n "$ac_ct_CXX"; then
                   4313:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4314: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4315: else
1.15      bertrand 4316:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4317: $as_echo "no" >&6; }
1.14      bertrand 4318: fi
                   4319: 
                   4320: 
1.15      bertrand 4321:   test -n "$ac_ct_CXX" && break
                   4322: done
1.14      bertrand 4323: 
1.15      bertrand 4324:   if test "x$ac_ct_CXX" = x; then
                   4325:     CXX="g++"
                   4326:   else
                   4327:     case $cross_compiling:$ac_tool_warned in
                   4328: yes:)
                   4329: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4330: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4331: ac_tool_warned=yes ;;
                   4332: esac
                   4333:     CXX=$ac_ct_CXX
                   4334:   fi
                   4335: fi
1.1       bertrand 4336: 
1.15      bertrand 4337:   fi
                   4338: fi
                   4339: # Provide some information about the compiler.
                   4340: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4341: set X $ac_compile
                   4342: ac_compiler=$2
                   4343: for ac_option in --version -v -V -qversion; do
                   4344:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4345: case "(($ac_try" in
                   4346:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4347:   *) ac_try_echo=$ac_try;;
                   4348: esac
1.15      bertrand 4349: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4350: $as_echo "$ac_try_echo"; } >&5
                   4351:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4352:   ac_status=$?
1.15      bertrand 4353:   if test -s conftest.err; then
                   4354:     sed '10a\
                   4355: ... rest of stderr output deleted ...
                   4356:          10q' conftest.err >conftest.er1
                   4357:     cat conftest.er1 >&5
                   4358:   fi
                   4359:   rm -f conftest.er1 conftest.err
                   4360:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4361:   test $ac_status = 0; }
                   4362: done
                   4363: 
                   4364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4365: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57      bertrand 4366: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15      bertrand 4367:   $as_echo_n "(cached) " >&6
1.14      bertrand 4368: else
1.15      bertrand 4369:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4370: /* end confdefs.h.  */
1.1       bertrand 4371: 
                   4372: int
                   4373: main ()
                   4374: {
1.15      bertrand 4375: #ifndef __GNUC__
                   4376:        choke me
                   4377: #endif
1.1       bertrand 4378: 
                   4379:   ;
                   4380:   return 0;
                   4381: }
                   4382: _ACEOF
1.15      bertrand 4383: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4384:   ac_compiler_gnu=yes
1.1       bertrand 4385: else
1.15      bertrand 4386:   ac_compiler_gnu=no
1.1       bertrand 4387: fi
1.14      bertrand 4388: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4389: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4390: 
1.15      bertrand 4391: fi
                   4392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4393: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4394: if test $ac_compiler_gnu = yes; then
                   4395:   GXX=yes
                   4396: else
                   4397:   GXX=
                   4398: fi
                   4399: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4400: ac_save_CXXFLAGS=$CXXFLAGS
                   4401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4402: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57      bertrand 4403: if ${ac_cv_prog_cxx_g+:} false; then :
1.15      bertrand 4404:   $as_echo_n "(cached) " >&6
                   4405: else
                   4406:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4407:    ac_cxx_werror_flag=yes
                   4408:    ac_cv_prog_cxx_g=no
                   4409:    CXXFLAGS="-g"
                   4410:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4411: /* end confdefs.h.  */
1.15      bertrand 4412: 
1.1       bertrand 4413: int
                   4414: main ()
                   4415: {
1.14      bertrand 4416: 
1.1       bertrand 4417:   ;
                   4418:   return 0;
                   4419: }
                   4420: _ACEOF
1.15      bertrand 4421: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4422:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4423: else
1.15      bertrand 4424:   CXXFLAGS=""
                   4425:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4426: /* end confdefs.h.  */
1.1       bertrand 4427: 
1.14      bertrand 4428: int
                   4429: main ()
                   4430: {
1.1       bertrand 4431: 
1.14      bertrand 4432:   ;
                   4433:   return 0;
                   4434: }
                   4435: _ACEOF
1.15      bertrand 4436: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4437: 
                   4438: else
1.15      bertrand 4439:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4440:     CXXFLAGS="-g"
                   4441:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4442: /* end confdefs.h.  */
1.1       bertrand 4443: 
1.14      bertrand 4444: int
                   4445: main ()
                   4446: {
1.1       bertrand 4447: 
1.14      bertrand 4448:   ;
                   4449:   return 0;
                   4450: }
                   4451: _ACEOF
1.15      bertrand 4452: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4453:   ac_cv_prog_cxx_g=yes
                   4454: fi
                   4455: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4456: fi
                   4457: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4458: fi
                   4459: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4460:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4461: fi
                   4462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4463: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4464: if test "$ac_test_CXXFLAGS" = set; then
                   4465:   CXXFLAGS=$ac_save_CXXFLAGS
                   4466: elif test $ac_cv_prog_cxx_g = yes; then
                   4467:   if test "$GXX" = yes; then
                   4468:     CXXFLAGS="-g -O2"
                   4469:   else
                   4470:     CXXFLAGS="-g"
                   4471:   fi
                   4472: else
                   4473:   if test "$GXX" = yes; then
                   4474:     CXXFLAGS="-O2"
                   4475:   else
                   4476:     CXXFLAGS=
                   4477:   fi
                   4478: fi
                   4479: ac_ext=c
                   4480: ac_cpp='$CPP $CPPFLAGS'
                   4481: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4482: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4483: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4484: 
                   4485: depcc="$CXX"  am_compiler_list=
                   4486: 
                   4487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4488: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57      bertrand 4489: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15      bertrand 4490:   $as_echo_n "(cached) " >&6
                   4491: else
                   4492:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4493:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4494:   # making bogus files that we don't know about and never remove.  For
                   4495:   # instance it was reported that on HP-UX the gcc test will end up
                   4496:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4497:   # in D'.
                   4498:   mkdir conftest.dir
                   4499:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4500:   # using a relative directory.
                   4501:   cp "$am_depcomp" conftest.dir
                   4502:   cd conftest.dir
                   4503:   # We will build objects and dependencies in a subdirectory because
                   4504:   # it helps to detect inapplicable dependency modes.  For instance
                   4505:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4506:   # side effect of compilation, but ICC will put the dependencies in
                   4507:   # the current directory while Tru64 will put them in the object
                   4508:   # directory.
                   4509:   mkdir sub
                   4510: 
                   4511:   am_cv_CXX_dependencies_compiler_type=none
                   4512:   if test "$am_compiler_list" = ""; then
                   4513:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4514:   fi
                   4515:   am__universal=false
                   4516:   case " $depcc " in #(
                   4517:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4518:      esac
                   4519: 
                   4520:   for depmode in $am_compiler_list; do
                   4521:     # Setup a source with many dependencies, because some compilers
                   4522:     # like to wrap large dependency lists on column 80 (with \), and
                   4523:     # we should not choose a depcomp mode which is confused by this.
                   4524:     #
                   4525:     # We need to recreate these files for each test, as the compiler may
                   4526:     # overwrite some of them when testing with obscure command lines.
                   4527:     # This happens at least with the AIX C compiler.
                   4528:     : > sub/conftest.c
                   4529:     for i in 1 2 3 4 5 6; do
                   4530:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4531:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4532:       # Solaris 8's {/usr,}/bin/sh.
                   4533:       touch sub/conftst$i.h
                   4534:     done
                   4535:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4536: 
                   4537:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4538:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4539:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4540:     # versions had trouble with output in subdirs
                   4541:     am__obj=sub/conftest.${OBJEXT-o}
                   4542:     am__minus_obj="-o $am__obj"
                   4543:     case $depmode in
                   4544:     gcc)
                   4545:       # This depmode causes a compiler race in universal mode.
                   4546:       test "$am__universal" = false || continue
                   4547:       ;;
                   4548:     nosideeffect)
                   4549:       # after this tag, mechanisms are not by side-effect, so they'll
                   4550:       # only be used when explicitly requested
                   4551:       if test "x$enable_dependency_tracking" = xyes; then
                   4552:    continue
                   4553:       else
                   4554:    break
                   4555:       fi
                   4556:       ;;
                   4557:     msvisualcpp | msvcmsys)
                   4558:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4559:       # not run yet.  These depmodes are late enough in the game, and
                   4560:       # so weak that their functioning should not be impacted.
                   4561:       am__obj=conftest.${OBJEXT-o}
                   4562:       am__minus_obj=
                   4563:       ;;
                   4564:     none) break ;;
                   4565:     esac
                   4566:     if depmode=$depmode \
                   4567:        source=sub/conftest.c object=$am__obj \
                   4568:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4569:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4570:          >/dev/null 2>conftest.err &&
                   4571:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4572:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4573:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4574:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4575:       # icc doesn't choke on unknown options, it will just issue warnings
                   4576:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4577:       # that says an option was ignored or not supported.
                   4578:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4579:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4580:       # The diagnosis changed in icc 8.0:
                   4581:       #   icc: Command line remark: option '-MP' not supported
                   4582:       if (grep 'ignoring option' conftest.err ||
                   4583:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4584:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4585:         break
                   4586:       fi
                   4587:     fi
                   4588:   done
                   4589: 
                   4590:   cd ..
                   4591:   rm -rf conftest.dir
                   4592: else
                   4593:   am_cv_CXX_dependencies_compiler_type=none
                   4594: fi
                   4595: 
                   4596: fi
                   4597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4598: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4599: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4600: 
                   4601:  if
                   4602:   test "x$enable_dependency_tracking" != xno \
                   4603:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4604:   am__fastdepCXX_TRUE=
                   4605:   am__fastdepCXX_FALSE='#'
                   4606: else
                   4607:   am__fastdepCXX_TRUE='#'
                   4608:   am__fastdepCXX_FALSE=
                   4609: fi
                   4610: 
                   4611: 
                   4612: 
1.87      bertrand 4613: if test "$GXX" != yes; then
1.36      bertrand 4614:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4615: fi
                   4616: 
1.69      bertrand 4617: if test x"$CXX" != x""; then
                   4618:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4619:            awk -F. '{ printf("%s", $1);}'`
                   4620:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4621:            awk -F. '{ printf("%s", $2);}'`
                   4622:    if test $GCC_VERSION_MAJEURE -ge 5; then
                   4623:        OPTIMISATION_GXX=-O3
                   4624:    else
                   4625:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4626:            OPTIMISATION_GXX=-O3
                   4627:        else
                   4628:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4629:                OPTIMISATION_GXX=-O2
                   4630:            else
                   4631:                as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
                   4632:            fi
                   4633:        fi
                   4634:    fi
                   4635: fi
                   4636: 
1.15      bertrand 4637: ac_ext=f
                   4638: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4639: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4640: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4641: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4642:   for ac_prog in gfortran
1.15      bertrand 4643:   do
                   4644:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4645: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4647: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4648: if ${ac_cv_prog_F77+:} false; then :
1.15      bertrand 4649:   $as_echo_n "(cached) " >&6
                   4650: else
                   4651:   if test -n "$F77"; then
                   4652:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4653: else
                   4654: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4655: for as_dir in $PATH
                   4656: do
                   4657:   IFS=$as_save_IFS
                   4658:   test -z "$as_dir" && as_dir=.
                   4659:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4660:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4661:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4662:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4663:     break 2
                   4664:   fi
                   4665: done
                   4666:   done
                   4667: IFS=$as_save_IFS
                   4668: 
                   4669: fi
                   4670: fi
                   4671: F77=$ac_cv_prog_F77
                   4672: if test -n "$F77"; then
                   4673:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4674: $as_echo "$F77" >&6; }
                   4675: else
                   4676:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4677: $as_echo "no" >&6; }
                   4678: fi
                   4679: 
                   4680: 
                   4681:     test -n "$F77" && break
                   4682:   done
                   4683: fi
                   4684: if test -z "$F77"; then
                   4685:   ac_ct_F77=$F77
1.23      bertrand 4686:   for ac_prog in gfortran
1.15      bertrand 4687: do
                   4688:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4689: set dummy $ac_prog; ac_word=$2
                   4690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4691: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4692: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15      bertrand 4693:   $as_echo_n "(cached) " >&6
                   4694: else
                   4695:   if test -n "$ac_ct_F77"; then
                   4696:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4697: else
                   4698: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4699: for as_dir in $PATH
                   4700: do
                   4701:   IFS=$as_save_IFS
                   4702:   test -z "$as_dir" && as_dir=.
                   4703:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4704:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4705:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4706:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4707:     break 2
                   4708:   fi
                   4709: done
                   4710:   done
                   4711: IFS=$as_save_IFS
                   4712: 
                   4713: fi
                   4714: fi
                   4715: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4716: if test -n "$ac_ct_F77"; then
                   4717:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4718: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4719: else
1.15      bertrand 4720:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4721: $as_echo "no" >&6; }
                   4722: fi
                   4723: 
                   4724: 
                   4725:   test -n "$ac_ct_F77" && break
                   4726: done
1.1       bertrand 4727: 
1.15      bertrand 4728:   if test "x$ac_ct_F77" = x; then
                   4729:     F77=""
                   4730:   else
                   4731:     case $cross_compiling:$ac_tool_warned in
                   4732: yes:)
                   4733: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4734: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4735: ac_tool_warned=yes ;;
                   4736: esac
                   4737:     F77=$ac_ct_F77
                   4738:   fi
1.14      bertrand 4739: fi
1.1       bertrand 4740: 
                   4741: 
1.15      bertrand 4742: # Provide some information about the compiler.
                   4743: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4744: set X $ac_compile
                   4745: ac_compiler=$2
                   4746: for ac_option in --version -v -V -qversion; do
                   4747:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4748: case "(($ac_try" in
                   4749:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4750:   *) ac_try_echo=$ac_try;;
                   4751: esac
1.15      bertrand 4752: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4753: $as_echo "$ac_try_echo"; } >&5
                   4754:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4755:   ac_status=$?
1.15      bertrand 4756:   if test -s conftest.err; then
                   4757:     sed '10a\
                   4758: ... rest of stderr output deleted ...
                   4759:          10q' conftest.err >conftest.er1
                   4760:     cat conftest.er1 >&5
                   4761:   fi
                   4762:   rm -f conftest.er1 conftest.err
                   4763:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4764:   test $ac_status = 0; }
                   4765: done
                   4766: rm -f a.out
                   4767: 
                   4768: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4769: # input file.  (Note that this only needs to work for GNU compilers.)
                   4770: ac_save_ext=$ac_ext
                   4771: ac_ext=F
                   4772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4773: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57      bertrand 4774: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15      bertrand 4775:   $as_echo_n "(cached) " >&6
1.1       bertrand 4776: else
1.15      bertrand 4777:   cat > conftest.$ac_ext <<_ACEOF
                   4778:       program main
                   4779: #ifndef __GNUC__
                   4780:        choke me
                   4781: #endif
1.14      bertrand 4782: 
1.15      bertrand 4783:       end
                   4784: _ACEOF
                   4785: if ac_fn_f77_try_compile "$LINENO"; then :
                   4786:   ac_compiler_gnu=yes
                   4787: else
                   4788:   ac_compiler_gnu=no
1.1       bertrand 4789: fi
1.15      bertrand 4790: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4791: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4792: 
                   4793: fi
1.15      bertrand 4794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4795: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4796: ac_ext=$ac_save_ext
                   4797: ac_test_FFLAGS=${FFLAGS+set}
                   4798: ac_save_FFLAGS=$FFLAGS
                   4799: FFLAGS=
                   4800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4801: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57      bertrand 4802: if ${ac_cv_prog_f77_g+:} false; then :
1.15      bertrand 4803:   $as_echo_n "(cached) " >&6
                   4804: else
                   4805:   FFLAGS=-g
                   4806: cat > conftest.$ac_ext <<_ACEOF
                   4807:       program main
1.1       bertrand 4808: 
1.15      bertrand 4809:       end
1.14      bertrand 4810: _ACEOF
1.15      bertrand 4811: if ac_fn_f77_try_compile "$LINENO"; then :
                   4812:   ac_cv_prog_f77_g=yes
1.1       bertrand 4813: else
1.15      bertrand 4814:   ac_cv_prog_f77_g=no
1.1       bertrand 4815: fi
1.15      bertrand 4816: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4817: 
                   4818: fi
1.15      bertrand 4819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4820: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4821: if test "$ac_test_FFLAGS" = set; then
                   4822:   FFLAGS=$ac_save_FFLAGS
                   4823: elif test $ac_cv_prog_f77_g = yes; then
                   4824:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4825:     FFLAGS="-g -O2"
                   4826:   else
                   4827:     FFLAGS="-g"
                   4828:   fi
                   4829: else
                   4830:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4831:     FFLAGS="-O2"
                   4832:   else
                   4833:     FFLAGS=
                   4834:   fi
1.1       bertrand 4835: fi
                   4836: 
1.15      bertrand 4837: if test $ac_compiler_gnu = yes; then
                   4838:   G77=yes
1.1       bertrand 4839: else
1.15      bertrand 4840:   G77=
1.1       bertrand 4841: fi
1.15      bertrand 4842: ac_ext=c
                   4843: ac_cpp='$CPP $CPPFLAGS'
                   4844: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4845: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4846: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4847: 
                   4848: 
1.15      bertrand 4849: ac_ext=${ac_fc_srcext-f}
                   4850: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4851: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4852: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4853: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4854:   for ac_prog in gfortran
1.15      bertrand 4855:   do
                   4856:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4857: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4859: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4860: if ${ac_cv_prog_FC+:} false; then :
1.15      bertrand 4861:   $as_echo_n "(cached) " >&6
                   4862: else
                   4863:   if test -n "$FC"; then
                   4864:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4865: else
1.15      bertrand 4866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4867: for as_dir in $PATH
                   4868: do
                   4869:   IFS=$as_save_IFS
                   4870:   test -z "$as_dir" && as_dir=.
                   4871:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4872:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4873:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4874:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4875:     break 2
                   4876:   fi
                   4877: done
                   4878:   done
                   4879: IFS=$as_save_IFS
1.1       bertrand 4880: 
                   4881: fi
1.15      bertrand 4882: fi
                   4883: FC=$ac_cv_prog_FC
                   4884: if test -n "$FC"; then
                   4885:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4886: $as_echo "$FC" >&6; }
1.14      bertrand 4887: else
1.15      bertrand 4888:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4889: $as_echo "no" >&6; }
1.14      bertrand 4890: fi
                   4891: 
1.1       bertrand 4892: 
1.15      bertrand 4893:     test -n "$FC" && break
                   4894:   done
                   4895: fi
                   4896: if test -z "$FC"; then
                   4897:   ac_ct_FC=$FC
1.23      bertrand 4898:   for ac_prog in gfortran
1.15      bertrand 4899: do
                   4900:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4901: set dummy $ac_prog; ac_word=$2
                   4902: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4903: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 4904: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15      bertrand 4905:   $as_echo_n "(cached) " >&6
                   4906: else
                   4907:   if test -n "$ac_ct_FC"; then
                   4908:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4909: else
                   4910: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4911: for as_dir in $PATH
                   4912: do
                   4913:   IFS=$as_save_IFS
                   4914:   test -z "$as_dir" && as_dir=.
                   4915:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4916:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4917:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4918:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4919:     break 2
                   4920:   fi
                   4921: done
                   4922:   done
                   4923: IFS=$as_save_IFS
1.1       bertrand 4924: 
1.15      bertrand 4925: fi
                   4926: fi
                   4927: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4928: if test -n "$ac_ct_FC"; then
                   4929:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4930: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4931: else
1.15      bertrand 4932:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4933: $as_echo "no" >&6; }
1.1       bertrand 4934: fi
1.14      bertrand 4935: 
1.1       bertrand 4936: 
1.15      bertrand 4937:   test -n "$ac_ct_FC" && break
                   4938: done
1.1       bertrand 4939: 
1.15      bertrand 4940:   if test "x$ac_ct_FC" = x; then
                   4941:     FC=""
                   4942:   else
                   4943:     case $cross_compiling:$ac_tool_warned in
                   4944: yes:)
                   4945: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4946: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4947: ac_tool_warned=yes ;;
1.14      bertrand 4948: esac
1.15      bertrand 4949:     FC=$ac_ct_FC
                   4950:   fi
1.14      bertrand 4951: fi
                   4952: 
                   4953: 
1.15      bertrand 4954: # Provide some information about the compiler.
                   4955: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4956: set X $ac_compile
                   4957: ac_compiler=$2
                   4958: for ac_option in --version -v -V -qversion; do
                   4959:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4960: case "(($ac_try" in
                   4961:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4962:   *) ac_try_echo=$ac_try;;
                   4963: esac
1.15      bertrand 4964: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4965: $as_echo "$ac_try_echo"; } >&5
                   4966:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4967:   ac_status=$?
1.15      bertrand 4968:   if test -s conftest.err; then
                   4969:     sed '10a\
                   4970: ... rest of stderr output deleted ...
                   4971:          10q' conftest.err >conftest.er1
                   4972:     cat conftest.er1 >&5
                   4973:   fi
                   4974:   rm -f conftest.er1 conftest.err
                   4975:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4976:   test $ac_status = 0; }
                   4977: done
                   4978: rm -f a.out
                   4979: 
                   4980: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4981: # input file.  (Note that this only needs to work for GNU compilers.)
                   4982: ac_save_ext=$ac_ext
                   4983: ac_ext=F
                   4984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   4985: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57      bertrand 4986: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15      bertrand 4987:   $as_echo_n "(cached) " >&6
1.14      bertrand 4988: else
1.15      bertrand 4989:   cat > conftest.$ac_ext <<_ACEOF
                   4990:       program main
                   4991: #ifndef __GNUC__
                   4992:        choke me
                   4993: #endif
1.14      bertrand 4994: 
1.15      bertrand 4995:       end
                   4996: _ACEOF
                   4997: if ac_fn_fc_try_compile "$LINENO"; then :
                   4998:   ac_compiler_gnu=yes
                   4999: else
                   5000:   ac_compiler_gnu=no
1.14      bertrand 5001: fi
                   5002: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 5003: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 5004: 
1.15      bertrand 5005: fi
                   5006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   5007: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   5008: ac_ext=$ac_save_ext
                   5009: ac_test_FCFLAGS=${FCFLAGS+set}
                   5010: ac_save_FCFLAGS=$FCFLAGS
                   5011: FCFLAGS=
                   5012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   5013: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57      bertrand 5014: if ${ac_cv_prog_fc_g+:} false; then :
1.15      bertrand 5015:   $as_echo_n "(cached) " >&6
                   5016: else
                   5017:   FCFLAGS=-g
                   5018: cat > conftest.$ac_ext <<_ACEOF
                   5019:       program main
1.1       bertrand 5020: 
1.15      bertrand 5021:       end
1.1       bertrand 5022: _ACEOF
1.15      bertrand 5023: if ac_fn_fc_try_compile "$LINENO"; then :
                   5024:   ac_cv_prog_fc_g=yes
1.1       bertrand 5025: else
1.15      bertrand 5026:   ac_cv_prog_fc_g=no
1.1       bertrand 5027: fi
1.14      bertrand 5028: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 5029: 
1.15      bertrand 5030: fi
                   5031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   5032: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   5033: if test "$ac_test_FCFLAGS" = set; then
                   5034:   FCFLAGS=$ac_save_FCFLAGS
                   5035: elif test $ac_cv_prog_fc_g = yes; then
                   5036:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5037:     FCFLAGS="-g -O2"
                   5038:   else
                   5039:     FCFLAGS="-g"
                   5040:   fi
1.1       bertrand 5041: else
1.15      bertrand 5042:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5043:     FCFLAGS="-O2"
                   5044:   else
                   5045:     FCFLAGS=
                   5046:   fi
1.1       bertrand 5047: fi
                   5048: 
1.15      bertrand 5049: ac_ext=c
                   5050: ac_cpp='$CPP $CPPFLAGS'
                   5051: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5052: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5053: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5054: 
                   5055: 
1.88      bertrand 5056: if test x"$F77" == x; then
                   5057:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
                   5058: fi
                   5059: 
                   5060: if test x"$FC" == x; then
1.36      bertrand 5061:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5062: fi
                   5063: 
1.15      bertrand 5064: if test x"$FC" != x""; then
                   5065:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5066:            awk -F. '{ printf("%s", $1);}'`
                   5067:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5068:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5069:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5070:        OPTIMISATION_F=-O3
                   5071:    else
1.23      bertrand 5072:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5073:            OPTIMISATION_F=-O3
                   5074:        else
1.23      bertrand 5075:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5076:                OPTIMISATION_F=-O2
                   5077:            else
1.36      bertrand 5078:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5079:            fi
1.14      bertrand 5080:        fi
                   5081:    fi
                   5082: fi
1.1       bertrand 5083: 
                   5084: 
1.15      bertrand 5085: ac_ext=c
                   5086: ac_cpp='$CPP $CPPFLAGS'
                   5087: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5088: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5089: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5091: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5092: # On Suns, sometimes $CPP names a directory.
                   5093: if test -n "$CPP" && test -d "$CPP"; then
                   5094:   CPP=
                   5095: fi
                   5096: if test -z "$CPP"; then
1.57      bertrand 5097:   if ${ac_cv_prog_CPP+:} false; then :
1.15      bertrand 5098:   $as_echo_n "(cached) " >&6
                   5099: else
                   5100:       # Double quotes because CPP needs to be expanded
                   5101:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5102:     do
                   5103:       ac_preproc_ok=false
                   5104: for ac_c_preproc_warn_flag in '' yes
                   5105: do
                   5106:   # Use a header file that comes with gcc, so configuring glibc
                   5107:   # with a fresh cross-compiler works.
                   5108:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5109:   # <limits.h> exists even on freestanding compilers.
                   5110:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5111:   # not just through cpp. "Syntax error" is here to catch this case.
                   5112:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5113: /* end confdefs.h.  */
1.15      bertrand 5114: #ifdef __STDC__
                   5115: # include <limits.h>
                   5116: #else
                   5117: # include <assert.h>
                   5118: #endif
                   5119:             Syntax error
1.1       bertrand 5120: _ACEOF
1.15      bertrand 5121: if ac_fn_c_try_cpp "$LINENO"; then :
                   5122: 
1.1       bertrand 5123: else
1.15      bertrand 5124:   # Broken: fails on valid input.
                   5125: continue
1.1       bertrand 5126: fi
1.36      bertrand 5127: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5128: 
1.15      bertrand 5129:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5130:   # can be detected and how.
                   5131:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5132: /* end confdefs.h.  */
                   5133: #include <ac_nonexistent.h>
                   5134: _ACEOF
                   5135: if ac_fn_c_try_cpp "$LINENO"; then :
                   5136:   # Broken: success on invalid input.
                   5137: continue
                   5138: else
                   5139:   # Passes both tests.
                   5140: ac_preproc_ok=:
                   5141: break
1.1       bertrand 5142: fi
1.36      bertrand 5143: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5144: 
1.15      bertrand 5145: done
                   5146: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5147: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5148: if $ac_preproc_ok; then :
                   5149:   break
1.1       bertrand 5150: fi
                   5151: 
1.15      bertrand 5152:     done
                   5153:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5154: 
1.15      bertrand 5155: fi
                   5156:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5157: else
1.15      bertrand 5158:   ac_cv_prog_CPP=$CPP
                   5159: fi
                   5160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5161: $as_echo "$CPP" >&6; }
                   5162: ac_preproc_ok=false
                   5163: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5164: do
1.15      bertrand 5165:   # Use a header file that comes with gcc, so configuring glibc
                   5166:   # with a fresh cross-compiler works.
                   5167:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5168:   # <limits.h> exists even on freestanding compilers.
                   5169:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5170:   # not just through cpp. "Syntax error" is here to catch this case.
                   5171:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5172: /* end confdefs.h.  */
                   5173: #ifdef __STDC__
                   5174: # include <limits.h>
                   5175: #else
                   5176: # include <assert.h>
                   5177: #endif
                   5178:             Syntax error
                   5179: _ACEOF
                   5180: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5181: 
1.15      bertrand 5182: else
                   5183:   # Broken: fails on valid input.
                   5184: continue
                   5185: fi
1.36      bertrand 5186: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5187: 
1.15      bertrand 5188:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5189:   # can be detected and how.
                   5190:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5191: /* end confdefs.h.  */
                   5192: #include <ac_nonexistent.h>
                   5193: _ACEOF
                   5194: if ac_fn_c_try_cpp "$LINENO"; then :
                   5195:   # Broken: success on invalid input.
                   5196: continue
                   5197: else
                   5198:   # Passes both tests.
                   5199: ac_preproc_ok=:
                   5200: break
                   5201: fi
1.36      bertrand 5202: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5203: 
                   5204: done
1.15      bertrand 5205: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5206: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5207: if $ac_preproc_ok; then :
1.1       bertrand 5208: 
1.15      bertrand 5209: else
                   5210:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5211: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5212: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57      bertrand 5213: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 5214: fi
1.14      bertrand 5215: 
1.15      bertrand 5216: ac_ext=c
                   5217: ac_cpp='$CPP $CPPFLAGS'
                   5218: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5219: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5220: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5221: 
                   5222: 
1.15      bertrand 5223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5224: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5225: 
                   5226: 
1.15      bertrand 5227: # Check whether --with-x was given.
                   5228: if test "${with_x+set}" = set; then :
                   5229:   withval=$with_x;
1.1       bertrand 5230: fi
1.14      bertrand 5231: 
1.15      bertrand 5232: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5233: if test "x$with_x" = xno; then
                   5234:   # The user explicitly disabled X.
                   5235:   have_x=disabled
1.1       bertrand 5236: else
1.15      bertrand 5237:   case $x_includes,$x_libraries in #(
1.57      bertrand 5238:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
                   5239:     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15      bertrand 5240:   $as_echo_n "(cached) " >&6
1.1       bertrand 5241: else
1.15      bertrand 5242:   # One or both of the vars are not set, and there is no cached value.
                   5243: ac_x_includes=no ac_x_libraries=no
                   5244: rm -f -r conftest.dir
                   5245: if mkdir conftest.dir; then
                   5246:   cd conftest.dir
                   5247:   cat >Imakefile <<'_ACEOF'
                   5248: incroot:
                   5249:    @echo incroot='${INCROOT}'
                   5250: usrlibdir:
                   5251:    @echo usrlibdir='${USRLIBDIR}'
                   5252: libdir:
                   5253:    @echo libdir='${LIBDIR}'
                   5254: _ACEOF
                   5255:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5256:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5257:     for ac_var in incroot usrlibdir libdir; do
                   5258:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5259:     done
                   5260:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5261:     for ac_extension in a so sl dylib la dll; do
                   5262:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5263:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5264:    ac_im_usrlibdir=$ac_im_libdir; break
                   5265:       fi
                   5266:     done
                   5267:     # Screen out bogus values from the imake configuration.  They are
                   5268:     # bogus both because they are the default anyway, and because
                   5269:     # using them would break gcc on systems where it needs fixed includes.
                   5270:     case $ac_im_incroot in
                   5271:    /usr/include) ac_x_includes= ;;
                   5272:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5273:     esac
                   5274:     case $ac_im_usrlibdir in
                   5275:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5276:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5277:     esac
                   5278:   fi
                   5279:   cd ..
                   5280:   rm -f -r conftest.dir
                   5281: fi
                   5282: 
                   5283: # Standard set of common directories for X headers.
                   5284: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5285: ac_x_header_dirs='
                   5286: /usr/X11/include
                   5287: /usr/X11R7/include
                   5288: /usr/X11R6/include
                   5289: /usr/X11R5/include
                   5290: /usr/X11R4/include
1.1       bertrand 5291: 
1.15      bertrand 5292: /usr/include/X11
                   5293: /usr/include/X11R7
                   5294: /usr/include/X11R6
                   5295: /usr/include/X11R5
                   5296: /usr/include/X11R4
1.1       bertrand 5297: 
1.15      bertrand 5298: /usr/local/X11/include
                   5299: /usr/local/X11R7/include
                   5300: /usr/local/X11R6/include
                   5301: /usr/local/X11R5/include
                   5302: /usr/local/X11R4/include
1.1       bertrand 5303: 
1.15      bertrand 5304: /usr/local/include/X11
                   5305: /usr/local/include/X11R7
                   5306: /usr/local/include/X11R6
                   5307: /usr/local/include/X11R5
                   5308: /usr/local/include/X11R4
1.1       bertrand 5309: 
1.15      bertrand 5310: /usr/X386/include
                   5311: /usr/x386/include
                   5312: /usr/XFree86/include/X11
1.1       bertrand 5313: 
1.15      bertrand 5314: /usr/include
                   5315: /usr/local/include
                   5316: /usr/unsupported/include
                   5317: /usr/athena/include
                   5318: /usr/local/x11r5/include
                   5319: /usr/lpp/Xamples/include
1.1       bertrand 5320: 
1.15      bertrand 5321: /usr/openwin/include
                   5322: /usr/openwin/share/include'
1.1       bertrand 5323: 
1.15      bertrand 5324: if test "$ac_x_includes" = no; then
                   5325:   # Guess where to find include files, by looking for Xlib.h.
                   5326:   # First, try using that file with no special directory specified.
                   5327:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5328: /* end confdefs.h.  */
                   5329: #include <X11/Xlib.h>
                   5330: _ACEOF
                   5331: if ac_fn_c_try_cpp "$LINENO"; then :
                   5332:   # We can compile using X headers with no special include directory.
                   5333: ac_x_includes=
1.1       bertrand 5334: else
1.15      bertrand 5335:   for ac_dir in $ac_x_header_dirs; do
                   5336:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5337:     ac_x_includes=$ac_dir
                   5338:     break
                   5339:   fi
                   5340: done
1.1       bertrand 5341: fi
1.36      bertrand 5342: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5343: fi # $ac_x_includes = no
1.1       bertrand 5344: 
1.15      bertrand 5345: if test "$ac_x_libraries" = no; then
                   5346:   # Check for the libraries.
                   5347:   # See if we find them without any special options.
                   5348:   # Don't add to $LIBS permanently.
                   5349:   ac_save_LIBS=$LIBS
                   5350:   LIBS="-lX11 $LIBS"
                   5351:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5352: /* end confdefs.h.  */
1.15      bertrand 5353: #include <X11/Xlib.h>
1.14      bertrand 5354: int
                   5355: main ()
                   5356: {
1.15      bertrand 5357: XrmInitialize ()
1.14      bertrand 5358:   ;
                   5359:   return 0;
                   5360: }
1.1       bertrand 5361: _ACEOF
1.15      bertrand 5362: if ac_fn_c_try_link "$LINENO"; then :
                   5363:   LIBS=$ac_save_LIBS
                   5364: # We can link X programs with no special library path.
                   5365: ac_x_libraries=
1.1       bertrand 5366: else
1.15      bertrand 5367:   LIBS=$ac_save_LIBS
                   5368: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5369: do
                   5370:   # Don't even attempt the hair of trying to link an X program!
                   5371:   for ac_extension in a so sl dylib la dll; do
                   5372:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5373:       ac_x_libraries=$ac_dir
                   5374:       break 2
                   5375:     fi
                   5376:   done
                   5377: done
                   5378: fi
                   5379: rm -f core conftest.err conftest.$ac_objext \
                   5380:     conftest$ac_exeext conftest.$ac_ext
                   5381: fi # $ac_x_libraries = no
1.1       bertrand 5382: 
1.15      bertrand 5383: case $ac_x_includes,$ac_x_libraries in #(
                   5384:   no,* | *,no | *\'*)
                   5385:     # Didn't find X, or a directory has "'" in its name.
                   5386:     ac_cv_have_x="have_x=no";; #(
                   5387:   *)
                   5388:     # Record where we found X for the cache.
                   5389:     ac_cv_have_x="have_x=yes\
                   5390:    ac_x_includes='$ac_x_includes'\
                   5391:    ac_x_libraries='$ac_x_libraries'"
                   5392: esac
1.1       bertrand 5393: fi
1.15      bertrand 5394: ;; #(
                   5395:     *) have_x=yes;;
                   5396:   esac
                   5397:   eval "$ac_cv_have_x"
                   5398: fi # $with_x != no
1.1       bertrand 5399: 
1.15      bertrand 5400: if test "$have_x" != yes; then
                   5401:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5402: $as_echo "$have_x" >&6; }
                   5403:   no_x=yes
1.14      bertrand 5404: else
1.15      bertrand 5405:   # If each of the values was on the command line, it overrides each guess.
                   5406:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5407:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5408:   # Update the cache value to reflect the command line values.
                   5409:   ac_cv_have_x="have_x=yes\
                   5410:    ac_x_includes='$x_includes'\
                   5411:    ac_x_libraries='$x_libraries'"
                   5412:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5413: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5414: fi
1.1       bertrand 5415: 
1.15      bertrand 5416: if test "$no_x" = yes; then
                   5417:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5418: 
1.15      bertrand 5419: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5420: 
1.15      bertrand 5421:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5422: else
1.15      bertrand 5423:   if test -n "$x_includes"; then
                   5424:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5425:   fi
                   5426: 
                   5427:   # It would also be nice to do this for all -L options, not just this one.
                   5428:   if test -n "$x_libraries"; then
                   5429:     X_LIBS="$X_LIBS -L$x_libraries"
                   5430:     # For Solaris; some versions of Sun CC require a space after -R and
                   5431:     # others require no space.  Words are not sufficient . . . .
                   5432:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5433: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5434:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5435:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5436:     ac_c_werror_flag=yes
                   5437:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5438: /* end confdefs.h.  */
1.1       bertrand 5439: 
1.15      bertrand 5440: int
                   5441: main ()
                   5442: {
1.1       bertrand 5443: 
1.15      bertrand 5444:   ;
                   5445:   return 0;
                   5446: }
                   5447: _ACEOF
                   5448: if ac_fn_c_try_link "$LINENO"; then :
                   5449:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5450: $as_echo "no" >&6; }
                   5451:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5452: else
1.15      bertrand 5453:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5454:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5455: /* end confdefs.h.  */
1.1       bertrand 5456: 
1.14      bertrand 5457: int
                   5458: main ()
                   5459: {
1.15      bertrand 5460: 
                   5461:   ;
1.14      bertrand 5462:   return 0;
                   5463: }
                   5464: _ACEOF
1.15      bertrand 5465: if ac_fn_c_try_link "$LINENO"; then :
                   5466:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5467: $as_echo "yes" >&6; }
                   5468:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5469: else
1.15      bertrand 5470:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5471: $as_echo "neither works" >&6; }
1.14      bertrand 5472: fi
1.15      bertrand 5473: rm -f core conftest.err conftest.$ac_objext \
                   5474:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5475: fi
1.15      bertrand 5476: rm -f core conftest.err conftest.$ac_objext \
                   5477:     conftest$ac_exeext conftest.$ac_ext
                   5478:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5479:     LIBS=$ac_xsave_LIBS
                   5480:   fi
1.1       bertrand 5481: 
1.15      bertrand 5482:   # Check for system-dependent libraries X programs must link with.
                   5483:   # Do this before checking for the system-independent R6 libraries
                   5484:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5485: 
1.15      bertrand 5486:   if test "$ISC" = yes; then
                   5487:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5488:   else
                   5489:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5490:     # libraries were built with DECnet support.  And Karl Berry says
                   5491:     # the Alpha needs dnet_stub (dnet does not exist).
                   5492:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5493:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5494: /* end confdefs.h.  */
1.1       bertrand 5495: 
1.15      bertrand 5496: /* Override any GCC internal prototype to avoid an error.
                   5497:    Use char because int might match the return type of a GCC
                   5498:    builtin and then its argument prototype would still apply.  */
                   5499: #ifdef __cplusplus
                   5500: extern "C"
                   5501: #endif
                   5502: char XOpenDisplay ();
                   5503: int
                   5504: main ()
                   5505: {
                   5506: return XOpenDisplay ();
                   5507:   ;
                   5508:   return 0;
                   5509: }
1.1       bertrand 5510: _ACEOF
1.15      bertrand 5511: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5512: 
                   5513: else
1.15      bertrand 5514:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5515: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57      bertrand 5516: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15      bertrand 5517:   $as_echo_n "(cached) " >&6
                   5518: else
                   5519:   ac_check_lib_save_LIBS=$LIBS
                   5520: LIBS="-ldnet  $LIBS"
                   5521: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5522: /* end confdefs.h.  */
1.14      bertrand 5523: 
1.15      bertrand 5524: /* Override any GCC internal prototype to avoid an error.
                   5525:    Use char because int might match the return type of a GCC
                   5526:    builtin and then its argument prototype would still apply.  */
                   5527: #ifdef __cplusplus
                   5528: extern "C"
                   5529: #endif
                   5530: char dnet_ntoa ();
                   5531: int
                   5532: main ()
                   5533: {
                   5534: return dnet_ntoa ();
                   5535:   ;
                   5536:   return 0;
                   5537: }
1.1       bertrand 5538: _ACEOF
1.15      bertrand 5539: if ac_fn_c_try_link "$LINENO"; then :
                   5540:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5541: else
1.15      bertrand 5542:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5543: fi
1.15      bertrand 5544: rm -f core conftest.err conftest.$ac_objext \
                   5545:     conftest$ac_exeext conftest.$ac_ext
                   5546: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5547: fi
1.15      bertrand 5548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5549: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57      bertrand 5550: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15      bertrand 5551:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5552: fi
                   5553: 
1.15      bertrand 5554:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5555:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5556: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57      bertrand 5557: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15      bertrand 5558:   $as_echo_n "(cached) " >&6
1.14      bertrand 5559: else
1.15      bertrand 5560:   ac_check_lib_save_LIBS=$LIBS
                   5561: LIBS="-ldnet_stub  $LIBS"
                   5562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5563: /* end confdefs.h.  */
1.15      bertrand 5564: 
                   5565: /* Override any GCC internal prototype to avoid an error.
                   5566:    Use char because int might match the return type of a GCC
                   5567:    builtin and then its argument prototype would still apply.  */
                   5568: #ifdef __cplusplus
                   5569: extern "C"
                   5570: #endif
                   5571: char dnet_ntoa ();
1.1       bertrand 5572: int
                   5573: main ()
                   5574: {
1.15      bertrand 5575: return dnet_ntoa ();
1.1       bertrand 5576:   ;
                   5577:   return 0;
                   5578: }
                   5579: _ACEOF
1.15      bertrand 5580: if ac_fn_c_try_link "$LINENO"; then :
                   5581:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5582: else
1.15      bertrand 5583:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5584: fi
                   5585: rm -f core conftest.err conftest.$ac_objext \
                   5586:     conftest$ac_exeext conftest.$ac_ext
                   5587: LIBS=$ac_check_lib_save_LIBS
                   5588: fi
                   5589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5590: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57      bertrand 5591: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15      bertrand 5592:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5593: fi
1.14      bertrand 5594: 
1.15      bertrand 5595:     fi
1.1       bertrand 5596: fi
1.15      bertrand 5597: rm -f core conftest.err conftest.$ac_objext \
                   5598:     conftest$ac_exeext conftest.$ac_ext
                   5599:     LIBS="$ac_xsave_LIBS"
                   5600: 
                   5601:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5602:     # to get the SysV transport functions.
                   5603:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5604:     # needs -lnsl.
                   5605:     # The nsl library prevents programs from opening the X display
                   5606:     # on Irix 5.2, according to T.E. Dickey.
                   5607:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5608:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5609:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57      bertrand 5610: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1       bertrand 5611: 
                   5612: fi
                   5613: 
1.15      bertrand 5614:     if test $ac_cv_func_gethostbyname = no; then
                   5615:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5616: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57      bertrand 5617: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15      bertrand 5618:   $as_echo_n "(cached) " >&6
1.1       bertrand 5619: else
1.15      bertrand 5620:   ac_check_lib_save_LIBS=$LIBS
                   5621: LIBS="-lnsl  $LIBS"
                   5622: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5623: /* end confdefs.h.  */
1.15      bertrand 5624: 
                   5625: /* Override any GCC internal prototype to avoid an error.
                   5626:    Use char because int might match the return type of a GCC
                   5627:    builtin and then its argument prototype would still apply.  */
                   5628: #ifdef __cplusplus
                   5629: extern "C"
                   5630: #endif
                   5631: char gethostbyname ();
1.1       bertrand 5632: int
                   5633: main ()
                   5634: {
1.15      bertrand 5635: return gethostbyname ();
1.1       bertrand 5636:   ;
                   5637:   return 0;
                   5638: }
                   5639: _ACEOF
1.15      bertrand 5640: if ac_fn_c_try_link "$LINENO"; then :
                   5641:   ac_cv_lib_nsl_gethostbyname=yes
                   5642: else
                   5643:   ac_cv_lib_nsl_gethostbyname=no
                   5644: fi
                   5645: rm -f core conftest.err conftest.$ac_objext \
                   5646:     conftest$ac_exeext conftest.$ac_ext
                   5647: LIBS=$ac_check_lib_save_LIBS
                   5648: fi
                   5649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5650: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57      bertrand 5651: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15      bertrand 5652:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5653: fi
                   5654: 
                   5655:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5656:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5657: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57      bertrand 5658: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15      bertrand 5659:   $as_echo_n "(cached) " >&6
                   5660: else
                   5661:   ac_check_lib_save_LIBS=$LIBS
                   5662: LIBS="-lbsd  $LIBS"
                   5663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5664: /* end confdefs.h.  */
1.15      bertrand 5665: 
                   5666: /* Override any GCC internal prototype to avoid an error.
                   5667:    Use char because int might match the return type of a GCC
                   5668:    builtin and then its argument prototype would still apply.  */
                   5669: #ifdef __cplusplus
                   5670: extern "C"
                   5671: #endif
                   5672: char gethostbyname ();
1.1       bertrand 5673: int
                   5674: main ()
                   5675: {
1.15      bertrand 5676: return gethostbyname ();
1.1       bertrand 5677:   ;
                   5678:   return 0;
                   5679: }
                   5680: _ACEOF
1.15      bertrand 5681: if ac_fn_c_try_link "$LINENO"; then :
                   5682:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5683: else
1.15      bertrand 5684:   ac_cv_lib_bsd_gethostbyname=no
                   5685: fi
                   5686: rm -f core conftest.err conftest.$ac_objext \
                   5687:     conftest$ac_exeext conftest.$ac_ext
                   5688: LIBS=$ac_check_lib_save_LIBS
                   5689: fi
                   5690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5691: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57      bertrand 5692: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15      bertrand 5693:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5694: fi
                   5695: 
                   5696:       fi
                   5697:     fi
                   5698: 
                   5699:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5700:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5701:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5702:     # on later versions), says Simon Leinen: it contains gethostby*
                   5703:     # variants that don't use the name server (or something).  -lsocket
                   5704:     # must be given before -lnsl if both are needed.  We assume that
                   5705:     # if connect needs -lnsl, so does gethostbyname.
                   5706:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57      bertrand 5707: if test "x$ac_cv_func_connect" = xyes; then :
1.14      bertrand 5708: 
1.1       bertrand 5709: fi
                   5710: 
1.15      bertrand 5711:     if test $ac_cv_func_connect = no; then
                   5712:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5713: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57      bertrand 5714: if ${ac_cv_lib_socket_connect+:} false; then :
1.15      bertrand 5715:   $as_echo_n "(cached) " >&6
1.14      bertrand 5716: else
1.15      bertrand 5717:   ac_check_lib_save_LIBS=$LIBS
                   5718: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5720: /* end confdefs.h.  */
1.1       bertrand 5721: 
1.15      bertrand 5722: /* Override any GCC internal prototype to avoid an error.
                   5723:    Use char because int might match the return type of a GCC
                   5724:    builtin and then its argument prototype would still apply.  */
                   5725: #ifdef __cplusplus
                   5726: extern "C"
                   5727: #endif
                   5728: char connect ();
1.14      bertrand 5729: int
                   5730: main ()
                   5731: {
1.15      bertrand 5732: return connect ();
1.14      bertrand 5733:   ;
                   5734:   return 0;
                   5735: }
                   5736: _ACEOF
1.15      bertrand 5737: if ac_fn_c_try_link "$LINENO"; then :
                   5738:   ac_cv_lib_socket_connect=yes
                   5739: else
                   5740:   ac_cv_lib_socket_connect=no
                   5741: fi
                   5742: rm -f core conftest.err conftest.$ac_objext \
                   5743:     conftest$ac_exeext conftest.$ac_ext
                   5744: LIBS=$ac_check_lib_save_LIBS
                   5745: fi
                   5746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5747: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57      bertrand 5748: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15      bertrand 5749:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5750: fi
                   5751: 
                   5752:     fi
                   5753: 
                   5754:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5755:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57      bertrand 5756: if test "x$ac_cv_func_remove" = xyes; then :
1.15      bertrand 5757: 
                   5758: fi
                   5759: 
                   5760:     if test $ac_cv_func_remove = no; then
                   5761:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5762: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57      bertrand 5763: if ${ac_cv_lib_posix_remove+:} false; then :
1.15      bertrand 5764:   $as_echo_n "(cached) " >&6
                   5765: else
                   5766:   ac_check_lib_save_LIBS=$LIBS
                   5767: LIBS="-lposix  $LIBS"
                   5768: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5769: /* end confdefs.h.  */
1.15      bertrand 5770: 
                   5771: /* Override any GCC internal prototype to avoid an error.
                   5772:    Use char because int might match the return type of a GCC
                   5773:    builtin and then its argument prototype would still apply.  */
                   5774: #ifdef __cplusplus
                   5775: extern "C"
                   5776: #endif
                   5777: char remove ();
1.1       bertrand 5778: int
                   5779: main ()
                   5780: {
1.15      bertrand 5781: return remove ();
1.1       bertrand 5782:   ;
                   5783:   return 0;
                   5784: }
                   5785: _ACEOF
1.15      bertrand 5786: if ac_fn_c_try_link "$LINENO"; then :
                   5787:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5788: else
1.15      bertrand 5789:   ac_cv_lib_posix_remove=no
                   5790: fi
                   5791: rm -f core conftest.err conftest.$ac_objext \
                   5792:     conftest$ac_exeext conftest.$ac_ext
                   5793: LIBS=$ac_check_lib_save_LIBS
                   5794: fi
                   5795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5796: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57      bertrand 5797: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15      bertrand 5798:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5799: fi
1.1       bertrand 5800: 
1.15      bertrand 5801:     fi
1.14      bertrand 5802: 
1.15      bertrand 5803:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5804:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57      bertrand 5805: if test "x$ac_cv_func_shmat" = xyes; then :
1.14      bertrand 5806: 
                   5807: fi
                   5808: 
1.15      bertrand 5809:     if test $ac_cv_func_shmat = no; then
                   5810:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5811: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57      bertrand 5812: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15      bertrand 5813:   $as_echo_n "(cached) " >&6
                   5814: else
                   5815:   ac_check_lib_save_LIBS=$LIBS
                   5816: LIBS="-lipc  $LIBS"
                   5817: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5818: /* end confdefs.h.  */
1.15      bertrand 5819: 
                   5820: /* Override any GCC internal prototype to avoid an error.
                   5821:    Use char because int might match the return type of a GCC
                   5822:    builtin and then its argument prototype would still apply.  */
                   5823: #ifdef __cplusplus
                   5824: extern "C"
                   5825: #endif
                   5826: char shmat ();
1.1       bertrand 5827: int
                   5828: main ()
                   5829: {
1.15      bertrand 5830: return shmat ();
1.1       bertrand 5831:   ;
                   5832:   return 0;
                   5833: }
                   5834: _ACEOF
1.15      bertrand 5835: if ac_fn_c_try_link "$LINENO"; then :
                   5836:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5837: else
1.15      bertrand 5838:   ac_cv_lib_ipc_shmat=no
                   5839: fi
                   5840: rm -f core conftest.err conftest.$ac_objext \
                   5841:     conftest$ac_exeext conftest.$ac_ext
                   5842: LIBS=$ac_check_lib_save_LIBS
                   5843: fi
                   5844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5845: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57      bertrand 5846: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15      bertrand 5847:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5848: fi
1.14      bertrand 5849: 
1.15      bertrand 5850:     fi
                   5851:   fi
1.1       bertrand 5852: 
1.15      bertrand 5853:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5854:   ac_save_LDFLAGS=$LDFLAGS
                   5855:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5856:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5857:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5858:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5859:   # These have to be linked with before -lX11, unlike the other
                   5860:   # libraries we check for below, so use a different variable.
                   5861:   # John Interrante, Karl Berry
                   5862:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5863: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57      bertrand 5864: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15      bertrand 5865:   $as_echo_n "(cached) " >&6
1.1       bertrand 5866: else
1.15      bertrand 5867:   ac_check_lib_save_LIBS=$LIBS
                   5868: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5869: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5870: /* end confdefs.h.  */
1.15      bertrand 5871: 
                   5872: /* Override any GCC internal prototype to avoid an error.
                   5873:    Use char because int might match the return type of a GCC
                   5874:    builtin and then its argument prototype would still apply.  */
                   5875: #ifdef __cplusplus
                   5876: extern "C"
                   5877: #endif
                   5878: char IceConnectionNumber ();
1.1       bertrand 5879: int
                   5880: main ()
                   5881: {
1.15      bertrand 5882: return IceConnectionNumber ();
1.1       bertrand 5883:   ;
                   5884:   return 0;
                   5885: }
                   5886: _ACEOF
1.15      bertrand 5887: if ac_fn_c_try_link "$LINENO"; then :
                   5888:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5889: else
1.15      bertrand 5890:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5891: fi
                   5892: rm -f core conftest.err conftest.$ac_objext \
                   5893:     conftest$ac_exeext conftest.$ac_ext
                   5894: LIBS=$ac_check_lib_save_LIBS
                   5895: fi
                   5896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5897: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57      bertrand 5898: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15      bertrand 5899:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5900: fi
                   5901: 
                   5902:   LDFLAGS=$ac_save_LDFLAGS
                   5903: 
                   5904: fi
                   5905: 
1.14      bertrand 5906: 
1.15      bertrand 5907: if test "$ac_x_includes" != "no"; then
                   5908:    if test x"$ac_x_includes" != x; then
                   5909:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5910:        includeX="-I$ac_x_includes"
                   5911:    fi
1.1       bertrand 5912: fi
1.15      bertrand 5913: if test "$ac_x_libraries" != "no"; then
                   5914:    if test x"$ac_x_libraries" != x; then
                   5915:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5916:    fi
1.1       bertrand 5917: fi
1.15      bertrand 5918: 
1.64      bertrand 5919: 
1.69      bertrand 5920: # Check whether --with-32bits-abi was given.
                   5921: if test "${with_32bits_abi+set}" = set; then :
                   5922:   withval=$with_32bits_abi;
1.64      bertrand 5923: if test "$with-32bits-abi" = "no"; then
1.66      bertrand 5924:    ABI=
1.64      bertrand 5925: else
1.65      bertrand 5926:    ABI=-m32
                   5927: fi
1.64      bertrand 5928: else
                   5929: 
1.68      bertrand 5930:    ABI=
1.64      bertrand 5931: 
                   5932: 
                   5933: fi
                   5934: 
                   5935: 
1.68      bertrand 5936: if test x$ABI = x; then
1.66      bertrand 5937: 
1.69      bertrand 5938: # Check whether --with-64bits-abi was given.
                   5939: if test "${with_64bits_abi+set}" = set; then :
                   5940:   withval=$with_64bits_abi;
1.67      bertrand 5941: if test "$with-64bits-abi" = "no"; then
                   5942:    ABI=
                   5943: else
                   5944:    ABI=-m64
                   5945: fi
                   5946: else
                   5947: 
1.68      bertrand 5948:    ABI=
1.67      bertrand 5949: 
                   5950: 
                   5951: fi
                   5952: 
1.68      bertrand 5953: fi
1.67      bertrand 5954: 
1.69      bertrand 5955: LDFLAGS="$LDFLAGS $ABI"
                   5956: 
1.67      bertrand 5957: 
1.88      bertrand 5958: # Check whether --with-rpltools was given.
                   5959: if test "${with_rpltools+set}" = set; then :
                   5960:   withval=$with_rpltools;
                   5961: if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then
                   5962:    as_fn_error $? "You have to specify rpltools path !" "$LINENO" 5
                   5963: else
                   5964:    RPLTOOLS=$with_rpltools
                   5965: fi
                   5966: else
                   5967: 
                   5968:    RPLTOOLS=\$\(top_builddir\)
                   5969: 
                   5970: 
                   5971: fi
                   5972: 
                   5973: 
                   5974: 
                   5975: 
                   5976: # Check whether --enable-rplcas was given.
                   5977: if test "${enable_rplcas+set}" = set; then :
                   5978:   enableval=$enable_rplcas;
                   5979: if test "$enableval" = "no"; then
1.67      bertrand 5980:    RPLCAS=-URPLCAS
                   5981:    LIBRPLCAS=
                   5982: else
                   5983:    RPLCAS=-DRPLCAS
                   5984:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                   5985: fi
                   5986: else
                   5987: 
                   5988:    RPLCAS=-URPLCAS
                   5989:    LIBRPLCAS=
                   5990: 
                   5991: 
                   5992: fi
                   5993: 
                   5994: 
                   5995: 
                   5996: 
                   5997: 
1.65      bertrand 5998: 
1.89      bertrand 5999: # Check whether --enable-shared-memory was given.
                   6000: if test "${enable_shared_memory+set}" = set; then :
                   6001:   enableval=$enable_shared_memory;
                   6002: if test "$enableval" = "no"; then
                   6003:    SHARED_MEMORY="-USHARED_MEMORY"
                   6004: else
                   6005:    SHARED_MEMORY="-DSHARED_MEMORY"
                   6006: fi
                   6007: else
                   6008: 
                   6009:    SHARED_MEMORY="-USHARED_MEMORY"
                   6010: fi
                   6011: 
                   6012: 
                   6013: 
                   6014: 
1.15      bertrand 6015: # Check whether --enable-optimization was given.
                   6016: if test "${enable_optimization+set}" = set; then :
                   6017:   enableval=$enable_optimization;
                   6018: if test "$enableval" = "no"; then
1.69      bertrand 6019:    CFLAGS=$ABI
                   6020:    FFLAGS=$ABI
                   6021:    CXXFLAGS=$ABI
                   6022:    FCFLAGS=$ABI
                   6023: else
                   6024:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                   6025:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                   6026:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                   6027:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand 6028: fi
1.15      bertrand 6029: else
1.14      bertrand 6030: 
1.69      bertrand 6031:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                   6032:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                   6033:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                   6034:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand 6035: 
                   6036: 
1.15      bertrand 6037: fi
1.1       bertrand 6038: 
                   6039: 
1.87      bertrand 6040: # Check whether --enable-sysv-ipcs was given.
                   6041: if test "${enable_sysv_ipcs+set}" = set; then :
                   6042:   enableval=$enable_sysv_ipcs;
1.36      bertrand 6043: if test "$enableval" = "no"; then
1.88      bertrand 6044:    IPCS_SYSV=-UIPCS_SYSV
                   6045:    POSIX_IPCS=no
1.36      bertrand 6046: else
1.88      bertrand 6047:    IPCS_SYSV=-DIPCS_SYSV
                   6048:    POSIX_IPCS=yes
1.36      bertrand 6049: fi
                   6050: else
1.85      bertrand 6051:   REG=$LDFLAGS
1.88      bertrand 6052: POSIX_IPCS=guessed
1.85      bertrand 6053: LDFLAGS=-lrt
                   6054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5
                   6055: $as_echo_n "checking for POSIX semaphores and shared objects... " >&6; }
                   6056: if test "$cross_compiling" = yes; then :
                   6057:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6058: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6059: as_fn_error $? "cannot run test program while cross compiling
                   6060: See \`config.log' for more details" "$LINENO" 5; }
                   6061: else
                   6062:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.81      bertrand 6063: /* end confdefs.h.  */
                   6064: #include <sys/mman.h>
                   6065: #include <sys/stat.h>
                   6066: #include <fcntl.h>
1.82      bertrand 6067: 
1.81      bertrand 6068: int
                   6069: main ()
                   6070: {
1.85      bertrand 6071:  int fd; char *sem = "/test";
1.81      bertrand 6072: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
                   6073:   close(fd);
                   6074:   shm_unlink(sem);
1.85      bertrand 6075:   fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
                   6076:   close(fd);
                   6077:   sem_unlink(sem);
1.81      bertrand 6078:   return(0);
                   6079: 
                   6080:   ;
                   6081:   return 0;
                   6082: }
                   6083: _ACEOF
1.85      bertrand 6084: if ac_fn_c_try_run "$LINENO"; then :
1.81      bertrand 6085:   IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6086: $as_echo "yes" >&6; }
                   6087: else
                   6088:   IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6089: $as_echo "no" >&6; }
                   6090: 
                   6091: fi
1.85      bertrand 6092: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6093:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6094: fi
                   6095: 
                   6096: LDFLAGS=$REG
1.81      bertrand 6097: 
1.36      bertrand 6098: fi
                   6099: 
                   6100: 
1.88      bertrand 6101: if test "$IPCS_SYSV" = "-UIPCS_SYSV" -a "$POSIX_IPCS" = "guessed"; then
1.81      bertrand 6102: REG=$LDFLAGS
                   6103: LDFLAGS=-pthread
1.83      bertrand 6104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
                   6105: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
                   6106: if test "$cross_compiling" = yes; then :
                   6107:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6108: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6109: as_fn_error $? "cannot run test program while cross compiling
                   6110: See \`config.log' for more details" "$LINENO" 5; }
                   6111: else
                   6112:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6113: /* end confdefs.h.  */
                   6114: #include <semaphore.h>
                   6115: 
                   6116: int
                   6117: main ()
                   6118: {
                   6119:  sem_t sem;
1.81      bertrand 6120:  if (sem_init(&sem, 1, 0) != 0) return(1);
                   6121:  sem_destroy(&sem);
                   6122:   return(0);
1.83      bertrand 6123: 
                   6124:   ;
                   6125:   return 0;
                   6126: }
                   6127: _ACEOF
                   6128: if ac_fn_c_try_run "$LINENO"; then :
                   6129:   SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6130: $as_echo "yes" >&6; }
                   6131: else
                   6132:   SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6133: $as_echo "no" >&6; }
                   6134: 
                   6135: fi
                   6136: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6137:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6138: fi
                   6139: 
1.81      bertrand 6140: LDFLAGS=$REG
                   6141: REG=""
                   6142: else
                   6143:    SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   6144: fi
                   6145: 
1.30      bertrand 6146: # Check whether --enable-full-static was given.
                   6147: if test "${enable_full_static+set}" = set; then :
                   6148:   enableval=$enable_full_static;
                   6149: if test "$enableval" = "no"; then
                   6150:    STATIC=no
                   6151: else
                   6152:    STATIC=yes
                   6153: fi
                   6154: else
                   6155:   STATIC=no
                   6156: fi
                   6157: 
                   6158: 
1.15      bertrand 6159: # Check whether --enable-final-encoding was given.
                   6160: if test "${enable_final_encoding+set}" = set; then :
                   6161:   enableval=$enable_final_encoding;
                   6162: if test "$enableval" = "no"; then
                   6163:    FINAL_ENCODING="\$(shell locale charmap | \
                   6164:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 6165:    FORCED_FINAL_ENCODING=0
1.1       bertrand 6166: else
1.15      bertrand 6167:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 6168:    FORCED_FINAL_ENCODING=1
1.15      bertrand 6169: fi
1.1       bertrand 6170: else
1.35      bertrand 6171: 
                   6172: FORCED_FINAL_ENCODING=0
                   6173: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 6174:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   6175: fi
                   6176: 
1.14      bertrand 6177: 
1.15      bertrand 6178: # Check whether --enable-tex was given.
                   6179: if test "${enable_tex+set}" = set; then :
                   6180:   enableval=$enable_tex;
                   6181: if test "$enableval" = "no"; then
                   6182:    TEX_SUPPORT=no
                   6183: else
                   6184:    TEX_SUPPORT=yes
1.1       bertrand 6185: fi
1.15      bertrand 6186: else
                   6187:   TEX_SUPPORT=guessed
                   6188: fi
                   6189: 
1.14      bertrand 6190: 
1.15      bertrand 6191: # Check whether --enable-vim was given.
                   6192: if test "${enable_vim+set}" = set; then :
                   6193:   enableval=$enable_vim;
                   6194: if test "$enableval" = "no"; then
                   6195:    VIM_SUPPORT=no
                   6196: else
                   6197:    VIM_SUPPORT=yes
                   6198: fi
                   6199: else
                   6200:   VIM_SUPPORT=guessed
1.1       bertrand 6201: fi
                   6202: 
1.15      bertrand 6203: 
                   6204: # Check whether --enable-embedded-gnuplot was given.
                   6205: if test "${enable_embedded_gnuplot+set}" = set; then :
                   6206:   enableval=$enable_embedded_gnuplot;
                   6207: if test "$enableval" = "no"; then
                   6208:    MYGNUPLOT=no
                   6209: else
                   6210:    MYGNUPLOT=yes
                   6211: fi
1.1       bertrand 6212: else
                   6213: 
1.15      bertrand 6214: MYGNUPLOT=yes
                   6215: fi
                   6216: 
1.14      bertrand 6217: 
1.15      bertrand 6218: # Check whether --enable-gnuplot was given.
                   6219: if test "${enable_gnuplot+set}" = set; then :
                   6220:   enableval=$enable_gnuplot;
                   6221: if test "$enableval" = "no"; then
                   6222:    GNUPLOT_SUPPORT=no
                   6223:    MYGNUPLOT=no
                   6224:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6225: else
                   6226:    GNUPLOT_SUPPORT=yes
                   6227:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6228: fi
1.1       bertrand 6229: else
                   6230: 
1.15      bertrand 6231: if test "$MYGNUPLOT" = "yes"; then
                   6232:    GNUPLOT_SUPPORT=yes
                   6233:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6234: else
                   6235:    GNUPLOT_SUPPORT=guessed
                   6236:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6237: fi
1.1       bertrand 6238: fi
                   6239: 
1.15      bertrand 6240: 
1.80      bertrand 6241: libX=""
                   6242: LIBMOTIF=""
                   6243: INCMOTIF=""
                   6244: BUILD_OPENMOTIF=""
                   6245: 
1.15      bertrand 6246: # Check whether --enable-motif was given.
                   6247: if test "${enable_motif+set}" = set; then :
                   6248:   enableval=$enable_motif;
                   6249: if test "$enableval" = "no"; then
                   6250:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6251: else
1.80      bertrand 6252:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6253: fi
1.1       bertrand 6254: else
1.80      bertrand 6255:   if test "$have_x" == "yes"; then
                   6256:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.15      bertrand 6257: else
1.80      bertrand 6258:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.15      bertrand 6259: fi
                   6260: fi
1.14      bertrand 6261: 
1.80      bertrand 6262: 
                   6263: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6264:    libX="$X_LIBS -lXt -lX11"
                   6265:    LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
                   6266:            \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
                   6267:    INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
                   6268:            -I\$(top_builddir)/tools/$OPENMOTIF/lib \
                   6269:            -I\$(top_builddir)/tools/$LIBXPM/include"
                   6270:    BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
                   6271: 
                   6272: 
                   6273: subdirs="$subdirs tools/$LIBXPM"
                   6274: 
                   6275:    subdirs="$subdirs tools/$OPENMOTIF"
                   6276: 
1.1       bertrand 6277: fi
                   6278: 
1.15      bertrand 6279: # Check whether --enable-experimental was given.
                   6280: if test "${enable_experimental+set}" = set; then :
                   6281:   enableval=$enable_experimental;
                   6282: if test "$enableval" = "no"; then
                   6283:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6284: else
                   6285:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6286: fi
1.14      bertrand 6287: else
1.15      bertrand 6288:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6289: fi
                   6290: 
1.1       bertrand 6291: 
1.15      bertrand 6292: # Check whether --enable-debug was given.
                   6293: if test "${enable_debug+set}" = set; then :
                   6294:   enableval=$enable_debug;
                   6295: if test "$enableval" = "no"; then
1.24      bertrand 6296:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6297: else
1.24      bertrand 6298:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6299: fi
                   6300: else
1.24      bertrand 6301:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6302: fi
1.1       bertrand 6303: 
1.15      bertrand 6304: 
                   6305: # Check whether --enable-profile was given.
                   6306: if test "${enable_profile+set}" = set; then :
                   6307:   enableval=$enable_profile;
                   6308: if test "$enableval" = "no"; then
                   6309:    PROFILAGE=""
                   6310: else
                   6311:    PROFILAGE="-pg"
                   6312: fi
                   6313: else
                   6314:   PROFILAGE=""
1.1       bertrand 6315: fi
                   6316: 
1.14      bertrand 6317: 
                   6318: 
1.15      bertrand 6319: 
                   6320: if test ! -d tools; then
                   6321:    mkdir tools
                   6322: fi
                   6323: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6324:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6325:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6326:    (cd "$srcdir/tools/"$NCURSES && \
                   6327:            for i in ../$NCURSES*.patch.gz;
                   6328:            do gunzip -c $i | patch -p1;
                   6329:            done);
1.15      bertrand 6330: fi
                   6331: if test ! -d "$srcdir"/tools/$READLINE; then
                   6332:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6333:            (cd "$srcdir/tools" && tar -xf -)
                   6334: fi
                   6335: if test ! -d "$srcdir"/tools/$UNITS; then
                   6336:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6337:            (cd "$srcdir/tools" && tar -xf -)
                   6338: fi
                   6339: if test ! -d "$srcdir"/tools/$GSL; then
                   6340:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6341:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6342:    if test $(uname) = "OS/2"; then
                   6343:        (cd "$srcdir"/tools/$GSL; \
                   6344:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6345:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6346:                \mv -f $TMP ltmain.sh)
                   6347:    fi
1.15      bertrand 6348: fi
                   6349: if test ! -d "$srcdir"/tools/$GPP; then
                   6350:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6351:            (cd "$srcdir/tools" && tar -xf -)
                   6352: fi
                   6353: if test ! -d "$srcdir"/tools/$FILE; then
                   6354:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6355:            (cd "$srcdir/tools" && tar -xf - )
                   6356:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6357: fi
                   6358: if test ! -d "$srcdir"/tools/$ICONV; then
                   6359:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6360:            (cd "$srcdir/tools" && tar -xf -)
                   6361: fi
                   6362: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6363:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6364:            (cd "$srcdir/tools" && tar -xf -)
                   6365: fi
1.76      bertrand 6366: if test ! -d "$srcdir"/tools/$SIGSEGV; then
                   6367:    gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
                   6368:            (cd "$srcdir/tools" && tar -xf -)
                   6369: fi
1.80      bertrand 6370: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
                   6371:    gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
                   6372:            (cd "$srcdir/tools" && tar -xf -)
                   6373: fi
                   6374: if test ! -d "$srcdir"/tools/$LIBXPM; then
                   6375:    gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
                   6376:            (cd "$srcdir/tools" && tar -xf -)
                   6377: fi
1.15      bertrand 6378: if test ! -d tools/$OPENSSL; then
                   6379:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6380:            (cd tools && tar -xf -)
1.1       bertrand 6381: fi
1.55      bertrand 6382: if test ! -d rplcas; then
                   6383:    mkdir rplcas
                   6384: fi
                   6385: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6386:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6387:            (cd "$srcdir/rplcas" && tar -xf -)
                   6388: fi
                   6389: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6390:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6391:            (cd "$srcdir/rplcas" && tar -xf -)
                   6392: fi
1.56      bertrand 6393: if test ! -d rplcas/$NTL; then
                   6394:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                   6395:            (cd rplcas && tar -xf -)
                   6396: fi
                   6397: if test ! -d rplcas/$COCOA; then
                   6398:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                   6399:            (cd rplcas && tar -xf -)
                   6400: fi
                   6401: if test ! -d rplcas/$PARI; then
                   6402:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                   6403:            (cd rplcas && tar -xf -)
                   6404: fi
                   6405: if test ! -d "$srcdir"/rplcas/$GIAC; then
                   6406:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                   6407:            (cd "$srcdir/rplcas" && tar -xf -)
                   6408: fi
1.1       bertrand 6409: 
1.84      bertrand 6410: touch tools/openmotif.lib
                   6411: 
1.1       bertrand 6412: 
                   6413: 
1.15      bertrand 6414: # Check whether --enable-final-run-path was given.
                   6415: if test "${enable_final_run_path+set}" = set; then :
                   6416:   enableval=$enable_final_run_path;
                   6417:    if test "x$enable_final_run_path" = "x"; then
                   6418:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6419: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6420:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6421:    else
                   6422:        RUNPATH="$enable_final_run_path"
                   6423:    fi
1.1       bertrand 6424: 
                   6425: else
1.15      bertrand 6426:   RUNPATH="\${prefix}"
1.1       bertrand 6427: 
                   6428: fi
                   6429: 
1.15      bertrand 6430: 
                   6431: 
                   6432: 
                   6433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6434: $as_echo_n "checking whether ln -s works... " >&6; }
                   6435: LN_S=$as_ln_s
                   6436: if test "$LN_S" = "ln -s"; then
                   6437:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6438: $as_echo "yes" >&6; }
                   6439: else
                   6440:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6441: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6442: fi
                   6443: 
1.15      bertrand 6444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6445: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6446: set x ${MAKE-make}
                   6447: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57      bertrand 6448: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15      bertrand 6449:   $as_echo_n "(cached) " >&6
1.1       bertrand 6450: else
1.15      bertrand 6451:   cat >conftest.make <<\_ACEOF
                   6452: SHELL = /bin/sh
                   6453: all:
                   6454:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6455: _ACEOF
1.36      bertrand 6456: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6457: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6458:   *@@@%%%=?*=@@@%%%*)
                   6459:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6460:   *)
                   6461:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6462: esac
1.15      bertrand 6463: rm -f conftest.make
                   6464: fi
                   6465: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6466:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6467: $as_echo "yes" >&6; }
                   6468:   SET_MAKE=
                   6469: else
                   6470:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6471: $as_echo "no" >&6; }
                   6472:   SET_MAKE="MAKE=${MAKE-make}"
                   6473: fi
1.1       bertrand 6474: 
1.15      bertrand 6475: if test -n "$ac_tool_prefix"; then
                   6476:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6477: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6478: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6479: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6480: if ${ac_cv_prog_RANLIB+:} false; then :
1.15      bertrand 6481:   $as_echo_n "(cached) " >&6
                   6482: else
                   6483:   if test -n "$RANLIB"; then
                   6484:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6485: else
1.15      bertrand 6486: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6487: for as_dir in $PATH
                   6488: do
                   6489:   IFS=$as_save_IFS
                   6490:   test -z "$as_dir" && as_dir=.
                   6491:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6492:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6493:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6494:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6495:     break 2
                   6496:   fi
                   6497: done
                   6498:   done
                   6499: IFS=$as_save_IFS
1.1       bertrand 6500: 
                   6501: fi
1.15      bertrand 6502: fi
                   6503: RANLIB=$ac_cv_prog_RANLIB
                   6504: if test -n "$RANLIB"; then
                   6505:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6506: $as_echo "$RANLIB" >&6; }
                   6507: else
                   6508:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6509: $as_echo "no" >&6; }
                   6510: fi
                   6511: 
1.1       bertrand 6512: 
1.15      bertrand 6513: fi
                   6514: if test -z "$ac_cv_prog_RANLIB"; then
                   6515:   ac_ct_RANLIB=$RANLIB
                   6516:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6517: set dummy ranlib; ac_word=$2
                   6518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6519: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6520: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15      bertrand 6521:   $as_echo_n "(cached) " >&6
                   6522: else
                   6523:   if test -n "$ac_ct_RANLIB"; then
                   6524:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6525: else
                   6526: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6527: for as_dir in $PATH
                   6528: do
                   6529:   IFS=$as_save_IFS
                   6530:   test -z "$as_dir" && as_dir=.
                   6531:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6532:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6533:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6534:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6535:     break 2
                   6536:   fi
                   6537: done
1.14      bertrand 6538:   done
1.15      bertrand 6539: IFS=$as_save_IFS
                   6540: 
                   6541: fi
                   6542: fi
                   6543: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6544: if test -n "$ac_ct_RANLIB"; then
                   6545:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6546: $as_echo "$ac_ct_RANLIB" >&6; }
                   6547: else
                   6548:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6549: $as_echo "no" >&6; }
                   6550: fi
                   6551: 
                   6552:   if test "x$ac_ct_RANLIB" = x; then
                   6553:     RANLIB=":"
                   6554:   else
                   6555:     case $cross_compiling:$ac_tool_warned in
                   6556: yes:)
                   6557: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6558: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6559: ac_tool_warned=yes ;;
                   6560: esac
                   6561:     RANLIB=$ac_ct_RANLIB
                   6562:   fi
1.14      bertrand 6563: else
1.15      bertrand 6564:   RANLIB="$ac_cv_prog_RANLIB"
                   6565: fi
1.1       bertrand 6566: 
                   6567: 
1.15      bertrand 6568: # Extract the first word of "nawk", so it can be a program name with args.
                   6569: set dummy nawk; ac_word=$2
                   6570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6571: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6572: if ${ac_cv_prog_AWK+:} false; then :
1.15      bertrand 6573:   $as_echo_n "(cached) " >&6
                   6574: else
                   6575:   if test -n "$AWK"; then
                   6576:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6577: else
                   6578: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6579: for as_dir in $PATH
                   6580: do
                   6581:   IFS=$as_save_IFS
                   6582:   test -z "$as_dir" && as_dir=.
                   6583:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6584:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6585:     ac_cv_prog_AWK="yes"
                   6586:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6587:     break 2
                   6588:   fi
                   6589: done
                   6590:   done
                   6591: IFS=$as_save_IFS
1.1       bertrand 6592: 
1.15      bertrand 6593:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6594: fi
                   6595: fi
                   6596: AWK=$ac_cv_prog_AWK
                   6597: if test -n "$AWK"; then
                   6598:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6599: $as_echo "$AWK" >&6; }
1.1       bertrand 6600: else
1.15      bertrand 6601:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6602: $as_echo "no" >&6; }
                   6603: fi
                   6604: 
1.1       bertrand 6605: 
1.15      bertrand 6606: if test "$AWK" = no; then
1.39      bertrand 6607:    # Extract the first word of "gawk", so it can be a program name with args.
                   6608: set dummy gawk; ac_word=$2
                   6609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6610: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6611: if ${ac_cv_prog_AWK+:} false; then :
1.39      bertrand 6612:   $as_echo_n "(cached) " >&6
                   6613: else
                   6614:   if test -n "$AWK"; then
                   6615:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6616: else
                   6617: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6618: for as_dir in $PATH
                   6619: do
                   6620:   IFS=$as_save_IFS
                   6621:   test -z "$as_dir" && as_dir=.
                   6622:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6623:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6624:     ac_cv_prog_AWK="yes"
                   6625:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6626:     break 2
                   6627:   fi
                   6628: done
                   6629:   done
                   6630: IFS=$as_save_IFS
                   6631: 
                   6632:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6633: fi
                   6634: fi
                   6635: AWK=$ac_cv_prog_AWK
                   6636: if test -n "$AWK"; then
                   6637:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6638: $as_echo "$AWK" >&6; }
                   6639: else
                   6640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6641: $as_echo "no" >&6; }
                   6642: fi
                   6643: 
                   6644: 
                   6645:    if test "$AWK" = no; then
                   6646:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6647:    fi
1.1       bertrand 6648: fi
                   6649: 
1.15      bertrand 6650: # Extract the first word of "sed", so it can be a program name with args.
                   6651: set dummy sed; ac_word=$2
                   6652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6653: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6654: if ${ac_cv_prog_SED+:} false; then :
1.15      bertrand 6655:   $as_echo_n "(cached) " >&6
                   6656: else
                   6657:   if test -n "$SED"; then
                   6658:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6659: else
                   6660: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6661: for as_dir in $PATH
                   6662: do
                   6663:   IFS=$as_save_IFS
                   6664:   test -z "$as_dir" && as_dir=.
                   6665:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6666:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6667:     ac_cv_prog_SED="yes"
                   6668:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6669:     break 2
                   6670:   fi
                   6671: done
1.14      bertrand 6672:   done
1.15      bertrand 6673: IFS=$as_save_IFS
1.1       bertrand 6674: 
1.15      bertrand 6675:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6676: fi
1.15      bertrand 6677: fi
                   6678: SED=$ac_cv_prog_SED
                   6679: if test -n "$SED"; then
                   6680:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6681: $as_echo "$SED" >&6; }
                   6682: else
                   6683:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6684: $as_echo "no" >&6; }
1.14      bertrand 6685: fi
1.1       bertrand 6686: 
                   6687: 
1.15      bertrand 6688: if test "$SED" = no; then
1.36      bertrand 6689:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6690: fi
1.14      bertrand 6691: 
1.15      bertrand 6692: if test "$TEX_SUPPORT" = guessed; then
                   6693:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6694: 
1.15      bertrand 6695:    # Extract the first word of "tex", so it can be a program name with args.
                   6696: set dummy tex; ac_word=$2
                   6697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6698: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6699: if ${ac_cv_prog_TEX+:} false; then :
1.15      bertrand 6700:   $as_echo_n "(cached) " >&6
1.1       bertrand 6701: else
1.15      bertrand 6702:   if test -n "$TEX"; then
                   6703:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6704: else
1.15      bertrand 6705: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6706: for as_dir in $PATH
                   6707: do
                   6708:   IFS=$as_save_IFS
                   6709:   test -z "$as_dir" && as_dir=.
                   6710:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6711:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6712:     ac_cv_prog_TEX="yes"
                   6713:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6714:     break 2
                   6715:   fi
                   6716: done
                   6717:   done
                   6718: IFS=$as_save_IFS
1.1       bertrand 6719: 
1.15      bertrand 6720:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6721: fi
                   6722: fi
1.15      bertrand 6723: TEX=$ac_cv_prog_TEX
                   6724: if test -n "$TEX"; then
                   6725:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6726: $as_echo "$TEX" >&6; }
                   6727: else
                   6728:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6729: $as_echo "no" >&6; }
1.1       bertrand 6730: fi
1.14      bertrand 6731: 
                   6732: 
1.15      bertrand 6733:    if test "$TEX" = no; then
                   6734:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6735: Download at http://tex.loria.fr/
                   6736: " >&5
                   6737: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6738: Download at http://tex.loria.fr/
                   6739: " >&2;}
                   6740:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6741:    fi
1.14      bertrand 6742: 
1.15      bertrand 6743:    # Extract the first word of "latex", so it can be a program name with args.
                   6744: set dummy latex; ac_word=$2
                   6745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6746: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6747: if ${ac_cv_prog_LATEX+:} false; then :
1.15      bertrand 6748:   $as_echo_n "(cached) " >&6
1.1       bertrand 6749: else
1.15      bertrand 6750:   if test -n "$LATEX"; then
                   6751:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6752: else
1.15      bertrand 6753: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6754: for as_dir in $PATH
                   6755: do
                   6756:   IFS=$as_save_IFS
                   6757:   test -z "$as_dir" && as_dir=.
                   6758:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6759:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6760:     ac_cv_prog_LATEX="yes"
                   6761:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6762:     break 2
                   6763:   fi
                   6764: done
                   6765:   done
                   6766: IFS=$as_save_IFS
1.1       bertrand 6767: 
1.15      bertrand 6768:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6769: fi
                   6770: fi
1.15      bertrand 6771: LATEX=$ac_cv_prog_LATEX
                   6772: if test -n "$LATEX"; then
                   6773:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6774: $as_echo "$LATEX" >&6; }
                   6775: else
                   6776:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6777: $as_echo "no" >&6; }
                   6778: fi
1.14      bertrand 6779: 
1.1       bertrand 6780: 
1.15      bertrand 6781:    if test "$LATEX" = no; then
                   6782:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6783: Download at http://tex.loria.fr/
                   6784: " >&5
                   6785: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6786: Download at http://tex.loria.fr/
                   6787: " >&2;}
                   6788:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6789:    fi
1.1       bertrand 6790: 
1.15      bertrand 6791:    # Extract the first word of "dvips", so it can be a program name with args.
                   6792: set dummy dvips; ac_word=$2
                   6793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6794: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6795: if ${ac_cv_prog_DVIPS+:} false; then :
1.15      bertrand 6796:   $as_echo_n "(cached) " >&6
                   6797: else
                   6798:   if test -n "$DVIPS"; then
                   6799:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6800: else
                   6801: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6802: for as_dir in $PATH
                   6803: do
                   6804:   IFS=$as_save_IFS
                   6805:   test -z "$as_dir" && as_dir=.
                   6806:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6807:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6808:     ac_cv_prog_DVIPS="yes"
                   6809:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6810:     break 2
                   6811:   fi
                   6812: done
                   6813:   done
                   6814: IFS=$as_save_IFS
1.1       bertrand 6815: 
1.15      bertrand 6816:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6817: fi
1.1       bertrand 6818: fi
1.15      bertrand 6819: DVIPS=$ac_cv_prog_DVIPS
                   6820: if test -n "$DVIPS"; then
                   6821:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6822: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6823: else
1.15      bertrand 6824:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6825: $as_echo "no" >&6; }
                   6826: fi
1.1       bertrand 6827: 
                   6828: 
1.15      bertrand 6829:    if test "$DVIPS" = no; then
                   6830:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6831: Download at http://tex.loria.fr/
                   6832: " >&5
                   6833: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6834: Download at http://tex.loria.fr/
                   6835: " >&2;}
                   6836:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6837:    fi
1.1       bertrand 6838: 
1.15      bertrand 6839:    # Extract the first word of "gs", so it can be a program name with args.
                   6840: set dummy gs; ac_word=$2
                   6841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6842: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6843: if ${ac_cv_prog_GS+:} false; then :
1.15      bertrand 6844:   $as_echo_n "(cached) " >&6
                   6845: else
                   6846:   if test -n "$GS"; then
                   6847:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6848: else
1.15      bertrand 6849: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6850: for as_dir in $PATH
                   6851: do
                   6852:   IFS=$as_save_IFS
                   6853:   test -z "$as_dir" && as_dir=.
                   6854:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6855:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6856:     ac_cv_prog_GS="yes"
                   6857:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6858:     break 2
                   6859:   fi
                   6860: done
                   6861:   done
                   6862: IFS=$as_save_IFS
1.1       bertrand 6863: 
1.15      bertrand 6864:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6865: fi
                   6866: fi
                   6867: GS=$ac_cv_prog_GS
                   6868: if test -n "$GS"; then
                   6869:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6870: $as_echo "$GS" >&6; }
                   6871: else
                   6872:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6873: $as_echo "no" >&6; }
1.1       bertrand 6874: fi
                   6875: 
1.15      bertrand 6876: 
                   6877:    if test "$GS" = no; then
                   6878:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6879: Download at http://ftp.lip6.fr/
                   6880: " >&5
                   6881: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6882: Download at http://ftp.lip6.fr/
                   6883: " >&2;}
                   6884:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6885:    fi
                   6886: 
                   6887:    # Extract the first word of "gv", so it can be a program name with args.
                   6888: set dummy gv; ac_word=$2
                   6889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6890: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6891: if ${ac_cv_prog_GV+:} false; then :
1.15      bertrand 6892:   $as_echo_n "(cached) " >&6
                   6893: else
                   6894:   if test -n "$GV"; then
                   6895:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6896: else
                   6897: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6898: for as_dir in $PATH
                   6899: do
                   6900:   IFS=$as_save_IFS
                   6901:   test -z "$as_dir" && as_dir=.
                   6902:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6903:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6904:     ac_cv_prog_GV="yes"
                   6905:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6906:     break 2
                   6907:   fi
                   6908: done
1.14      bertrand 6909:   done
1.15      bertrand 6910: IFS=$as_save_IFS
1.1       bertrand 6911: 
1.15      bertrand 6912:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   6913: fi
1.1       bertrand 6914: fi
1.15      bertrand 6915: GV=$ac_cv_prog_GV
                   6916: if test -n "$GV"; then
                   6917:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   6918: $as_echo "$GV" >&6; }
                   6919: else
                   6920:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6921: $as_echo "no" >&6; }
1.1       bertrand 6922: fi
1.14      bertrand 6923: 
                   6924: 
1.15      bertrand 6925:    if test "$GV" = no; then
                   6926:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   6927: Download at http://ftp.lip6.fr/
                   6928: " >&5
                   6929: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   6930: Download at http://ftp.lip6.fr/
                   6931: " >&2;}
                   6932:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6933:    fi
1.1       bertrand 6934: else
1.15      bertrand 6935:    if test "$TEX_SUPPORT" = no; then
                   6936:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6937:    else
                   6938:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   6939:    fi
1.1       bertrand 6940: fi
                   6941: 
1.15      bertrand 6942: if test "$GNUPLOT_SUPPORT" = guessed; then
                   6943:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   6944: set dummy gnuplot; ac_word=$2
                   6945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6946: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 6947: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15      bertrand 6948:   $as_echo_n "(cached) " >&6
1.14      bertrand 6949: else
1.15      bertrand 6950:   if test -n "$GNUPLOT_P"; then
                   6951:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 6952: else
1.15      bertrand 6953: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6954: for as_dir in $PATH
                   6955: do
                   6956:   IFS=$as_save_IFS
                   6957:   test -z "$as_dir" && as_dir=.
                   6958:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6959:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6960:     ac_cv_prog_GNUPLOT_P="yes"
                   6961:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6962:     break 2
                   6963:   fi
                   6964: done
                   6965:   done
                   6966: IFS=$as_save_IFS
1.1       bertrand 6967: 
1.15      bertrand 6968:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 6969: fi
                   6970: fi
1.15      bertrand 6971: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   6972: if test -n "$GNUPLOT_P"; then
                   6973:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   6974: $as_echo "$GNUPLOT_P" >&6; }
                   6975: else
                   6976:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6977: $as_echo "no" >&6; }
1.1       bertrand 6978: fi
                   6979: 
                   6980: 
1.15      bertrand 6981:    if test "$GNUPLOT_P" = no; then
                   6982:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   6983: Download at http://www.gnuplot.vt.edu/
                   6984: " >&5
                   6985: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   6986: Download at http://www.gnuplot.vt.edu/
                   6987: " >&2;}
                   6988:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6989:    else
                   6990:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6991:    fi
                   6992: else
                   6993:    if test "$GNUPLOT_SUPPORT" = no; then
                   6994:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   6995:    else
                   6996:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   6997:    fi
                   6998: fi
1.1       bertrand 6999: 
1.15      bertrand 7000: if test "$VIM_SUPPORT" = guessed; then
                   7001:    # Extract the first word of "vim", so it can be a program name with args.
                   7002: set dummy vim; ac_word=$2
                   7003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7004: $as_echo_n "checking for $ac_word... " >&6; }
1.57      bertrand 7005: if ${ac_cv_prog_VIM+:} false; then :
1.15      bertrand 7006:   $as_echo_n "(cached) " >&6
1.1       bertrand 7007: else
1.15      bertrand 7008:   if test -n "$VIM"; then
                   7009:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 7010: else
1.15      bertrand 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
                   7017:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7018:     ac_cv_prog_VIM="yes"
                   7019:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7020:     break 2
                   7021:   fi
                   7022: done
                   7023:   done
                   7024: IFS=$as_save_IFS
1.1       bertrand 7025: 
1.15      bertrand 7026:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 7027: fi
                   7028: fi
1.15      bertrand 7029: VIM=$ac_cv_prog_VIM
                   7030: if test -n "$VIM"; then
                   7031:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   7032: $as_echo "$VIM" >&6; }
1.1       bertrand 7033: else
1.15      bertrand 7034:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7035: $as_echo "no" >&6; }
                   7036: fi
1.1       bertrand 7037: 
                   7038: 
1.15      bertrand 7039:    if test "$VIM" = no; then
                   7040:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   7041: Download at http://www.vim.org/
                   7042: " >&5
                   7043: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   7044: Download at http://www.vim.org/
                   7045: " >&2;}
                   7046:        VIM_SUPPORT="-UVIM_SUPPORT"
                   7047:    else
                   7048:        VIM_SUPPORT="-DVIM_SUPPORT"
                   7049:    fi
1.1       bertrand 7050: else
1.15      bertrand 7051:    if test "$VIM_SUPPORT" = no; then
                   7052:        VIM_SUPPORT="-UVIM_SUPPORT"
                   7053:    else
                   7054:        VIM_SUPPORT="-DVIM_SUPPORT"
                   7055:    fi
1.1       bertrand 7056: fi
                   7057: 
1.14      bertrand 7058: 
                   7059: 
1.1       bertrand 7060: 
                   7061: 
1.15      bertrand 7062: 
                   7063: 
                   7064: 
                   7065: 
                   7066: 
                   7067: 
                   7068: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   7069: 
                   7070: 
                   7071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   7072: $as_echo_n "checking for main in -lm... " >&6; }
1.57      bertrand 7073: if ${ac_cv_lib_m_main+:} false; then :
1.15      bertrand 7074:   $as_echo_n "(cached) " >&6
1.1       bertrand 7075: else
1.15      bertrand 7076:   ac_check_lib_save_LIBS=$LIBS
                   7077: LIBS="-lm  $LIBS"
                   7078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7079: /* end confdefs.h.  */
1.15      bertrand 7080: 
                   7081: 
1.1       bertrand 7082: int
                   7083: main ()
                   7084: {
1.15      bertrand 7085: return main ();
1.1       bertrand 7086:   ;
                   7087:   return 0;
                   7088: }
                   7089: _ACEOF
1.15      bertrand 7090: if ac_fn_c_try_link "$LINENO"; then :
                   7091:   ac_cv_lib_m_main=yes
1.1       bertrand 7092: else
1.15      bertrand 7093:   ac_cv_lib_m_main=no
                   7094: fi
                   7095: rm -f core conftest.err conftest.$ac_objext \
                   7096:     conftest$ac_exeext conftest.$ac_ext
                   7097: LIBS=$ac_check_lib_save_LIBS
                   7098: fi
                   7099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   7100: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57      bertrand 7101: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15      bertrand 7102:   cat >>confdefs.h <<_ACEOF
                   7103: #define HAVE_LIBM 1
                   7104: _ACEOF
1.14      bertrand 7105: 
1.15      bertrand 7106:   LIBS="-lm $LIBS"
1.1       bertrand 7107: 
1.15      bertrand 7108: else
1.36      bertrand 7109:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 7110: fi
                   7111: 
1.87      bertrand 7112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
                   7113: $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
                   7114: if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
                   7115:   $as_echo_n "(cached) " >&6
                   7116: else
                   7117:   ac_check_lib_save_LIBS=$LIBS
                   7118: LIBS="-lc  $LIBS"
                   7119: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7120: /* end confdefs.h.  */
                   7121: 
                   7122: /* Override any GCC internal prototype to avoid an error.
                   7123:    Use char because int might match the return type of a GCC
                   7124:    builtin and then its argument prototype would still apply.  */
                   7125: #ifdef __cplusplus
                   7126: extern "C"
                   7127: #endif
                   7128: char pthread_mutex_init ();
                   7129: int
                   7130: main ()
                   7131: {
                   7132: return pthread_mutex_init ();
                   7133:   ;
                   7134:   return 0;
                   7135: }
                   7136: _ACEOF
                   7137: if ac_fn_c_try_link "$LINENO"; then :
                   7138:   ac_cv_lib_c_pthread_mutex_init=yes
                   7139: else
                   7140:   ac_cv_lib_c_pthread_mutex_init=no
                   7141: fi
                   7142: rm -f core conftest.err conftest.$ac_objext \
                   7143:     conftest$ac_exeext conftest.$ac_ext
                   7144: LIBS=$ac_check_lib_save_LIBS
                   7145: fi
                   7146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
                   7147: $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
                   7148: if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
                   7149:   cat >>confdefs.h <<_ACEOF
                   7150: #define HAVE_LIBC 1
                   7151: _ACEOF
                   7152: 
                   7153:   LIBS="-lc $LIBS"
                   7154: 
                   7155: else
                   7156:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
1.15      bertrand 7157: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57      bertrand 7158: if ${ac_cv_lib_pthread_main+:} false; then :
1.15      bertrand 7159:   $as_echo_n "(cached) " >&6
1.1       bertrand 7160: else
1.15      bertrand 7161:   ac_check_lib_save_LIBS=$LIBS
                   7162: LIBS="-lpthread  $LIBS"
                   7163: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7164: /* end confdefs.h.  */
1.15      bertrand 7165: 
                   7166: 
1.14      bertrand 7167: int
                   7168: main ()
                   7169: {
1.15      bertrand 7170: return main ();
1.14      bertrand 7171:   ;
                   7172:   return 0;
                   7173: }
                   7174: _ACEOF
1.15      bertrand 7175: if ac_fn_c_try_link "$LINENO"; then :
                   7176:   ac_cv_lib_pthread_main=yes
                   7177: else
                   7178:   ac_cv_lib_pthread_main=no
                   7179: fi
                   7180: rm -f core conftest.err conftest.$ac_objext \
                   7181:     conftest$ac_exeext conftest.$ac_ext
                   7182: LIBS=$ac_check_lib_save_LIBS
                   7183: fi
                   7184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7185: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57      bertrand 7186: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15      bertrand 7187:   cat >>confdefs.h <<_ACEOF
                   7188: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7189: _ACEOF
                   7190: 
1.15      bertrand 7191:   LIBS="-lpthread $LIBS"
                   7192: 
1.1       bertrand 7193: else
1.36      bertrand 7194:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7195: fi
1.14      bertrand 7196: 
1.87      bertrand 7197: fi
                   7198: 
1.1       bertrand 7199: 
1.33      bertrand 7200: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7201: #include <sys/sem.h>
                   7202: 
                   7203: "
1.57      bertrand 7204: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33      bertrand 7205:   SEMUN=-DUNION_SEMUN
                   7206: else
                   7207:   SEMUN=-UUNION_SEMUN
                   7208: fi
                   7209: 
                   7210: 
1.34      bertrand 7211: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7212: #include <sys/types.h>
1.34      bertrand 7213: #include <netinet/in.h>
                   7214: 
                   7215: "
1.57      bertrand 7216: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34      bertrand 7217:   IPV6=-DIPV6
                   7218: else
                   7219:   IPV6=-UIPV6
                   7220: fi
                   7221: 
                   7222: 
1.15      bertrand 7223: if test "$CYGWIN" != yes; then
                   7224:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7225: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57      bertrand 7226: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15      bertrand 7227:   $as_echo_n "(cached) " >&6
1.1       bertrand 7228: else
1.15      bertrand 7229:   ac_check_lib_save_LIBS=$LIBS
                   7230: LIBS="-ldl  $LIBS"
                   7231: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7232: /* end confdefs.h.  */
                   7233: 
1.15      bertrand 7234: /* Override any GCC internal prototype to avoid an error.
                   7235:    Use char because int might match the return type of a GCC
                   7236:    builtin and then its argument prototype would still apply.  */
                   7237: #ifdef __cplusplus
                   7238: extern "C"
                   7239: #endif
                   7240: char dlopen ();
1.1       bertrand 7241: int
                   7242: main ()
                   7243: {
1.15      bertrand 7244: return dlopen ();
1.1       bertrand 7245:   ;
                   7246:   return 0;
                   7247: }
                   7248: _ACEOF
1.15      bertrand 7249: if ac_fn_c_try_link "$LINENO"; then :
                   7250:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7251: else
1.15      bertrand 7252:   ac_cv_lib_dl_dlopen=no
                   7253: fi
                   7254: rm -f core conftest.err conftest.$ac_objext \
                   7255:     conftest$ac_exeext conftest.$ac_ext
                   7256: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7257: fi
1.15      bertrand 7258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7259: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57      bertrand 7260: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15      bertrand 7261:   LIBS="$LIBS -ldl"
1.14      bertrand 7262: else
1.15      bertrand 7263:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7264: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7265: fi
                   7266: 
1.14      bertrand 7267: fi
1.1       bertrand 7268: 
1.15      bertrand 7269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7270: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57      bertrand 7271: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15      bertrand 7272:   $as_echo_n "(cached) " >&6
                   7273: else
                   7274:   ac_check_lib_save_LIBS=$LIBS
                   7275: LIBS="-lrt  $LIBS"
                   7276: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7277: /* end confdefs.h.  */
1.15      bertrand 7278: 
                   7279: /* Override any GCC internal prototype to avoid an error.
                   7280:    Use char because int might match the return type of a GCC
                   7281:    builtin and then its argument prototype would still apply.  */
                   7282: #ifdef __cplusplus
                   7283: extern "C"
                   7284: #endif
                   7285: char nanosleep ();
1.1       bertrand 7286: int
                   7287: main ()
                   7288: {
1.15      bertrand 7289: return nanosleep ();
1.1       bertrand 7290:   ;
                   7291:   return 0;
                   7292: }
                   7293: _ACEOF
1.15      bertrand 7294: if ac_fn_c_try_link "$LINENO"; then :
                   7295:   ac_cv_lib_rt_nanosleep=yes
                   7296: else
                   7297:   ac_cv_lib_rt_nanosleep=no
                   7298: fi
                   7299: rm -f core conftest.err conftest.$ac_objext \
                   7300:     conftest$ac_exeext conftest.$ac_ext
                   7301: LIBS=$ac_check_lib_save_LIBS
                   7302: fi
                   7303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7304: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57      bertrand 7305: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15      bertrand 7306:   LIBS="$LIBS -lrt"
1.1       bertrand 7307: else
1.15      bertrand 7308:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7309: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7310: fi
1.1       bertrand 7311: 
                   7312: 
1.15      bertrand 7313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7314: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57      bertrand 7315: if ${ac_cv_lib_socket_bind+:} false; then :
1.15      bertrand 7316:   $as_echo_n "(cached) " >&6
1.1       bertrand 7317: else
1.15      bertrand 7318:   ac_check_lib_save_LIBS=$LIBS
                   7319: LIBS="-lsocket  $LIBS"
                   7320: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7321: /* end confdefs.h.  */
1.15      bertrand 7322: 
                   7323: /* Override any GCC internal prototype to avoid an error.
                   7324:    Use char because int might match the return type of a GCC
                   7325:    builtin and then its argument prototype would still apply.  */
                   7326: #ifdef __cplusplus
                   7327: extern "C"
                   7328: #endif
                   7329: char bind ();
1.1       bertrand 7330: int
                   7331: main ()
                   7332: {
1.15      bertrand 7333: return bind ();
1.1       bertrand 7334:   ;
                   7335:   return 0;
                   7336: }
                   7337: _ACEOF
1.15      bertrand 7338: if ac_fn_c_try_link "$LINENO"; then :
                   7339:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7340: else
1.15      bertrand 7341:   ac_cv_lib_socket_bind=no
1.1       bertrand 7342: fi
1.15      bertrand 7343: rm -f core conftest.err conftest.$ac_objext \
                   7344:     conftest$ac_exeext conftest.$ac_ext
                   7345: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7346: fi
1.15      bertrand 7347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7348: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57      bertrand 7349: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15      bertrand 7350:   LIBS="$LIBS -lsocket"
                   7351: else
                   7352:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7353: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7354: fi
                   7355: 
                   7356: 
1.15      bertrand 7357: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7358: 
                   7359: # Check whether --with-mysql was given.
                   7360: if test "${with_mysql+set}" = set; then :
                   7361:   withval=$with_mysql;
                   7362: else
                   7363:   with_mysql=check
                   7364: fi
1.14      bertrand 7365: 
                   7366: 
1.15      bertrand 7367: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7368:    libMySQLinc="-I/usr/include"
1.30      bertrand 7369:    libMySQLlib="/usr/lib"
1.14      bertrand 7370: 
1.15      bertrand 7371:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7372: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7373:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7374:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7375:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7376: /* end confdefs.h.  */
1.15      bertrand 7377: #include "mysql.h"
1.1       bertrand 7378: int
                   7379: main ()
                   7380: {
1.15      bertrand 7381: 
1.1       bertrand 7382:   ;
                   7383:   return 0;
                   7384: }
                   7385: _ACEOF
1.15      bertrand 7386: if ac_fn_c_try_compile "$LINENO"; then :
                   7387:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7388: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7389:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7390: else
1.15      bertrand 7391:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7392: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7393: fi
1.14      bertrand 7394: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7395:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7396: 
1.15      bertrand 7397:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7398:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7399: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7400:        saved_CFLAGS="$CFLAGS"
                   7401:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7402:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7403: /* end confdefs.h.  */
1.15      bertrand 7404: #include "mysql.h"
1.1       bertrand 7405: int
                   7406: main ()
                   7407: {
                   7408: 
                   7409:   ;
                   7410:   return 0;
                   7411: }
                   7412: _ACEOF
1.15      bertrand 7413: if ac_fn_c_try_compile "$LINENO"; then :
                   7414:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7415: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7416:                        libMySQLinc=$libMySQLinc
                   7417: else
                   7418:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7419: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7420: fi
                   7421: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7422:        CFLAGS=$saved_CFLAGS
                   7423:        libMySQLinc=$libMySQLinc/mysql
                   7424:    fi
                   7425: 
                   7426:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7427:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7428: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7429:        saved_CFLAGS="$CFLAGS"
                   7430:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7431:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7432: /* end confdefs.h.  */
1.15      bertrand 7433: #include "mysql.h"
1.1       bertrand 7434: int
                   7435: main ()
                   7436: {
                   7437: 
                   7438:   ;
                   7439:   return 0;
                   7440: }
                   7441: _ACEOF
1.15      bertrand 7442: if ac_fn_c_try_compile "$LINENO"; then :
                   7443:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7444: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7445:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7446: else
1.15      bertrand 7447:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7448: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7449: fi
                   7450: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7451:        CFLAGS=$saved_CFLAGS
                   7452:        libMySQLinc=$libMySQLinc/../local/include
                   7453:        libMySQLlib=$libMySQLlib/../local/lib
                   7454:    fi
1.1       bertrand 7455: 
1.15      bertrand 7456:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7457:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7458: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7459:        saved_CFLAGS="$CFLAGS"
                   7460:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7461:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7462: /* end confdefs.h.  */
1.15      bertrand 7463: #include "mysql.h"
1.1       bertrand 7464: int
                   7465: main ()
                   7466: {
                   7467: 
                   7468:   ;
                   7469:   return 0;
                   7470: }
                   7471: _ACEOF
1.15      bertrand 7472: if ac_fn_c_try_compile "$LINENO"; then :
                   7473:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7474: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7475:                        libMySQLinc=$libMySQLinc/mysql
                   7476: else
                   7477:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7478: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7479: fi
                   7480: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7481:        CFLAGS=$saved_CFLAGS
                   7482:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7483:        libMySQLlib=$libMySQLlib/../local/lib
                   7484:    fi
                   7485: else
                   7486:    if test "x$with_mysql" != xno; then
                   7487:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7488:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7489: 
                   7490:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7491: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7492:        saved_CFLAGS="$CFLAGS"
                   7493:        CFLAGS="$CFLAGS $libMySQLinc"
                   7494:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7495: /* end confdefs.h.  */
1.15      bertrand 7496: #include "mysql.h"
1.1       bertrand 7497: int
                   7498: main ()
                   7499: {
                   7500: 
                   7501:   ;
                   7502:   return 0;
                   7503: }
                   7504: _ACEOF
1.15      bertrand 7505: if ac_fn_c_try_compile "$LINENO"; then :
                   7506:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7507: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7508:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7509: else
1.15      bertrand 7510:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7511: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7512: fi
                   7513: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7514:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7515: 
1.15      bertrand 7516:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7517:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7518: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7519:            saved_CFLAGS="$CFLAGS"
                   7520:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7521:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7522: /* end confdefs.h.  */
1.15      bertrand 7523: #include "mysql.h"
1.1       bertrand 7524: int
                   7525: main ()
                   7526: {
                   7527: 
                   7528:   ;
                   7529:   return 0;
                   7530: }
                   7531: _ACEOF
1.15      bertrand 7532: if ac_fn_c_try_compile "$LINENO"; then :
                   7533:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7534: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7535:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7536: else
1.15      bertrand 7537:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7538: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7539: fi
                   7540: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7541:            CFLAGS=$saved_CFLAGS
                   7542:            libMySQLinc=$libMySQLinc/mysql
                   7543:        fi
                   7544:    else
                   7545:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7546:    fi
                   7547: fi
1.14      bertrand 7548: 
1.15      bertrand 7549: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7550:    MYSQL_LIB=no
1.14      bertrand 7551: 
1.15      bertrand 7552:    if test $MYSQL_LIB = no; then
                   7553:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7554: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7555:        saved_LIBS="$LIBS"
1.30      bertrand 7556:        if test $STATIC = no; then
                   7557:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7558:        else
                   7559:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7560:        fi
1.15      bertrand 7561:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7562: /* end confdefs.h.  */
1.15      bertrand 7563: #include "mysql.h"
1.1       bertrand 7564: int
                   7565: main ()
                   7566: {
1.15      bertrand 7567: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7568:   ;
                   7569:   return 0;
                   7570: }
                   7571: _ACEOF
1.15      bertrand 7572: if ac_fn_c_try_link "$LINENO"; then :
                   7573:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7574: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7575: else
1.15      bertrand 7576:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7577: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7578: fi
                   7579: rm -f core conftest.err conftest.$ac_objext \
                   7580:     conftest$ac_exeext conftest.$ac_ext
                   7581:        LIBS=$saved_LIBS;
1.30      bertrand 7582:        if test $STATIC = no; then
                   7583:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7584:        else
                   7585:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7586:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7587:        fi
1.15      bertrand 7588:    fi
1.14      bertrand 7589: 
1.15      bertrand 7590:    if test $MYSQL_LIB = no; then
                   7591:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7592:    fi
1.14      bertrand 7593: fi
1.15      bertrand 7594: 
                   7595: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7596:    libMySQLinc=
                   7597:    libMySQLlib=
1.1       bertrand 7598: fi
1.14      bertrand 7599: 
                   7600: 
                   7601: 
1.1       bertrand 7602: 
                   7603: 
1.15      bertrand 7604: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7605: 
                   7606: # Check whether --with-postgresql was given.
                   7607: if test "${with_postgresql+set}" = set; then :
                   7608:   withval=$with_postgresql;
1.14      bertrand 7609: else
1.15      bertrand 7610:   with_postgresql=check
                   7611: fi
                   7612: 
                   7613: 
                   7614: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7615: # no [--without], valeur [--with=valeur].
                   7616: 
                   7617: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7618:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7619:    libPgSQLlib="/usr/lib"
1.15      bertrand 7620: 
                   7621:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7622: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7623:    saved_CFLAGS="$CFLAGS"
                   7624:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7625:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7626: /* end confdefs.h.  */
1.15      bertrand 7627: #include "libpq-fe.h"
1.1       bertrand 7628: int
                   7629: main ()
                   7630: {
1.15      bertrand 7631: 
1.1       bertrand 7632:   ;
                   7633:   return 0;
                   7634: }
                   7635: _ACEOF
1.15      bertrand 7636: if ac_fn_c_try_compile "$LINENO"; then :
                   7637:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7638: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7639: else
1.15      bertrand 7640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7641: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7642: fi
1.14      bertrand 7643: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7644:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7645: 
1.15      bertrand 7646:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7647:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7648: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7649:        saved_CFLAGS="$CFLAGS"
                   7650:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7651:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7652: /* end confdefs.h.  */
1.15      bertrand 7653: #include "libpq-fe.h"
1.1       bertrand 7654: int
                   7655: main ()
                   7656: {
                   7657: 
                   7658:   ;
                   7659:   return 0;
                   7660: }
                   7661: _ACEOF
1.15      bertrand 7662: if ac_fn_c_try_compile "$LINENO"; then :
                   7663:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7664: $as_echo "yes" >&6; };
                   7665:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7666: else
                   7667:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7668: $as_echo "no" >&6; };
                   7669:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7670: fi
                   7671: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7672:        CFLAGS=$saved_CFLAGS
                   7673:        libPgSQLinc=$libPgSQLinc/postgresql
                   7674:    fi
                   7675: 
                   7676:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7677:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7678: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7679:        saved_CFLAGS="$CFLAGS"
                   7680:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7681:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7682: /* end confdefs.h.  */
1.15      bertrand 7683: #include "libpq-fe.h"
1.1       bertrand 7684: int
                   7685: main ()
                   7686: {
                   7687: 
                   7688:   ;
                   7689:   return 0;
                   7690: }
                   7691: _ACEOF
1.15      bertrand 7692: if ac_fn_c_try_compile "$LINENO"; then :
                   7693:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7694: $as_echo "yes" >&6; };
                   7695:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7696: else
1.15      bertrand 7697:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7698: $as_echo "no" >&6; };
                   7699:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7700: fi
                   7701: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7702:        CFLAGS=$saved_CFLAGS
                   7703:        libPgSQLinc=$libPgSQLinc/pgsql
                   7704:    fi
1.1       bertrand 7705: 
1.15      bertrand 7706:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7707:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7708: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7709:        saved_CFLAGS="$CFLAGS"
                   7710:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7711:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7712: /* end confdefs.h.  */
1.15      bertrand 7713: #include "libpq-fe.h"
1.1       bertrand 7714: int
                   7715: main ()
                   7716: {
                   7717: 
                   7718:   ;
                   7719:   return 0;
                   7720: }
                   7721: _ACEOF
1.15      bertrand 7722: if ac_fn_c_try_compile "$LINENO"; then :
                   7723:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7724: $as_echo "yes" >&6; };
                   7725:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7726: else
                   7727:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7728: $as_echo "no" >&6; };
                   7729:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7730: fi
                   7731: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7732:        CFLAGS=$saved_CFLAGS
                   7733:        libPgSQLinc=$libPgSQLinc/../local/include
                   7734:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7735:    fi
                   7736: 
                   7737:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7738:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7739: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7740:        saved_CFLAGS="$CFLAGS"
                   7741:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7742:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7743: /* end confdefs.h.  */
1.15      bertrand 7744: #include "libpq-fe.h"
1.1       bertrand 7745: int
                   7746: main ()
                   7747: {
                   7748: 
                   7749:   ;
                   7750:   return 0;
                   7751: }
                   7752: _ACEOF
1.15      bertrand 7753: if ac_fn_c_try_compile "$LINENO"; then :
                   7754:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7755: $as_echo "yes" >&6; };
                   7756:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7757: else
1.15      bertrand 7758:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7759: $as_echo "no" >&6; };
                   7760:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7761: fi
                   7762: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7763:        CFLAGS=$saved_CFLAGS
                   7764:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7765:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7766:    fi
1.14      bertrand 7767: 
1.15      bertrand 7768:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7769:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7770: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7771:        saved_CFLAGS="$CFLAGS"
                   7772:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7773:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7774: /* end confdefs.h.  */
1.15      bertrand 7775: #include "libpq-fe.h"
1.1       bertrand 7776: int
                   7777: main ()
                   7778: {
                   7779: 
                   7780:   ;
                   7781:   return 0;
                   7782: }
                   7783: _ACEOF
1.15      bertrand 7784: if ac_fn_c_try_compile "$LINENO"; then :
                   7785:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7786: $as_echo "yes" >&6; };
                   7787:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7788: else
1.15      bertrand 7789:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7790: $as_echo "no" >&6; };
                   7791:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7792: fi
                   7793: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7794:        CFLAGS=$saved_CFLAGS
                   7795:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7796:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7797:    fi
1.14      bertrand 7798: else
1.15      bertrand 7799:    if test "x$with_postgresql" != xno; then
                   7800:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7801:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7802: 
                   7803:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7804: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7805:        saved_CFLAGS="$CFLAGS"
                   7806:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7807:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7808: /* end confdefs.h.  */
1.15      bertrand 7809: #include "libpq-fe.h"
1.1       bertrand 7810: int
                   7811: main ()
                   7812: {
                   7813: 
                   7814:   ;
                   7815:   return 0;
                   7816: }
                   7817: _ACEOF
1.15      bertrand 7818: if ac_fn_c_try_compile "$LINENO"; then :
                   7819:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7820: $as_echo "yes" >&6; };
                   7821:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7822: else
1.15      bertrand 7823:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7824: $as_echo "no" >&6; };
                   7825:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7826: fi
1.15      bertrand 7827: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7828:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7829: 
1.15      bertrand 7830:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7831:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7832: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7833:            saved_CFLAGS="$CFLAGS"
                   7834:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7835:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7836: /* end confdefs.h.  */
1.15      bertrand 7837: #include "libpq-fe.h"
1.1       bertrand 7838: int
                   7839: main ()
                   7840: {
1.15      bertrand 7841: 
1.1       bertrand 7842:   ;
                   7843:   return 0;
                   7844: }
                   7845: _ACEOF
1.15      bertrand 7846: if ac_fn_c_try_compile "$LINENO"; then :
                   7847:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7848: $as_echo "yes" >&6; };
                   7849:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7850: else
1.15      bertrand 7851:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7852: $as_echo "no" >&6; };
                   7853:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7854: fi
                   7855: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7856:            CFLAGS=$saved_CFLAGS
                   7857:            libPgSQLinc=$libPgSQLinc/postgresql
                   7858:        fi
1.14      bertrand 7859: 
1.15      bertrand 7860:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7861:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7862: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7863:            saved_CFLAGS="$CFLAGS"
                   7864:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7865:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7866: /* end confdefs.h.  */
1.15      bertrand 7867: #include "libpq-fe.h"
1.1       bertrand 7868: int
                   7869: main ()
                   7870: {
1.15      bertrand 7871: 
1.1       bertrand 7872:   ;
                   7873:   return 0;
                   7874: }
                   7875: _ACEOF
1.15      bertrand 7876: if ac_fn_c_try_compile "$LINENO"; then :
                   7877:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7878: $as_echo "yes" >&6; };
                   7879:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7880: else
1.15      bertrand 7881:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7882: $as_echo "no" >&6; };
                   7883:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7884: fi
1.15      bertrand 7885: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7886:            CFLAGS=$saved_CFLAGS
                   7887:            libPgSQLinc=$libPgSQLinc/pgsql
                   7888:        fi
                   7889:    else
                   7890:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7891:    fi
1.1       bertrand 7892: fi
                   7893: 
1.15      bertrand 7894: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   7895:    POSTGRESQL_LIB=no
1.1       bertrand 7896: 
1.15      bertrand 7897:    if test $POSTGRESQL_LIB = no; then
                   7898:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   7899: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   7900:        saved_LIBS="$LIBS"
1.30      bertrand 7901:        if test $STATIC = no; then
                   7902:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   7903:        else
                   7904:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   7905:        fi
1.15      bertrand 7906:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7907: /* end confdefs.h.  */
1.15      bertrand 7908: #include "libpq-fe.h"
1.1       bertrand 7909: int
                   7910: main ()
                   7911: {
1.15      bertrand 7912: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   7913:             PQconnectdb(conninfo);
1.1       bertrand 7914:   ;
                   7915:   return 0;
                   7916: }
                   7917: _ACEOF
1.15      bertrand 7918: if ac_fn_c_try_link "$LINENO"; then :
                   7919:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7920: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 7921: else
1.15      bertrand 7922:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7923: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   7924: fi
                   7925: rm -f core conftest.err conftest.$ac_objext \
                   7926:     conftest$ac_exeext conftest.$ac_ext
                   7927:        LIBS=$saved_LIBS;
1.30      bertrand 7928:        if test $STATIC = no; then
                   7929:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   7930:        else
                   7931:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   7932:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   7933:        fi
1.15      bertrand 7934:    fi
                   7935: fi
                   7936: 
                   7937: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   7938:    libPgSQLinc=
                   7939:    libPgSQLlib=
                   7940: fi
                   7941: 
                   7942: 
                   7943: 
                   7944: 
1.14      bertrand 7945: 
1.40      bertrand 7946: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7947: # no [--without], valeur [--with=valeur].
                   7948: 
                   7949: # Check whether --with-bourne_shell was given.
                   7950: if test "${with_bourne_shell+set}" = set; then :
                   7951:   withval=$with_bourne_shell;
                   7952: else
                   7953:   with_bourne_shell=no
                   7954: fi
                   7955: 
                   7956: 
                   7957: if test "x$with_bourne_shell" = xyes; then
                   7958:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   7959: fi
                   7960: 
                   7961: if test "x$with_bourne_shell" = xno; then
                   7962:    if test $(uname) = "OS/2"; then
1.86      bertrand 7963:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide
                   7964: shell path with --with-bourne-shell=PATH !" "$LINENO" 5
1.40      bertrand 7965:    fi
                   7966: 
                   7967:    BSH_PATH=
                   7968: else
                   7969:    if test ! -x $with_bourne_shell; then
                   7970:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   7971:    fi
                   7972: 
                   7973:    if test $(uname) = "OS/2"; then
1.41      bertrand 7974:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   7975:                sed -e '1,$s/\//\\\\\\\\/g')
                   7976:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 7977:    else
                   7978:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   7979: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   7980:        BSH_PATH=
                   7981:    fi
                   7982: fi
                   7983: 
1.15      bertrand 7984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   7985: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57      bertrand 7986: if ${ac_cv_path_GREP+:} false; then :
1.15      bertrand 7987:   $as_echo_n "(cached) " >&6
                   7988: else
                   7989:   if test -z "$GREP"; then
                   7990:   ac_path_GREP_found=false
                   7991:   # Loop through the user's path and test for each of PROGNAME-LIST
                   7992:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7993: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   7994: do
                   7995:   IFS=$as_save_IFS
                   7996:   test -z "$as_dir" && as_dir=.
                   7997:     for ac_prog in grep ggrep; do
                   7998:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7999:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   8000:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   8001: # Check for GNU ac_path_GREP and select it if it is found.
                   8002:   # Check for GNU $ac_path_GREP
                   8003: case `"$ac_path_GREP" --version 2>&1` in
                   8004: *GNU*)
                   8005:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   8006: *)
                   8007:   ac_count=0
                   8008:   $as_echo_n 0123456789 >"conftest.in"
                   8009:   while :
                   8010:   do
                   8011:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8012:     mv "conftest.tmp" "conftest.in"
                   8013:     cp "conftest.in" "conftest.nl"
                   8014:     $as_echo 'GREP' >> "conftest.nl"
                   8015:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8016:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8017:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8018:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   8019:       # Best one so far, save it but keep looking for a better one
                   8020:       ac_cv_path_GREP="$ac_path_GREP"
                   8021:       ac_path_GREP_max=$ac_count
                   8022:     fi
                   8023:     # 10*(2^10) chars as input seems more than enough
                   8024:     test $ac_count -gt 10 && break
                   8025:   done
                   8026:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8027: esac
1.14      bertrand 8028: 
1.15      bertrand 8029:       $ac_path_GREP_found && break 3
                   8030:     done
                   8031:   done
                   8032:   done
                   8033: IFS=$as_save_IFS
                   8034:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 8035:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8036:   fi
                   8037: else
                   8038:   ac_cv_path_GREP=$GREP
1.1       bertrand 8039: fi
                   8040: 
                   8041: fi
1.15      bertrand 8042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   8043: $as_echo "$ac_cv_path_GREP" >&6; }
                   8044:  GREP="$ac_cv_path_GREP"
                   8045: 
                   8046: 
                   8047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   8048: $as_echo_n "checking for egrep... " >&6; }
1.57      bertrand 8049: if ${ac_cv_path_EGREP+:} false; then :
1.15      bertrand 8050:   $as_echo_n "(cached) " >&6
                   8051: else
                   8052:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   8053:    then ac_cv_path_EGREP="$GREP -E"
                   8054:    else
                   8055:      if test -z "$EGREP"; then
                   8056:   ac_path_EGREP_found=false
                   8057:   # Loop through the user's path and test for each of PROGNAME-LIST
                   8058:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8059: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   8060: do
                   8061:   IFS=$as_save_IFS
                   8062:   test -z "$as_dir" && as_dir=.
                   8063:     for ac_prog in egrep; do
                   8064:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8065:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   8066:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   8067: # Check for GNU ac_path_EGREP and select it if it is found.
                   8068:   # Check for GNU $ac_path_EGREP
                   8069: case `"$ac_path_EGREP" --version 2>&1` in
                   8070: *GNU*)
                   8071:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   8072: *)
                   8073:   ac_count=0
                   8074:   $as_echo_n 0123456789 >"conftest.in"
                   8075:   while :
                   8076:   do
                   8077:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8078:     mv "conftest.tmp" "conftest.in"
                   8079:     cp "conftest.in" "conftest.nl"
                   8080:     $as_echo 'EGREP' >> "conftest.nl"
                   8081:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8082:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8083:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8084:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   8085:       # Best one so far, save it but keep looking for a better one
                   8086:       ac_cv_path_EGREP="$ac_path_EGREP"
                   8087:       ac_path_EGREP_max=$ac_count
                   8088:     fi
                   8089:     # 10*(2^10) chars as input seems more than enough
                   8090:     test $ac_count -gt 10 && break
                   8091:   done
                   8092:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8093: esac
                   8094: 
                   8095:       $ac_path_EGREP_found && break 3
                   8096:     done
                   8097:   done
                   8098:   done
                   8099: IFS=$as_save_IFS
                   8100:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 8101:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8102:   fi
1.1       bertrand 8103: else
1.15      bertrand 8104:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 8105: fi
                   8106: 
1.15      bertrand 8107:    fi
1.1       bertrand 8108: fi
1.15      bertrand 8109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   8110: $as_echo "$ac_cv_path_EGREP" >&6; }
                   8111:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 8112: 
                   8113: 
1.15      bertrand 8114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8115: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8116: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8117:   $as_echo_n "(cached) " >&6
1.1       bertrand 8118: else
1.15      bertrand 8119:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8120: /* end confdefs.h.  */
                   8121: #include <stdlib.h>
                   8122: #include <stdarg.h>
                   8123: #include <string.h>
                   8124: #include <float.h>
                   8125: 
                   8126: int
                   8127: main ()
                   8128: {
                   8129: 
                   8130:   ;
                   8131:   return 0;
                   8132: }
                   8133: _ACEOF
1.15      bertrand 8134: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 8135:   ac_cv_header_stdc=yes
                   8136: else
1.15      bertrand 8137:   ac_cv_header_stdc=no
1.1       bertrand 8138: fi
                   8139: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8140: 
                   8141: if test $ac_cv_header_stdc = yes; then
                   8142:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 8143:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8144: /* end confdefs.h.  */
                   8145: #include <string.h>
                   8146: 
                   8147: _ACEOF
                   8148: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8149:   $EGREP "memchr" >/dev/null 2>&1; then :
                   8150: 
1.1       bertrand 8151: else
                   8152:   ac_cv_header_stdc=no
                   8153: fi
                   8154: rm -f conftest*
                   8155: 
                   8156: fi
                   8157: 
                   8158: if test $ac_cv_header_stdc = yes; then
                   8159:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 8160:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8161: /* end confdefs.h.  */
                   8162: #include <stdlib.h>
                   8163: 
                   8164: _ACEOF
                   8165: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8166:   $EGREP "free" >/dev/null 2>&1; then :
                   8167: 
1.1       bertrand 8168: else
                   8169:   ac_cv_header_stdc=no
                   8170: fi
                   8171: rm -f conftest*
                   8172: 
                   8173: fi
                   8174: 
                   8175: if test $ac_cv_header_stdc = yes; then
                   8176:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8177:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8178:   :
                   8179: else
1.15      bertrand 8180:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8181: /* end confdefs.h.  */
                   8182: #include <ctype.h>
                   8183: #include <stdlib.h>
                   8184: #if ((' ' & 0x0FF) == 0x020)
                   8185: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8186: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8187: #else
                   8188: # define ISLOWER(c) \
                   8189:           (('a' <= (c) && (c) <= 'i') \
                   8190:             || ('j' <= (c) && (c) <= 'r') \
                   8191:             || ('s' <= (c) && (c) <= 'z'))
                   8192: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8193: #endif
                   8194: 
                   8195: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8196: int
                   8197: main ()
                   8198: {
                   8199:   int i;
                   8200:   for (i = 0; i < 256; i++)
                   8201:     if (XOR (islower (i), ISLOWER (i))
                   8202:    || toupper (i) != TOUPPER (i))
                   8203:       return 2;
                   8204:   return 0;
                   8205: }
                   8206: _ACEOF
1.15      bertrand 8207: if ac_fn_c_try_run "$LINENO"; then :
                   8208: 
1.14      bertrand 8209: else
1.15      bertrand 8210:   ac_cv_header_stdc=no
                   8211: fi
                   8212: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8213:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8214: fi
1.1       bertrand 8215: 
                   8216: fi
                   8217: fi
1.15      bertrand 8218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8219: $as_echo "$ac_cv_header_stdc" >&6; }
                   8220: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8221: 
1.15      bertrand 8222: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8223: 
1.1       bertrand 8224: fi
                   8225: 
1.15      bertrand 8226: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8227: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8228:          inttypes.h stdint.h unistd.h
                   8229: do :
                   8230:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8231: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8232: "
1.36      bertrand 8233: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8234:   cat >>confdefs.h <<_ACEOF
                   8235: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8236: _ACEOF
1.1       bertrand 8237: 
                   8238: fi
                   8239: 
1.15      bertrand 8240: done
                   8241: 
                   8242: 
                   8243: # The cast to long int works around a bug in the HP C Compiler
                   8244: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8245: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8246: # This bug is HP SR number 8606223364.
                   8247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8248: $as_echo_n "checking size of void *... " >&6; }
1.57      bertrand 8249: if ${ac_cv_sizeof_void_p+:} false; then :
1.15      bertrand 8250:   $as_echo_n "(cached) " >&6
                   8251: else
                   8252:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8253: 
                   8254: else
1.15      bertrand 8255:   if test "$ac_cv_type_void_p" = yes; then
                   8256:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8257: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8258: as_fn_error 77 "cannot compute sizeof (void *)
1.57      bertrand 8259: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8260:    else
                   8261:      ac_cv_sizeof_void_p=0
                   8262:    fi
                   8263: fi
1.1       bertrand 8264: 
                   8265: fi
1.15      bertrand 8266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8267: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8268: 
1.1       bertrand 8269: 
                   8270: 
1.15      bertrand 8271: cat >>confdefs.h <<_ACEOF
                   8272: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8273: _ACEOF
1.1       bertrand 8274: 
1.15      bertrand 8275: 
                   8276: # The cast to long int works around a bug in the HP C Compiler
                   8277: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8278: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8279: # This bug is HP SR number 8606223364.
                   8280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8281: $as_echo_n "checking size of char... " >&6; }
1.57      bertrand 8282: if ${ac_cv_sizeof_char+:} false; then :
1.15      bertrand 8283:   $as_echo_n "(cached) " >&6
                   8284: else
                   8285:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8286: 
                   8287: else
                   8288:   if test "$ac_cv_type_char" = yes; then
                   8289:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8290: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8291: as_fn_error 77 "cannot compute sizeof (char)
1.57      bertrand 8292: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8293:    else
                   8294:      ac_cv_sizeof_char=0
                   8295:    fi
                   8296: fi
                   8297: 
1.1       bertrand 8298: fi
1.15      bertrand 8299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8300: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8301: 
                   8302: 
                   8303: 
1.15      bertrand 8304: cat >>confdefs.h <<_ACEOF
                   8305: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8306: _ACEOF
1.1       bertrand 8307: 
                   8308: 
1.15      bertrand 8309: # The cast to long int works around a bug in the HP C Compiler
                   8310: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8311: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8312: # This bug is HP SR number 8606223364.
                   8313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8314: $as_echo_n "checking size of short int... " >&6; }
1.57      bertrand 8315: if ${ac_cv_sizeof_short_int+:} false; then :
1.15      bertrand 8316:   $as_echo_n "(cached) " >&6
                   8317: else
                   8318:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8319: 
1.15      bertrand 8320: else
                   8321:   if test "$ac_cv_type_short_int" = yes; then
                   8322:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8323: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8324: as_fn_error 77 "cannot compute sizeof (short int)
1.57      bertrand 8325: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8326:    else
                   8327:      ac_cv_sizeof_short_int=0
                   8328:    fi
                   8329: fi
1.1       bertrand 8330: 
1.15      bertrand 8331: fi
                   8332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8333: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8334: 
                   8335: 
                   8336: 
1.15      bertrand 8337: cat >>confdefs.h <<_ACEOF
                   8338: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8339: _ACEOF
1.1       bertrand 8340: 
                   8341: 
1.15      bertrand 8342: # The cast to long int works around a bug in the HP C Compiler
                   8343: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8344: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8345: # This bug is HP SR number 8606223364.
                   8346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8347: $as_echo_n "checking size of int... " >&6; }
1.57      bertrand 8348: if ${ac_cv_sizeof_int+:} false; then :
1.15      bertrand 8349:   $as_echo_n "(cached) " >&6
                   8350: else
                   8351:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8352: 
1.15      bertrand 8353: else
                   8354:   if test "$ac_cv_type_int" = yes; then
                   8355:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8356: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8357: as_fn_error 77 "cannot compute sizeof (int)
1.57      bertrand 8358: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8359:    else
                   8360:      ac_cv_sizeof_int=0
                   8361:    fi
                   8362: fi
1.1       bertrand 8363: 
1.15      bertrand 8364: fi
                   8365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8366: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8367: 
                   8368: 
                   8369: 
1.15      bertrand 8370: cat >>confdefs.h <<_ACEOF
                   8371: #define SIZEOF_INT $ac_cv_sizeof_int
                   8372: _ACEOF
1.1       bertrand 8373: 
                   8374: 
1.15      bertrand 8375: # The cast to long int works around a bug in the HP C Compiler
                   8376: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8377: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8378: # This bug is HP SR number 8606223364.
                   8379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8380: $as_echo_n "checking size of long int... " >&6; }
1.57      bertrand 8381: if ${ac_cv_sizeof_long_int+:} false; then :
1.15      bertrand 8382:   $as_echo_n "(cached) " >&6
                   8383: else
                   8384:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8385: 
1.14      bertrand 8386: else
1.15      bertrand 8387:   if test "$ac_cv_type_long_int" = yes; then
                   8388:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8389: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8390: as_fn_error 77 "cannot compute sizeof (long int)
1.57      bertrand 8391: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8392:    else
                   8393:      ac_cv_sizeof_long_int=0
                   8394:    fi
                   8395: fi
1.1       bertrand 8396: 
                   8397: fi
1.15      bertrand 8398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8399: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8400: 
1.1       bertrand 8401: 
                   8402: 
1.15      bertrand 8403: cat >>confdefs.h <<_ACEOF
                   8404: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8405: _ACEOF
1.15      bertrand 8406: 
                   8407: 
                   8408: # The cast to long int works around a bug in the HP C Compiler
                   8409: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8410: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8411: # This bug is HP SR number 8606223364.
                   8412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8413: $as_echo_n "checking size of long long int... " >&6; }
1.57      bertrand 8414: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15      bertrand 8415:   $as_echo_n "(cached) " >&6
                   8416: else
                   8417:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8418: 
1.14      bertrand 8419: else
1.15      bertrand 8420:   if test "$ac_cv_type_long_long_int" = yes; then
                   8421:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8422: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8423: as_fn_error 77 "cannot compute sizeof (long long int)
1.57      bertrand 8424: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8425:    else
                   8426:      ac_cv_sizeof_long_long_int=0
                   8427:    fi
                   8428: fi
1.1       bertrand 8429: 
1.14      bertrand 8430: fi
1.15      bertrand 8431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8432: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8433: 
                   8434: 
                   8435: 
                   8436: cat >>confdefs.h <<_ACEOF
                   8437: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8438: _ACEOF
1.1       bertrand 8439: 
                   8440: 
1.15      bertrand 8441: # The cast to long int works around a bug in the HP C Compiler
                   8442: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8443: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8444: # This bug is HP SR number 8606223364.
                   8445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8446: $as_echo_n "checking size of float... " >&6; }
1.57      bertrand 8447: if ${ac_cv_sizeof_float+:} false; then :
1.15      bertrand 8448:   $as_echo_n "(cached) " >&6
                   8449: else
                   8450:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8451: 
                   8452: else
1.15      bertrand 8453:   if test "$ac_cv_type_float" = yes; then
                   8454:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8455: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8456: as_fn_error 77 "cannot compute sizeof (float)
1.57      bertrand 8457: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8458:    else
                   8459:      ac_cv_sizeof_float=0
                   8460:    fi
1.14      bertrand 8461: fi
                   8462: 
1.1       bertrand 8463: fi
1.15      bertrand 8464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8465: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8466: 
                   8467: 
                   8468: 
                   8469: cat >>confdefs.h <<_ACEOF
                   8470: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8471: _ACEOF
1.1       bertrand 8472: 
                   8473: 
1.15      bertrand 8474: # The cast to long int works around a bug in the HP C Compiler
                   8475: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8476: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8477: # This bug is HP SR number 8606223364.
                   8478: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8479: $as_echo_n "checking size of double... " >&6; }
1.57      bertrand 8480: if ${ac_cv_sizeof_double+:} false; then :
1.15      bertrand 8481:   $as_echo_n "(cached) " >&6
                   8482: else
                   8483:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8484: 
1.15      bertrand 8485: else
                   8486:   if test "$ac_cv_type_double" = yes; then
                   8487:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8488: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8489: as_fn_error 77 "cannot compute sizeof (double)
1.57      bertrand 8490: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8491:    else
                   8492:      ac_cv_sizeof_double=0
                   8493:    fi
                   8494: fi
1.1       bertrand 8495: 
1.15      bertrand 8496: fi
                   8497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8498: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8499: 
1.1       bertrand 8500: 
                   8501: 
1.15      bertrand 8502: cat >>confdefs.h <<_ACEOF
                   8503: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8504: _ACEOF
1.15      bertrand 8505: 
                   8506: 
                   8507: # The cast to long int works around a bug in the HP C Compiler
                   8508: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8509: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8510: # This bug is HP SR number 8606223364.
                   8511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8512: $as_echo_n "checking size of long double... " >&6; }
1.57      bertrand 8513: if ${ac_cv_sizeof_long_double+:} false; then :
1.15      bertrand 8514:   $as_echo_n "(cached) " >&6
                   8515: else
                   8516:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8517: 
1.14      bertrand 8518: else
1.15      bertrand 8519:   if test "$ac_cv_type_long_double" = yes; then
                   8520:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8521: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8522: as_fn_error 77 "cannot compute sizeof (long double)
1.57      bertrand 8523: See \`config.log' for more details" "$LINENO" 5; }
1.15      bertrand 8524:    else
                   8525:      ac_cv_sizeof_long_double=0
                   8526:    fi
                   8527: fi
1.1       bertrand 8528: 
                   8529: fi
1.15      bertrand 8530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8531: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8532: 
1.1       bertrand 8533: 
                   8534: 
1.15      bertrand 8535: cat >>confdefs.h <<_ACEOF
                   8536: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8537: _ACEOF
                   8538: 
                   8539: 
1.15      bertrand 8540: 
                   8541: ac_header_dirent=no
                   8542: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8543:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8545: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57      bertrand 8546: if eval \${$as_ac_Header+:} false; then :
1.15      bertrand 8547:   $as_echo_n "(cached) " >&6
1.1       bertrand 8548: else
1.15      bertrand 8549:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8550: /* end confdefs.h.  */
                   8551: #include <sys/types.h>
1.15      bertrand 8552: #include <$ac_hdr>
1.1       bertrand 8553: 
1.15      bertrand 8554: int
                   8555: main ()
                   8556: {
                   8557: if ((DIR *) 0)
                   8558: return 0;
                   8559:   ;
                   8560:   return 0;
                   8561: }
1.1       bertrand 8562: _ACEOF
1.15      bertrand 8563: if ac_fn_c_try_compile "$LINENO"; then :
                   8564:   eval "$as_ac_Header=yes"
1.1       bertrand 8565: else
1.15      bertrand 8566:   eval "$as_ac_Header=no"
                   8567: fi
                   8568: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8569: fi
1.15      bertrand 8570: eval ac_res=\$$as_ac_Header
                   8571:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8572: $as_echo "$ac_res" >&6; }
1.36      bertrand 8573: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8574:   cat >>confdefs.h <<_ACEOF
                   8575: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8576: _ACEOF
1.1       bertrand 8577: 
1.15      bertrand 8578: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8579: fi
                   8580: 
1.15      bertrand 8581: done
                   8582: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8583: if test $ac_header_dirent = dirent.h; then
                   8584:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8585: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8586: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8587:   $as_echo_n "(cached) " >&6
                   8588: else
                   8589:   ac_func_search_save_LIBS=$LIBS
                   8590: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8591: /* end confdefs.h.  */
                   8592: 
                   8593: /* Override any GCC internal prototype to avoid an error.
                   8594:    Use char because int might match the return type of a GCC
                   8595:    builtin and then its argument prototype would still apply.  */
                   8596: #ifdef __cplusplus
                   8597: extern "C"
                   8598: #endif
                   8599: char opendir ();
                   8600: int
                   8601: main ()
                   8602: {
                   8603: return opendir ();
                   8604:   ;
                   8605:   return 0;
                   8606: }
1.14      bertrand 8607: _ACEOF
1.15      bertrand 8608: for ac_lib in '' dir; do
                   8609:   if test -z "$ac_lib"; then
                   8610:     ac_res="none required"
                   8611:   else
                   8612:     ac_res=-l$ac_lib
                   8613:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8614:   fi
                   8615:   if ac_fn_c_try_link "$LINENO"; then :
                   8616:   ac_cv_search_opendir=$ac_res
                   8617: fi
                   8618: rm -f core conftest.err conftest.$ac_objext \
                   8619:     conftest$ac_exeext
1.57      bertrand 8620:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8621:   break
                   8622: fi
                   8623: done
1.57      bertrand 8624: if ${ac_cv_search_opendir+:} false; then :
1.1       bertrand 8625: 
1.15      bertrand 8626: else
                   8627:   ac_cv_search_opendir=no
                   8628: fi
                   8629: rm conftest.$ac_ext
                   8630: LIBS=$ac_func_search_save_LIBS
                   8631: fi
                   8632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8633: $as_echo "$ac_cv_search_opendir" >&6; }
                   8634: ac_res=$ac_cv_search_opendir
                   8635: if test "$ac_res" != no; then :
                   8636:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8637: 
1.14      bertrand 8638: fi
1.1       bertrand 8639: 
                   8640: else
1.15      bertrand 8641:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8642: $as_echo_n "checking for library containing opendir... " >&6; }
1.57      bertrand 8643: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8644:   $as_echo_n "(cached) " >&6
                   8645: else
                   8646:   ac_func_search_save_LIBS=$LIBS
                   8647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8648: /* end confdefs.h.  */
1.15      bertrand 8649: 
                   8650: /* Override any GCC internal prototype to avoid an error.
                   8651:    Use char because int might match the return type of a GCC
                   8652:    builtin and then its argument prototype would still apply.  */
                   8653: #ifdef __cplusplus
                   8654: extern "C"
                   8655: #endif
                   8656: char opendir ();
1.1       bertrand 8657: int
                   8658: main ()
                   8659: {
1.15      bertrand 8660: return opendir ();
1.1       bertrand 8661:   ;
                   8662:   return 0;
                   8663: }
                   8664: _ACEOF
1.15      bertrand 8665: for ac_lib in '' x; do
                   8666:   if test -z "$ac_lib"; then
                   8667:     ac_res="none required"
                   8668:   else
                   8669:     ac_res=-l$ac_lib
                   8670:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8671:   fi
                   8672:   if ac_fn_c_try_link "$LINENO"; then :
                   8673:   ac_cv_search_opendir=$ac_res
                   8674: fi
                   8675: rm -f core conftest.err conftest.$ac_objext \
                   8676:     conftest$ac_exeext
1.57      bertrand 8677:   if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8678:   break
                   8679: fi
                   8680: done
1.57      bertrand 8681: if ${ac_cv_search_opendir+:} false; then :
1.15      bertrand 8682: 
1.1       bertrand 8683: else
1.15      bertrand 8684:   ac_cv_search_opendir=no
                   8685: fi
                   8686: rm conftest.$ac_ext
                   8687: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8688: fi
1.15      bertrand 8689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8690: $as_echo "$ac_cv_search_opendir" >&6; }
                   8691: ac_res=$ac_cv_search_opendir
                   8692: if test "$ac_res" != no; then :
                   8693:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8694: 
1.1       bertrand 8695: fi
                   8696: 
                   8697: fi
                   8698: 
1.15      bertrand 8699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8700: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57      bertrand 8701: if ${ac_cv_header_stdc+:} false; then :
1.15      bertrand 8702:   $as_echo_n "(cached) " >&6
1.1       bertrand 8703: else
1.15      bertrand 8704:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8705: /* end confdefs.h.  */
1.15      bertrand 8706: #include <stdlib.h>
                   8707: #include <stdarg.h>
                   8708: #include <string.h>
                   8709: #include <float.h>
                   8710: 
1.1       bertrand 8711: int
                   8712: main ()
                   8713: {
1.15      bertrand 8714: 
1.1       bertrand 8715:   ;
                   8716:   return 0;
                   8717: }
                   8718: _ACEOF
1.15      bertrand 8719: if ac_fn_c_try_compile "$LINENO"; then :
                   8720:   ac_cv_header_stdc=yes
1.14      bertrand 8721: else
1.15      bertrand 8722:   ac_cv_header_stdc=no
                   8723: fi
                   8724: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8725: 
                   8726: if test $ac_cv_header_stdc = yes; then
                   8727:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8728:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8729: /* end confdefs.h.  */
                   8730: #include <string.h>
                   8731: 
                   8732: _ACEOF
                   8733: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8734:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8735: 
1.15      bertrand 8736: else
                   8737:   ac_cv_header_stdc=no
1.1       bertrand 8738: fi
1.15      bertrand 8739: rm -f conftest*
1.14      bertrand 8740: 
1.1       bertrand 8741: fi
                   8742: 
1.15      bertrand 8743: if test $ac_cv_header_stdc = yes; then
                   8744:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8745:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8746: /* end confdefs.h.  */
                   8747: #include <stdlib.h>
                   8748: 
1.14      bertrand 8749: _ACEOF
1.15      bertrand 8750: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8751:   $EGREP "free" >/dev/null 2>&1; then :
                   8752: 
                   8753: else
                   8754:   ac_cv_header_stdc=no
                   8755: fi
                   8756: rm -f conftest*
1.1       bertrand 8757: 
                   8758: fi
                   8759: 
1.15      bertrand 8760: if test $ac_cv_header_stdc = yes; then
                   8761:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8762:   if test "$cross_compiling" = yes; then :
                   8763:   :
1.1       bertrand 8764: else
1.15      bertrand 8765:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8766: /* end confdefs.h.  */
1.15      bertrand 8767: #include <ctype.h>
                   8768: #include <stdlib.h>
                   8769: #if ((' ' & 0x0FF) == 0x020)
                   8770: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8771: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8772: #else
                   8773: # define ISLOWER(c) \
                   8774:           (('a' <= (c) && (c) <= 'i') \
                   8775:             || ('j' <= (c) && (c) <= 'r') \
                   8776:             || ('s' <= (c) && (c) <= 'z'))
                   8777: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8778: #endif
1.1       bertrand 8779: 
1.15      bertrand 8780: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8781: int
                   8782: main ()
                   8783: {
1.15      bertrand 8784:   int i;
                   8785:   for (i = 0; i < 256; i++)
                   8786:     if (XOR (islower (i), ISLOWER (i))
                   8787:    || toupper (i) != TOUPPER (i))
                   8788:       return 2;
1.1       bertrand 8789:   return 0;
                   8790: }
                   8791: _ACEOF
1.15      bertrand 8792: if ac_fn_c_try_run "$LINENO"; then :
                   8793: 
1.14      bertrand 8794: else
1.15      bertrand 8795:   ac_cv_header_stdc=no
                   8796: fi
                   8797: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8798:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8799: fi
1.14      bertrand 8800: 
1.1       bertrand 8801: fi
                   8802: fi
1.15      bertrand 8803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8804: $as_echo "$ac_cv_header_stdc" >&6; }
                   8805: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8806: 
1.15      bertrand 8807: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8808: 
                   8809: fi
                   8810: 
1.15      bertrand 8811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8812: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57      bertrand 8813: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15      bertrand 8814:   $as_echo_n "(cached) " >&6
1.1       bertrand 8815: else
1.15      bertrand 8816:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8817: /* end confdefs.h.  */
1.14      bertrand 8818: #include <sys/types.h>
1.15      bertrand 8819: #include <sys/wait.h>
                   8820: #ifndef WEXITSTATUS
                   8821: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8822: #endif
                   8823: #ifndef WIFEXITED
                   8824: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8825: #endif
1.1       bertrand 8826: 
                   8827: int
                   8828: main ()
                   8829: {
1.15      bertrand 8830:   int s;
                   8831:   wait (&s);
                   8832:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8833:   ;
                   8834:   return 0;
                   8835: }
                   8836: _ACEOF
1.15      bertrand 8837: if ac_fn_c_try_compile "$LINENO"; then :
                   8838:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8839: else
1.15      bertrand 8840:   ac_cv_header_sys_wait_h=no
                   8841: fi
                   8842: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8843: fi
                   8844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8845: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8846: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8847: 
1.15      bertrand 8848: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8849: 
                   8850: fi
                   8851: 
1.15      bertrand 8852: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8853:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8854:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8855: do :
                   8856:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8857: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8858: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8859:   cat >>confdefs.h <<_ACEOF
                   8860: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8861: _ACEOF
                   8862: 
                   8863: fi
                   8864: 
1.15      bertrand 8865: done
                   8866: 
1.1       bertrand 8867: 
1.15      bertrand 8868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8869: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57      bertrand 8870: if ${ac_cv_c_const+:} false; then :
1.15      bertrand 8871:   $as_echo_n "(cached) " >&6
1.1       bertrand 8872: else
1.15      bertrand 8873:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8874: /* end confdefs.h.  */
                   8875: 
                   8876: int
                   8877: main ()
                   8878: {
1.15      bertrand 8879: /* FIXME: Include the comments suggested by Paul. */
                   8880: #ifndef __cplusplus
                   8881:   /* Ultrix mips cc rejects this.  */
                   8882:   typedef int charset[2];
                   8883:   const charset cs;
                   8884:   /* SunOS 4.1.1 cc rejects this.  */
                   8885:   char const *const *pcpcc;
                   8886:   char **ppc;
                   8887:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   8888:   struct point {int x, y;};
                   8889:   static struct point const zero = {0,0};
                   8890:   /* AIX XL C 1.02.0.0 rejects this.
                   8891:      It does not let you subtract one const X* pointer from another in
                   8892:      an arm of an if-expression whose if-part is not a constant
                   8893:      expression */
                   8894:   const char *g = "string";
                   8895:   pcpcc = &g + (g ? g-g : 0);
                   8896:   /* HPUX 7.0 cc rejects these. */
                   8897:   ++pcpcc;
                   8898:   ppc = (char**) pcpcc;
                   8899:   pcpcc = (char const *const *) ppc;
                   8900:   { /* SCO 3.2v4 cc rejects this.  */
                   8901:     char *t;
                   8902:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   8903: 
                   8904:     *t++ = 0;
                   8905:     if (s) return 0;
                   8906:   }
                   8907:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   8908:     int x[] = {25, 17};
                   8909:     const int *foo = &x[0];
                   8910:     ++foo;
                   8911:   }
                   8912:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   8913:     typedef const int *iptr;
                   8914:     iptr p = 0;
                   8915:     ++p;
                   8916:   }
                   8917:   { /* AIX XL C 1.02.0.0 rejects this saying
                   8918:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   8919:     struct s { int j; const int *ap[3]; };
                   8920:     struct s *b; b->j = 5;
                   8921:   }
                   8922:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   8923:     const int foo = 10;
                   8924:     if (!foo) return 0;
                   8925:   }
                   8926:   return !cs[0] && !zero.x;
                   8927: #endif
                   8928: 
1.14      bertrand 8929:   ;
1.1       bertrand 8930:   return 0;
                   8931: }
                   8932: _ACEOF
1.15      bertrand 8933: if ac_fn_c_try_compile "$LINENO"; then :
                   8934:   ac_cv_c_const=yes
1.14      bertrand 8935: else
1.15      bertrand 8936:   ac_cv_c_const=no
1.1       bertrand 8937: fi
1.14      bertrand 8938: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8939: fi
1.15      bertrand 8940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   8941: $as_echo "$ac_cv_c_const" >&6; }
                   8942: if test $ac_cv_c_const = no; then
1.1       bertrand 8943: 
1.15      bertrand 8944: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 8945: 
1.15      bertrand 8946: fi
1.1       bertrand 8947: 
1.15      bertrand 8948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   8949: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57      bertrand 8950: if ${ac_cv_type_uid_t+:} false; then :
1.15      bertrand 8951:   $as_echo_n "(cached) " >&6
1.1       bertrand 8952: else
1.15      bertrand 8953:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8954: /* end confdefs.h.  */
1.15      bertrand 8955: #include <sys/types.h>
                   8956: 
1.1       bertrand 8957: _ACEOF
1.15      bertrand 8958: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8959:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   8960:   ac_cv_type_uid_t=yes
1.1       bertrand 8961: else
1.15      bertrand 8962:   ac_cv_type_uid_t=no
                   8963: fi
                   8964: rm -f conftest*
1.14      bertrand 8965: 
1.1       bertrand 8966: fi
1.15      bertrand 8967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   8968: $as_echo "$ac_cv_type_uid_t" >&6; }
                   8969: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 8970: 
1.15      bertrand 8971: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 8972: 
                   8973: 
1.15      bertrand 8974: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 8975: 
                   8976: fi
                   8977: 
1.15      bertrand 8978: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57      bertrand 8979: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1       bertrand 8980: 
                   8981: else
1.15      bertrand 8982: 
                   8983: cat >>confdefs.h <<_ACEOF
                   8984: #define pid_t int
1.14      bertrand 8985: _ACEOF
                   8986: 
1.15      bertrand 8987: fi
1.14      bertrand 8988: 
1.15      bertrand 8989: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57      bertrand 8990: if test "x$ac_cv_type_size_t" = xyes; then :
1.14      bertrand 8991: 
1.15      bertrand 8992: else
1.1       bertrand 8993: 
1.15      bertrand 8994: cat >>confdefs.h <<_ACEOF
                   8995: #define size_t unsigned int
1.1       bertrand 8996: _ACEOF
1.14      bertrand 8997: 
1.1       bertrand 8998: fi
                   8999: 
1.15      bertrand 9000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   9001: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57      bertrand 9002: if ${ac_cv_header_time+:} false; then :
1.15      bertrand 9003:   $as_echo_n "(cached) " >&6
1.1       bertrand 9004: else
1.15      bertrand 9005:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9006: /* end confdefs.h.  */
1.15      bertrand 9007: #include <sys/types.h>
                   9008: #include <sys/time.h>
                   9009: #include <time.h>
1.1       bertrand 9010: 
1.14      bertrand 9011: int
                   9012: main ()
                   9013: {
1.15      bertrand 9014: if ((struct tm *) 0)
                   9015: return 0;
1.14      bertrand 9016:   ;
                   9017:   return 0;
                   9018: }
1.1       bertrand 9019: _ACEOF
1.15      bertrand 9020: if ac_fn_c_try_compile "$LINENO"; then :
                   9021:   ac_cv_header_time=yes
1.1       bertrand 9022: else
1.15      bertrand 9023:   ac_cv_header_time=no
1.1       bertrand 9024: fi
1.15      bertrand 9025: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9026: fi
1.15      bertrand 9027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   9028: $as_echo "$ac_cv_header_time" >&6; }
                   9029: if test $ac_cv_header_time = yes; then
1.1       bertrand 9030: 
1.15      bertrand 9031: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 9032: 
                   9033: fi
                   9034: 
1.15      bertrand 9035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   9036: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57      bertrand 9037: if ${ac_cv_struct_tm+:} false; then :
1.15      bertrand 9038:   $as_echo_n "(cached) " >&6
1.1       bertrand 9039: else
1.15      bertrand 9040:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 9041: /* end confdefs.h.  */
1.15      bertrand 9042: #include <sys/types.h>
                   9043: #include <time.h>
1.1       bertrand 9044: 
                   9045: int
                   9046: main ()
                   9047: {
1.15      bertrand 9048: struct tm tm;
                   9049:                     int *p = &tm.tm_sec;
                   9050:                     return !p;
1.1       bertrand 9051:   ;
                   9052:   return 0;
                   9053: }
                   9054: _ACEOF
1.15      bertrand 9055: if ac_fn_c_try_compile "$LINENO"; then :
                   9056:   ac_cv_struct_tm=time.h
1.1       bertrand 9057: else
1.15      bertrand 9058:   ac_cv_struct_tm=sys/time.h
                   9059: fi
                   9060: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9061: fi
                   9062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   9063: $as_echo "$ac_cv_struct_tm" >&6; }
                   9064: if test $ac_cv_struct_tm = sys/time.h; then
                   9065: 
                   9066: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 9067: 
1.1       bertrand 9068: fi
                   9069: 
                   9070: 
1.15      bertrand 9071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   9072: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57      bertrand 9073: if ${ac_cv_type_signal+:} false; then :
1.15      bertrand 9074:   $as_echo_n "(cached) " >&6
1.1       bertrand 9075: else
1.15      bertrand 9076:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9077: /* end confdefs.h.  */
1.15      bertrand 9078: #include <sys/types.h>
                   9079: #include <signal.h>
1.1       bertrand 9080: 
                   9081: int
                   9082: main ()
                   9083: {
1.15      bertrand 9084: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 9085:   ;
                   9086:   return 0;
                   9087: }
                   9088: _ACEOF
1.15      bertrand 9089: if ac_fn_c_try_compile "$LINENO"; then :
                   9090:   ac_cv_type_signal=int
1.1       bertrand 9091: else
1.15      bertrand 9092:   ac_cv_type_signal=void
1.1       bertrand 9093: fi
1.15      bertrand 9094: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9095: fi
1.15      bertrand 9096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   9097: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 9098: 
1.15      bertrand 9099: cat >>confdefs.h <<_ACEOF
                   9100: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 9101: _ACEOF
1.1       bertrand 9102: 
1.15      bertrand 9103: 
                   9104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   9105: $as_echo_n "checking for working strcoll... " >&6; }
1.57      bertrand 9106: if ${ac_cv_func_strcoll_works+:} false; then :
1.15      bertrand 9107:   $as_echo_n "(cached) " >&6
                   9108: else
                   9109:   if test "$cross_compiling" = yes; then :
                   9110:   ac_cv_func_strcoll_works=no
                   9111: else
                   9112:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9113: /* end confdefs.h.  */
                   9114: $ac_includes_default
                   9115: int
                   9116: main ()
                   9117: {
                   9118: return (strcoll ("abc", "def") >= 0 ||
                   9119:     strcoll ("ABC", "DEF") >= 0 ||
                   9120:     strcoll ("123", "456") >= 0)
                   9121:   ;
                   9122:   return 0;
                   9123: }
                   9124: _ACEOF
                   9125: if ac_fn_c_try_run "$LINENO"; then :
                   9126:   ac_cv_func_strcoll_works=yes
                   9127: else
                   9128:   ac_cv_func_strcoll_works=no
                   9129: fi
                   9130: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9131:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 9132: fi
1.1       bertrand 9133: 
                   9134: fi
1.15      bertrand 9135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9136: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9137: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9138: 
1.15      bertrand 9139: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9140: 
1.15      bertrand 9141: fi
1.1       bertrand 9142: 
1.15      bertrand 9143: for ac_func in strftime
                   9144: do :
                   9145:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57      bertrand 9146: if test "x$ac_cv_func_strftime" = xyes; then :
1.15      bertrand 9147:   cat >>confdefs.h <<_ACEOF
                   9148: #define HAVE_STRFTIME 1
                   9149: _ACEOF
1.1       bertrand 9150: 
                   9151: else
1.15      bertrand 9152:   # strftime is in -lintl on SCO UNIX.
                   9153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9154: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57      bertrand 9155: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15      bertrand 9156:   $as_echo_n "(cached) " >&6
                   9157: else
                   9158:   ac_check_lib_save_LIBS=$LIBS
                   9159: LIBS="-lintl  $LIBS"
                   9160: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9161: /* end confdefs.h.  */
                   9162: 
                   9163: /* Override any GCC internal prototype to avoid an error.
                   9164:    Use char because int might match the return type of a GCC
                   9165:    builtin and then its argument prototype would still apply.  */
                   9166: #ifdef __cplusplus
                   9167: extern "C"
                   9168: #endif
1.15      bertrand 9169: char strftime ();
1.1       bertrand 9170: int
                   9171: main ()
                   9172: {
1.15      bertrand 9173: return strftime ();
1.1       bertrand 9174:   ;
                   9175:   return 0;
                   9176: }
                   9177: _ACEOF
1.15      bertrand 9178: if ac_fn_c_try_link "$LINENO"; then :
                   9179:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9180: else
1.15      bertrand 9181:   ac_cv_lib_intl_strftime=no
                   9182: fi
                   9183: rm -f core conftest.err conftest.$ac_objext \
                   9184:     conftest$ac_exeext conftest.$ac_ext
                   9185: LIBS=$ac_check_lib_save_LIBS
                   9186: fi
                   9187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9188: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57      bertrand 9189: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15      bertrand 9190:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9191: 
                   9192: LIBS="-lintl $LIBS"
                   9193: fi
                   9194: 
                   9195: fi
                   9196: done
                   9197: 
                   9198: for ac_func in vprintf
                   9199: do :
                   9200:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57      bertrand 9201: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15      bertrand 9202:   cat >>confdefs.h <<_ACEOF
                   9203: #define HAVE_VPRINTF 1
                   9204: _ACEOF
                   9205: 
                   9206: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57      bertrand 9207: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15      bertrand 9208: 
                   9209: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9210: 
                   9211: fi
                   9212: 
                   9213: fi
1.15      bertrand 9214: done
                   9215: 
                   9216: 
                   9217: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9218:        strerror strspn strstr strtod
                   9219: do :
                   9220:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9221: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9222: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9223:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9224: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9225: _ACEOF
                   9226: 
                   9227: fi
                   9228: done
                   9229: 
                   9230: 
1.15      bertrand 9231: 
                   9232: # Check whether --with-openssl_arch was given.
                   9233: if test "${with_openssl_arch+set}" = set; then :
                   9234:   withval=$with_openssl_arch;
                   9235: else
                   9236:   with_openssl_arch=none
                   9237: fi
                   9238: 
                   9239: 
1.31      bertrand 9240: if test $(uname) = "OS/2"; then
1.34      bertrand 9241:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9242: else
1.31      bertrand 9243:    if test "x$with_openssl_arch" = xnone; then
1.67      bertrand 9244:        (cd tools/$OPENSSL && ./config no-asm)
1.31      bertrand 9245:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9246:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9247:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9248:    elif test "x$with_openssl_arch" = xlist; then
                   9249:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9250:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9251:    else
1.67      bertrand 9252:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31      bertrand 9253:    fi
1.15      bertrand 9254: fi
1.1       bertrand 9255: 
                   9256: if test "$MYGNUPLOT" = "yes"; then
                   9257:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9258:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9259:                (cd "$srcdir/tools" && tar -xf -)
                   9260:    fi
1.80      bertrand 9261:    subdirs="$subdirs tools/$GNUPLOT"
1.1       bertrand 9262: 
                   9263:    GNUPLOT_COMPILATION=$GNUPLOT
                   9264: else
                   9265:    GNUPLOT_COMPILATION=
                   9266: fi
                   9267: 
                   9268: 
                   9269: 
1.88      bertrand 9270: HOST=$target
1.69      bertrand 9271: 
                   9272: 
1.87      bertrand 9273: my_save_cflags="$CFLAGS"
                   9274: FPCFLAGS=""
                   9275: 
                   9276: CFLAGS=-malign-double
                   9277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -malign-double" >&5
                   9278: $as_echo_n "checking whether CC supports -malign-double... " >&6; }
                   9279: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9280: /* end confdefs.h.  */
                   9281: 
                   9282: int
                   9283: main ()
                   9284: {
1.1       bertrand 9285: 
1.87      bertrand 9286:   ;
                   9287:   return 0;
                   9288: }
                   9289: _ACEOF
                   9290: if ac_fn_c_try_compile "$LINENO"; then :
                   9291:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9292: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -malign-double"
                   9293: else
                   9294:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9295: $as_echo "no" >&6; }
                   9296: fi
                   9297: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9298: CFLAGS=-mieee-fp
                   9299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee-fp" >&5
                   9300: $as_echo_n "checking whether CC supports -mieee-fp... " >&6; }
                   9301: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9302: /* end confdefs.h.  */
                   9303: 
                   9304: int
                   9305: main ()
                   9306: {
1.1       bertrand 9307: 
1.87      bertrand 9308:   ;
                   9309:   return 0;
                   9310: }
                   9311: _ACEOF
                   9312: if ac_fn_c_try_compile "$LINENO"; then :
                   9313:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9314: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee-fp"
                   9315: else
                   9316:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9317: $as_echo "no" >&6; }
                   9318: fi
                   9319: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9320: CFLAGS=-mieee
                   9321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee" >&5
                   9322: $as_echo_n "checking whether CC supports -mieee... " >&6; }
                   9323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9324: /* end confdefs.h.  */
1.1       bertrand 9325: 
1.87      bertrand 9326: int
                   9327: main ()
                   9328: {
1.1       bertrand 9329: 
1.87      bertrand 9330:   ;
                   9331:   return 0;
                   9332: }
                   9333: _ACEOF
                   9334: if ac_fn_c_try_compile "$LINENO"; then :
                   9335:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9336: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee"
                   9337: else
                   9338:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9339: $as_echo "no" >&6; }
                   9340: fi
                   9341: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9342: CFLAGS=$my_save_cflags
1.1       bertrand 9343: 
1.87      bertrand 9344: CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign"
                   9345: FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9346: FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9347: CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char"
1.1       bertrand 9348: 
1.87      bertrand 9349: case $target_os in
1.8       bertrand 9350: 
                   9351:    cygwin*)
                   9352:        OS=Cygwin
                   9353:    break ;;
                   9354: 
                   9355:    interix*)
                   9356:        OS=Interix
                   9357:    break ;;
                   9358: 
                   9359:    *)
                   9360:        OS=$(uname)
                   9361:    break ;;
                   9362: 
                   9363: esac
                   9364: 
                   9365: 
                   9366: 
1.1       bertrand 9367: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9368: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9369: MALLOC=
1.1       bertrand 9370: 
1.22      bertrand 9371: case $OS in
1.17      bertrand 9372:     Darwin)
1.31      bertrand 9373:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9374:        NESTED_FUNCTIONS=-fnested-functions
1.23      bertrand 9375:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9376:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9377:                --disable-shared --enable-static --enable-threads \
                   9378:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9379:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9380:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9381:        C_STANDARD=-std=gnu99
1.75      bertrand 9382:        ELF=
1.17      bertrand 9383:    break ;;
                   9384: 
1.31      bertrand 9385:     Cygwin)
                   9386:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9387:        NESTED_FUNCTIONS=
1.31      bertrand 9388:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9389:                --disable-shared --enable-static --enable-threads \
                   9390:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9391:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9392:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9393:        C_STANDARD=-std=gnu99
1.75      bertrand 9394:        ELF=
1.17      bertrand 9395:    break ;;
                   9396: 
1.34      bertrand 9397:    Interix)
                   9398:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9399:        NESTED_FUNCTIONS=
                   9400:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9401:                --disable-shared --enable-static --enable-threads \
                   9402:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9403:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9404:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 9405:        C_STANDARD=-std=gnu99
1.75      bertrand 9406:        ELF=
1.34      bertrand 9407:    break;;
                   9408: 
1.31      bertrand 9409:     AIX)
                   9410:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9411:        NESTED_FUNCTIONS=
1.31      bertrand 9412:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9413:                --disable-shared --enable-static --enable-threads \
                   9414:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9415:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9416:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9417:        C_STANDARD=-std=gnu99
1.75      bertrand 9418:        ELF=
1.18      bertrand 9419:    break ;;
                   9420: 
1.31      bertrand 9421:     OS/2)
1.37      bertrand 9422:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9423:            FINAL_ENCODING=CP850; \
                   9424:        fi;
1.31      bertrand 9425:        OS=OS2
                   9426:        NESTED_FUNCTIONS=
                   9427:        EXPORT_DYNAMIC=-Zmap
                   9428:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9429:                --without-cairo --disable-shared --enable-static \
1.69      bertrand 9430:                --enable-threads \
                   9431:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9432:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9433:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9434:        C_STANDARD=
1.75      bertrand 9435:        ELF=
1.31      bertrand 9436:    break;;
                   9437: 
1.35      bertrand 9438:    OpenBSD)
1.37      bertrand 9439:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9440:            FINAL_ENCODING=UTF-8; \
                   9441:        fi;
                   9442:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9443:        NESTED_FUNCTIONS=
                   9444:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9445:                --disable-shared --enable-static --enable-threads \
                   9446:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9447:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9448:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 9449:        C_STANDARD=-std=gnu99
1.75      bertrand 9450:        ELF=
1.35      bertrand 9451:    break;;
                   9452: 
1.49      bertrand 9453:     SunOS)
                   9454:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9455:        NESTED_FUNCTIONS=
                   9456: 
                   9457:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9458:                --disable-shared --enable-static --enable-threads \
                   9459:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9460:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9461:                LDFLAGS=\"$LDFLAGS\""
1.49      bertrand 9462:        C_STANDARD=-std=gnu99
                   9463:        MALLOC=-lumem
1.75      bertrand 9464:        ELF=
                   9465:    break ;;
                   9466: 
                   9467:     NetBSD)
                   9468:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9469:        NESTED_FUNCTIONS=
                   9470: 
                   9471:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9472:                --disable-shared --enable-static --enable-threads \
                   9473:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9474:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9475:                LDFLAGS=\"$LDFLAGS\""
                   9476:        C_STANDARD=-std=gnu99
                   9477:        GCCBIN=`which gcc`
                   9478:        GCCLIB=`dirname $GCCBIN`/../lib
                   9479:        ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49      bertrand 9480:    break ;;
                   9481: 
1.17      bertrand 9482:     *)
1.31      bertrand 9483:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9484:        NESTED_FUNCTIONS=
1.36      bertrand 9485: 
1.31      bertrand 9486:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9487:                --disable-shared --enable-static --enable-threads \
                   9488:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9489:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9490:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9491:        C_STANDARD=-std=gnu99
1.75      bertrand 9492:        ELF=
1.17      bertrand 9493:    break ;;
1.90    ! bertrand 9494: esac
        !          9495: 
        !          9496: case $OS in
        !          9497:     OS2)
        !          9498:        WHOLE_LIB1=""
        !          9499:        WHOLE_LIB2=""
        !          9500:    break ;;
1.17      bertrand 9501: 
1.90    ! bertrand 9502:    *)
        !          9503:        WHOLE_LIB1="-Wl,-whole-archive"
        !          9504:        WHOLE_LIB2="-Wl,-no-whole-archive"
        !          9505:    break ;;
1.17      bertrand 9506: esac
                   9507: 
                   9508: 
                   9509: 
                   9510: 
1.1       bertrand 9511: 
                   9512: 
                   9513: 
                   9514: 
                   9515: 
                   9516: 
                   9517: 
                   9518: 
                   9519: 
                   9520: 
                   9521: 
                   9522: 
                   9523: 
                   9524: 
                   9525: 
                   9526: 
                   9527: 
                   9528: 
                   9529: 
1.9       bertrand 9530: 
1.24      bertrand 9531: 
1.30      bertrand 9532: 
1.33      bertrand 9533: 
                   9534: 
                   9535: 
1.34      bertrand 9536: 
1.35      bertrand 9537: 
1.49      bertrand 9538: 
1.55      bertrand 9539: 
                   9540: 
1.56      bertrand 9541: 
                   9542: 
                   9543: 
                   9544: 
1.69      bertrand 9545: 
1.75      bertrand 9546: 
1.78      bertrand 9547: 
1.80      bertrand 9548: 
                   9549: 
                   9550: 
1.82      bertrand 9551: 
1.90    ! bertrand 9552: 
        !          9553: 
        !          9554: 
1.69      bertrand 9555: subdirs="$subdirs tools/$NCURSES"
                   9556: 
                   9557: subdirs="$subdirs tools/$READLINE"
                   9558: 
                   9559: subdirs="$subdirs tools/$GSL"
                   9560: 
                   9561: subdirs="$subdirs tools/$GPP"
                   9562: 
                   9563: subdirs="$subdirs tools/$FILE"
                   9564: 
                   9565: subdirs="$subdirs tools/$ICONV"
                   9566: 
                   9567: subdirs="$subdirs tools/$SQLITE"
                   9568: 
                   9569: subdirs="$subdirs tools/$UNITS"
                   9570: 
1.76      bertrand 9571: subdirs="$subdirs tools/$SIGSEGV"
                   9572: 
1.69      bertrand 9573: 
1.1       bertrand 9574: ac_config_files="$ac_config_files Makefile"
                   9575: 
                   9576: ac_config_files="$ac_config_files COPYING"
                   9577: 
                   9578: ac_config_files="$ac_config_files tools/Makefile"
                   9579: 
                   9580: ac_config_files="$ac_config_files src/Makefile"
                   9581: 
                   9582: ac_config_files="$ac_config_files man/Makefile"
                   9583: 
                   9584: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9585: 
                   9586: ac_config_files="$ac_config_files doc/Makefile"
                   9587: 
                   9588: ac_config_files="$ac_config_files scripts/Makefile"
                   9589: 
                   9590: ac_config_files="$ac_config_files scripts/mkrplso"
                   9591: 
                   9592: ac_config_files="$ac_config_files scripts/rplcc"
                   9593: 
                   9594: ac_config_files="$ac_config_files scripts/rpllink"
                   9595: 
                   9596: ac_config_files="$ac_config_files rpltags/Makefile"
                   9597: 
                   9598: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9599: 
1.9       bertrand 9600: ac_config_files="$ac_config_files rplsums/Makefile"
                   9601: 
1.55      bertrand 9602: ac_config_files="$ac_config_files rplcas/Makefile"
                   9603: 
1.39      bertrand 9604: ac_config_files="$ac_config_files rplawk/Makefile"
                   9605: 
1.1       bertrand 9606: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9607: 
                   9608: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9609: 
                   9610: 
                   9611: ac_config_files="$ac_config_files man/rpl.1"
                   9612: 
                   9613: ac_config_files="$ac_config_files man/rplcc.1"
                   9614: 
                   9615: ac_config_files="$ac_config_files man/rpllink.1"
                   9616: 
                   9617: ac_config_files="$ac_config_files man/rpltags.1"
                   9618: 
                   9619: ac_config_files="$ac_config_files man/mkrplso.1"
                   9620: 
                   9621: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9622: 
                   9623: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9624: 
                   9625: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9626: 
                   9627: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9628: 
                   9629: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9630: 
                   9631: 
                   9632: cat >confcache <<\_ACEOF
                   9633: # This file is a shell script that caches the results of configure
                   9634: # tests run on this system so they can be shared between configure
                   9635: # scripts and configure runs, see configure's option --config-cache.
                   9636: # It is not useful on other systems.  If it contains results you don't
                   9637: # want to keep, you may remove or edit it.
                   9638: #
                   9639: # config.status only pays attention to the cache file if you give it
                   9640: # the --recheck option to rerun configure.
                   9641: #
                   9642: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9643: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9644: # following values.
                   9645: 
                   9646: _ACEOF
                   9647: 
                   9648: # The following way of writing the cache mishandles newlines in values,
                   9649: # but we know of no workaround that is simple, portable, and efficient.
                   9650: # So, we kill variables containing newlines.
                   9651: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9652: # and sets the high bit in the cache file unless we assign to the vars.
                   9653: (
                   9654:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9655:     eval ac_val=\$$ac_var
                   9656:     case $ac_val in #(
                   9657:     *${as_nl}*)
                   9658:       case $ac_var in #(
1.15      bertrand 9659:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9660: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9661:       esac
                   9662:       case $ac_var in #(
                   9663:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9664:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9665:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9666:       esac ;;
                   9667:     esac
                   9668:   done
                   9669: 
                   9670:   (set) 2>&1 |
                   9671:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9672:     *${as_nl}ac_space=\ *)
1.15      bertrand 9673:       # `set' does not quote correctly, so add quotes: double-quote
                   9674:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9675:       sed -n \
                   9676:    "s/'/'\\\\''/g;
                   9677:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9678:       ;; #(
                   9679:     *)
                   9680:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9681:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9682:       ;;
                   9683:     esac |
                   9684:     sort
                   9685: ) |
                   9686:   sed '
                   9687:      /^ac_cv_env_/b end
                   9688:      t clear
                   9689:      :clear
                   9690:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9691:      t end
                   9692:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9693:      :end' >>confcache
                   9694: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9695:   if test -w "$cache_file"; then
1.57      bertrand 9696:     if test "x$cache_file" != "x/dev/null"; then
1.15      bertrand 9697:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9698: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57      bertrand 9699:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   9700:    cat confcache >"$cache_file"
                   9701:       else
                   9702:         case $cache_file in #(
                   9703:         */* | ?:*)
                   9704:      mv -f confcache "$cache_file"$$ &&
                   9705:      mv -f "$cache_file"$$ "$cache_file" ;; #(
                   9706:         *)
                   9707:      mv -f confcache "$cache_file" ;;
                   9708:    esac
                   9709:       fi
                   9710:     fi
1.1       bertrand 9711:   else
1.15      bertrand 9712:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9713: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9714:   fi
                   9715: fi
                   9716: rm -f confcache
                   9717: 
                   9718: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9719: # Let make expand exec_prefix.
                   9720: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9721: 
                   9722: DEFS=-DHAVE_CONFIG_H
                   9723: 
                   9724: ac_libobjs=
                   9725: ac_ltlibobjs=
1.36      bertrand 9726: U=
1.1       bertrand 9727: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9728:   # 1. Remove the extension, and $U if already installed.
                   9729:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9730:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9731:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9732:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9733:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9734:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9735: done
                   9736: LIBOBJS=$ac_libobjs
                   9737: 
                   9738: LTLIBOBJS=$ac_ltlibobjs
                   9739: 
                   9740: 
1.15      bertrand 9741:  if test -n "$EXEEXT"; then
                   9742:   am__EXEEXT_TRUE=
                   9743:   am__EXEEXT_FALSE='#'
                   9744: else
                   9745:   am__EXEEXT_TRUE='#'
                   9746:   am__EXEEXT_FALSE=
                   9747: fi
                   9748: 
1.1       bertrand 9749: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9750:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9751: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9752: fi
                   9753: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9754:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9755: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9756: fi
                   9757: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9758:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9759: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9760: fi
                   9761: 
1.57      bertrand 9762: : "${CONFIG_STATUS=./config.status}"
1.15      bertrand 9763: ac_write_fail=0
1.1       bertrand 9764: ac_clean_files_save=$ac_clean_files
                   9765: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9766: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9767: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9768: as_write_fail=0
                   9769: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9770: #! $SHELL
                   9771: # Generated by $as_me.
                   9772: # Run this file to recreate the current configuration.
                   9773: # Compiler output produced by configure, useful for debugging
                   9774: # configure, is in config.log if it exists.
                   9775: 
                   9776: debug=false
                   9777: ac_cs_recheck=false
                   9778: ac_cs_silent=false
1.15      bertrand 9779: 
1.14      bertrand 9780: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9781: export SHELL
                   9782: _ASEOF
                   9783: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9784: ## -------------------- ##
                   9785: ## M4sh Initialization. ##
                   9786: ## -------------------- ##
1.1       bertrand 9787: 
                   9788: # Be more Bourne compatible
                   9789: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9790: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9791:   emulate sh
                   9792:   NULLCMD=:
1.15      bertrand 9793:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9794:   # is contrary to our usage.  Disable this feature.
                   9795:   alias -g '${1+"$@"}'='"$@"'
                   9796:   setopt NO_GLOB_SUBST
                   9797: else
1.15      bertrand 9798:   case `(set -o) 2>/dev/null` in #(
                   9799:   *posix*) :
                   9800:     set -o posix ;; #(
                   9801:   *) :
                   9802:      ;;
1.1       bertrand 9803: esac
                   9804: fi
                   9805: 
                   9806: 
1.15      bertrand 9807: as_nl='
                   9808: '
                   9809: export as_nl
                   9810: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9811: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9812: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9813: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9814: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9815: # but without wasting forks for bash or zsh.
                   9816: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9817:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9818:   as_echo='print -r --'
                   9819:   as_echo_n='print -rn --'
                   9820: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9821:   as_echo='printf %s\n'
                   9822:   as_echo_n='printf %s'
                   9823: else
                   9824:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9825:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9826:     as_echo_n='/usr/ucb/echo -n'
                   9827:   else
                   9828:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9829:     as_echo_n_body='eval
                   9830:       arg=$1;
                   9831:       case $arg in #(
                   9832:       *"$as_nl"*)
                   9833:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9834:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9835:       esac;
                   9836:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9837:     '
                   9838:     export as_echo_n_body
                   9839:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9840:   fi
                   9841:   export as_echo_body
                   9842:   as_echo='sh -c $as_echo_body as_echo'
                   9843: fi
1.14      bertrand 9844: 
                   9845: # The user is always right.
                   9846: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9847:   PATH_SEPARATOR=:
                   9848:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9849:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9850:       PATH_SEPARATOR=';'
                   9851:   }
1.1       bertrand 9852: fi
                   9853: 
                   9854: 
                   9855: # IFS
                   9856: # We need space, tab and new line, in precisely that order.  Quoting is
                   9857: # there to prevent editors from complaining about space-tab.
                   9858: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9859: # splitting by setting IFS to empty value.)
                   9860: IFS=" ""   $as_nl"
                   9861: 
                   9862: # Find who we are.  Look in the path if we contain no directory separator.
1.57      bertrand 9863: as_myself=
1.15      bertrand 9864: case $0 in #((
1.1       bertrand 9865:   *[\\/]* ) as_myself=$0 ;;
                   9866:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9867: for as_dir in $PATH
                   9868: do
                   9869:   IFS=$as_save_IFS
                   9870:   test -z "$as_dir" && as_dir=.
1.15      bertrand 9871:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9872:   done
1.1       bertrand 9873: IFS=$as_save_IFS
                   9874: 
                   9875:      ;;
                   9876: esac
                   9877: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9878: # in which case we are not to be found in the path.
                   9879: if test "x$as_myself" = x; then
                   9880:   as_myself=$0
                   9881: fi
                   9882: if test ! -f "$as_myself"; then
1.15      bertrand 9883:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9884:   exit 1
1.1       bertrand 9885: fi
                   9886: 
1.15      bertrand 9887: # Unset variables that we do not need and which cause bugs (e.g. in
                   9888: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9889: # suppresses any "Segmentation fault" message there.  '((' could
                   9890: # trigger a bug in pdksh 5.2.14.
                   9891: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9892: do eval test x\${$as_var+set} = xset \
                   9893:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 9894: done
                   9895: PS1='$ '
                   9896: PS2='> '
                   9897: PS4='+ '
                   9898: 
                   9899: # NLS nuisances.
1.15      bertrand 9900: LC_ALL=C
                   9901: export LC_ALL
                   9902: LANGUAGE=C
                   9903: export LANGUAGE
                   9904: 
                   9905: # CDPATH.
                   9906: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9907: 
                   9908: 
1.36      bertrand 9909: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9910: # ----------------------------------------
1.15      bertrand 9911: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9912: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 9913: # script with STATUS, using 1 if that was 0.
1.15      bertrand 9914: as_fn_error ()
                   9915: {
1.36      bertrand 9916:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9917:   if test "$4"; then
                   9918:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9919:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 9920:   fi
1.36      bertrand 9921:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 9922:   as_fn_exit $as_status
                   9923: } # as_fn_error
                   9924: 
                   9925: 
                   9926: # as_fn_set_status STATUS
                   9927: # -----------------------
                   9928: # Set $? to STATUS, without forking.
                   9929: as_fn_set_status ()
                   9930: {
                   9931:   return $1
                   9932: } # as_fn_set_status
                   9933: 
                   9934: # as_fn_exit STATUS
                   9935: # -----------------
                   9936: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9937: as_fn_exit ()
                   9938: {
                   9939:   set +e
                   9940:   as_fn_set_status $1
                   9941:   exit $1
                   9942: } # as_fn_exit
                   9943: 
                   9944: # as_fn_unset VAR
                   9945: # ---------------
                   9946: # Portably unset VAR.
                   9947: as_fn_unset ()
                   9948: {
                   9949:   { eval $1=; unset $1;}
                   9950: }
                   9951: as_unset=as_fn_unset
                   9952: # as_fn_append VAR VALUE
                   9953: # ----------------------
                   9954: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9955: # advantage of any shell optimizations that allow amortized linear growth over
                   9956: # repeated appends, instead of the typical quadratic growth present in naive
                   9957: # implementations.
                   9958: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9959:   eval 'as_fn_append ()
                   9960:   {
                   9961:     eval $1+=\$2
                   9962:   }'
                   9963: else
                   9964:   as_fn_append ()
                   9965:   {
                   9966:     eval $1=\$$1\$2
                   9967:   }
                   9968: fi # as_fn_append
                   9969: 
                   9970: # as_fn_arith ARG...
                   9971: # ------------------
                   9972: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9973: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9974: # must be portable across $(()) and expr.
                   9975: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9976:   eval 'as_fn_arith ()
                   9977:   {
                   9978:     as_val=$(( $* ))
                   9979:   }'
                   9980: else
                   9981:   as_fn_arith ()
                   9982:   {
                   9983:     as_val=`expr "$@" || test $? -eq 1`
                   9984:   }
                   9985: fi # as_fn_arith
                   9986: 
1.1       bertrand 9987: 
                   9988: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9989:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9990:   as_expr=expr
                   9991: else
                   9992:   as_expr=false
                   9993: fi
                   9994: 
                   9995: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9996:   as_basename=basename
                   9997: else
                   9998:   as_basename=false
                   9999: fi
                   10000: 
1.15      bertrand 10001: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   10002:   as_dirname=dirname
                   10003: else
                   10004:   as_dirname=false
                   10005: fi
1.1       bertrand 10006: 
                   10007: as_me=`$as_basename -- "$0" ||
                   10008: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   10009:     X"$0" : 'X\(//\)$' \| \
                   10010:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10011: $as_echo X/"$0" |
1.1       bertrand 10012:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   10013:        s//\1/
                   10014:        q
                   10015:      }
                   10016:      /^X\/\(\/\/\)$/{
                   10017:        s//\1/
                   10018:        q
                   10019:      }
                   10020:      /^X\/\(\/\).*/{
                   10021:        s//\1/
                   10022:        q
                   10023:      }
1.14      bertrand 10024:      s/.*/./; q'`
                   10025: 
1.15      bertrand 10026: # Avoid depending upon Character Ranges.
                   10027: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   10028: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   10029: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   10030: as_cr_digits='0123456789'
                   10031: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 10032: 
                   10033: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 10034: case `echo -n x` in #(((((
1.1       bertrand 10035: -n*)
1.15      bertrand 10036:   case `echo 'xy\c'` in
1.1       bertrand 10037:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 10038:   xy)  ECHO_C='\c';;
                   10039:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   10040:        ECHO_T='    ';;
1.1       bertrand 10041:   esac;;
                   10042: *)
                   10043:   ECHO_N='-n';;
                   10044: esac
                   10045: 
                   10046: rm -f conf$$ conf$$.exe conf$$.file
                   10047: if test -d conf$$.dir; then
                   10048:   rm -f conf$$.dir/conf$$.file
                   10049: else
                   10050:   rm -f conf$$.dir
1.15      bertrand 10051:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 10052: fi
1.15      bertrand 10053: if (echo >conf$$.file) 2>/dev/null; then
                   10054:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   10055:     as_ln_s='ln -s'
                   10056:     # ... but there are two gotchas:
                   10057:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   10058:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   10059:     # In both cases, we have to default to `cp -p'.
                   10060:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   10061:       as_ln_s='cp -p'
                   10062:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   10063:     as_ln_s=ln
                   10064:   else
1.1       bertrand 10065:     as_ln_s='cp -p'
1.15      bertrand 10066:   fi
1.1       bertrand 10067: else
                   10068:   as_ln_s='cp -p'
                   10069: fi
                   10070: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   10071: rmdir conf$$.dir 2>/dev/null
                   10072: 
1.15      bertrand 10073: 
                   10074: # as_fn_mkdir_p
                   10075: # -------------
                   10076: # Create "$as_dir" as a directory, including parents if necessary.
                   10077: as_fn_mkdir_p ()
                   10078: {
                   10079: 
                   10080:   case $as_dir in #(
                   10081:   -*) as_dir=./$as_dir;;
                   10082:   esac
                   10083:   test -d "$as_dir" || eval $as_mkdir_p || {
                   10084:     as_dirs=
                   10085:     while :; do
                   10086:       case $as_dir in #(
                   10087:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   10088:       *) as_qdir=$as_dir;;
                   10089:       esac
                   10090:       as_dirs="'$as_qdir' $as_dirs"
                   10091:       as_dir=`$as_dirname -- "$as_dir" ||
                   10092: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10093:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   10094:     X"$as_dir" : 'X\(//\)$' \| \
                   10095:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   10096: $as_echo X"$as_dir" |
                   10097:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10098:        s//\1/
                   10099:        q
                   10100:      }
                   10101:      /^X\(\/\/\)[^/].*/{
                   10102:        s//\1/
                   10103:        q
                   10104:      }
                   10105:      /^X\(\/\/\)$/{
                   10106:        s//\1/
                   10107:        q
                   10108:      }
                   10109:      /^X\(\/\).*/{
                   10110:        s//\1/
                   10111:        q
                   10112:      }
                   10113:      s/.*/./; q'`
                   10114:       test -d "$as_dir" && break
                   10115:     done
                   10116:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 10117:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 10118: 
                   10119: 
                   10120: } # as_fn_mkdir_p
1.1       bertrand 10121: if mkdir -p . 2>/dev/null; then
1.15      bertrand 10122:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 10123: else
                   10124:   test -d ./-p && rmdir ./-p
                   10125:   as_mkdir_p=false
                   10126: fi
                   10127: 
                   10128: if test -x / >/dev/null 2>&1; then
                   10129:   as_test_x='test -x'
                   10130: else
                   10131:   if ls -dL / >/dev/null 2>&1; then
                   10132:     as_ls_L_option=L
                   10133:   else
                   10134:     as_ls_L_option=
                   10135:   fi
                   10136:   as_test_x='
                   10137:     eval sh -c '\''
                   10138:       if test -d "$1"; then
1.15      bertrand 10139:    test -d "$1/.";
1.1       bertrand 10140:       else
1.15      bertrand 10141:    case $1 in #(
                   10142:    -*)set "./$1";;
1.1       bertrand 10143:    esac;
1.15      bertrand 10144:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 10145:    ???[sx]*):;;*)false;;esac;fi
                   10146:     '\'' sh
                   10147:   '
                   10148: fi
                   10149: as_executable_p=$as_test_x
                   10150: 
                   10151: # Sed expression to map a string onto a valid CPP name.
                   10152: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   10153: 
                   10154: # Sed expression to map a string onto a valid variable name.
                   10155: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   10156: 
                   10157: 
                   10158: exec 6>&1
1.15      bertrand 10159: ## ----------------------------------- ##
                   10160: ## Main body of $CONFIG_STATUS script. ##
                   10161: ## ----------------------------------- ##
                   10162: _ASEOF
                   10163: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 10164: 
1.15      bertrand 10165: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10166: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 10167: # report actual input values of CONFIG_FILES etc. instead of their
                   10168: # values after options handling.
                   10169: ac_log="
1.86      bertrand 10170: This file was extended by rpl $as_me 4.1.4, which was
1.57      bertrand 10171: generated by GNU Autoconf 2.68.  Invocation command line was
1.1       bertrand 10172: 
                   10173:   CONFIG_FILES    = $CONFIG_FILES
                   10174:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10175:   CONFIG_LINKS    = $CONFIG_LINKS
                   10176:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10177:   $ $0 $@
                   10178: 
                   10179: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10180: "
                   10181: 
                   10182: _ACEOF
                   10183: 
1.15      bertrand 10184: case $ac_config_files in *"
                   10185: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   10186: esac
                   10187: 
                   10188: case $ac_config_headers in *"
                   10189: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   10190: esac
                   10191: 
                   10192: 
                   10193: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10194: # Files that config.status was made for.
                   10195: config_files="$ac_config_files"
                   10196: config_headers="$ac_config_headers"
                   10197: config_commands="$ac_config_commands"
                   10198: 
                   10199: _ACEOF
                   10200: 
1.15      bertrand 10201: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10202: ac_cs_usage="\
1.15      bertrand 10203: \`$as_me' instantiates files and other configuration actions
                   10204: from templates according to the current configuration.  Unless the files
                   10205: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 10206: 
1.15      bertrand 10207: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 10208: 
                   10209:   -h, --help       print this help, then exit
                   10210:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 10211:       --config     print configuration, then exit
                   10212:   -q, --quiet, --silent
                   10213:                    do not print progress messages
1.1       bertrand 10214:   -d, --debug      don't remove temporary files
                   10215:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 10216:       --file=FILE[:TEMPLATE]
                   10217:                    instantiate the configuration file FILE
                   10218:       --header=FILE[:TEMPLATE]
                   10219:                    instantiate the configuration header FILE
1.1       bertrand 10220: 
                   10221: Configuration files:
                   10222: $config_files
                   10223: 
                   10224: Configuration headers:
                   10225: $config_headers
                   10226: 
                   10227: Configuration commands:
                   10228: $config_commands
                   10229: 
1.15      bertrand 10230: Report bugs to the package provider."
1.1       bertrand 10231: 
                   10232: _ACEOF
1.15      bertrand 10233: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10234: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10235: ac_cs_version="\\
1.86      bertrand 10236: rpl config.status 4.1.4
1.57      bertrand 10237: configured by $0, generated by GNU Autoconf 2.68,
1.15      bertrand 10238:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10239: 
1.36      bertrand 10240: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10241: This config.status script is free software; the Free Software Foundation
                   10242: gives unlimited permission to copy, distribute and modify it."
                   10243: 
                   10244: ac_pwd='$ac_pwd'
                   10245: srcdir='$srcdir'
                   10246: INSTALL='$INSTALL'
                   10247: MKDIR_P='$MKDIR_P'
1.15      bertrand 10248: AWK='$AWK'
                   10249: test -n "\$AWK" || AWK=awk
1.1       bertrand 10250: _ACEOF
                   10251: 
1.15      bertrand 10252: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10253: # The default lists apply if the user does not specify any file.
1.1       bertrand 10254: ac_need_defaults=:
                   10255: while test $# != 0
                   10256: do
                   10257:   case $1 in
1.36      bertrand 10258:   --*=?*)
1.1       bertrand 10259:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10260:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10261:     ac_shift=:
                   10262:     ;;
1.36      bertrand 10263:   --*=)
                   10264:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10265:     ac_optarg=
                   10266:     ac_shift=:
                   10267:     ;;
1.1       bertrand 10268:   *)
                   10269:     ac_option=$1
                   10270:     ac_optarg=$2
                   10271:     ac_shift=shift
                   10272:     ;;
                   10273:   esac
                   10274: 
                   10275:   case $ac_option in
                   10276:   # Handling of the options.
                   10277:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10278:     ac_cs_recheck=: ;;
                   10279:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10280:     $as_echo "$ac_cs_version"; exit ;;
                   10281:   --config | --confi | --conf | --con | --co | --c )
                   10282:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10283:   --debug | --debu | --deb | --de | --d | -d )
                   10284:     debug=: ;;
                   10285:   --file | --fil | --fi | --f )
                   10286:     $ac_shift
1.15      bertrand 10287:     case $ac_optarg in
                   10288:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10289:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10290:     esac
                   10291:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10292:     ac_need_defaults=false;;
                   10293:   --header | --heade | --head | --hea )
                   10294:     $ac_shift
1.15      bertrand 10295:     case $ac_optarg in
                   10296:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10297:     esac
                   10298:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10299:     ac_need_defaults=false;;
                   10300:   --he | --h)
                   10301:     # Conflict between --help and --header
1.36      bertrand 10302:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10303: Try \`$0 --help' for more information.";;
1.1       bertrand 10304:   --help | --hel | -h )
1.15      bertrand 10305:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10306:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10307:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10308:     ac_cs_silent=: ;;
                   10309: 
                   10310:   # This is an error.
1.36      bertrand 10311:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10312: Try \`$0 --help' for more information." ;;
1.1       bertrand 10313: 
1.15      bertrand 10314:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10315:      ac_need_defaults=false ;;
                   10316: 
                   10317:   esac
                   10318:   shift
                   10319: done
                   10320: 
                   10321: ac_configure_extra_args=
                   10322: 
                   10323: if $ac_cs_silent; then
                   10324:   exec 6>/dev/null
                   10325:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10326: fi
                   10327: 
                   10328: _ACEOF
1.15      bertrand 10329: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10330: if \$ac_cs_recheck; then
1.15      bertrand 10331:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10332:   shift
                   10333:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10334:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10335:   export CONFIG_SHELL
1.15      bertrand 10336:   exec "\$@"
1.1       bertrand 10337: fi
                   10338: 
                   10339: _ACEOF
1.15      bertrand 10340: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10341: exec 5>>config.log
                   10342: {
                   10343:   echo
                   10344:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10345: ## Running $as_me. ##
                   10346: _ASBOX
1.15      bertrand 10347:   $as_echo "$ac_log"
1.1       bertrand 10348: } >&5
                   10349: 
                   10350: _ACEOF
1.15      bertrand 10351: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10352: #
                   10353: # INIT-COMMANDS
                   10354: #
                   10355: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10356: 
                   10357: _ACEOF
                   10358: 
1.15      bertrand 10359: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10360: 
                   10361: # Handling of arguments.
                   10362: for ac_config_target in $ac_config_targets
                   10363: do
                   10364:   case $ac_config_target in
                   10365:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10366:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10367:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10368:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10369:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10370:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10371:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10372:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10373:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10374:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10375:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10376:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10377:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10378:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10379:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10380:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10381:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10382:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10383:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10384:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10385:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10386:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10387:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10388:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10389:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10390:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10391:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10392:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10393:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10394:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
                   10395: 
1.57      bertrand 10396:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1       bertrand 10397:   esac
                   10398: done
                   10399: 
                   10400: 
                   10401: # If the user did not use the arguments to specify the items to instantiate,
                   10402: # then the envvar interface is used.  Set only those that are not.
                   10403: # We use the long form for the default assignment because of an extremely
                   10404: # bizarre bug on SunOS 4.1.3.
                   10405: if $ac_need_defaults; then
                   10406:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10407:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10408:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10409: fi
                   10410: 
                   10411: # Have a temporary directory for convenience.  Make it in the build tree
                   10412: # simply because there is no reason against having it here, and in addition,
                   10413: # creating and moving files from /tmp can sometimes cause problems.
                   10414: # Hook for its removal unless debugging.
                   10415: # Note that there is a small window in which the directory will not be cleaned:
                   10416: # after its creation but before its name has been assigned to `$tmp'.
                   10417: $debug ||
                   10418: {
1.57      bertrand 10419:   tmp= ac_tmp=
1.1       bertrand 10420:   trap 'exit_status=$?
1.57      bertrand 10421:   : "${ac_tmp:=$tmp}"
                   10422:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1       bertrand 10423: ' 0
1.15      bertrand 10424:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10425: }
                   10426: # Create a (secure) tmp directory for tmp files.
                   10427: 
                   10428: {
                   10429:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57      bertrand 10430:   test -d "$tmp"
1.1       bertrand 10431: }  ||
                   10432: {
                   10433:   tmp=./conf$$-$RANDOM
                   10434:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10435: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57      bertrand 10436: ac_tmp=$tmp
1.15      bertrand 10437: 
                   10438: # Set up the scripts for CONFIG_FILES section.
                   10439: # No need to generate them if there are no CONFIG_FILES.
                   10440: # This happens for instance with `./config.status config.h'.
                   10441: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10442: 
1.1       bertrand 10443: 
1.15      bertrand 10444: ac_cr=`echo X | tr X '\015'`
                   10445: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10446: # But we know of no other shell where ac_cr would be empty at this
                   10447: # point, so we can use a bashism as a fallback.
                   10448: if test "x$ac_cr" = x; then
                   10449:   eval ac_cr=\$\'\\r\'
                   10450: fi
                   10451: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10452: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10453:   ac_cs_awk_cr='\\r'
1.15      bertrand 10454: else
                   10455:   ac_cs_awk_cr=$ac_cr
                   10456: fi
1.1       bertrand 10457: 
1.57      bertrand 10458: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14      bertrand 10459: _ACEOF
                   10460: 
                   10461: 
1.15      bertrand 10462: {
                   10463:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10464:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10465:   echo "_ACEOF"
                   10466: } >conf$$subs.sh ||
1.36      bertrand 10467:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10468: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10469: ac_delim='%!_!# '
                   10470: for ac_last_try in false false false false false :; do
1.15      bertrand 10471:   . ./conf$$subs.sh ||
1.36      bertrand 10472:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10473: 
1.15      bertrand 10474:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10475:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10476:     break
                   10477:   elif $ac_last_try; then
1.36      bertrand 10478:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10479:   else
                   10480:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10481:   fi
                   10482: done
1.15      bertrand 10483: rm -f conf$$subs.sh
1.1       bertrand 10484: 
1.15      bertrand 10485: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57      bertrand 10486: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15      bertrand 10487: _ACEOF
                   10488: sed -n '
                   10489: h
                   10490: s/^/S["/; s/!.*/"]=/
                   10491: p
                   10492: g
                   10493: s/^[^!]*!//
                   10494: :repl
                   10495: t repl
                   10496: s/'"$ac_delim"'$//
                   10497: t delim
                   10498: :nl
                   10499: h
                   10500: s/\(.\{148\}\)..*/\1/
                   10501: t more1
                   10502: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10503: p
                   10504: n
                   10505: b repl
                   10506: :more1
                   10507: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10508: p
                   10509: g
                   10510: s/.\{148\}//
                   10511: t nl
                   10512: :delim
                   10513: h
                   10514: s/\(.\{148\}\)..*/\1/
                   10515: t more2
                   10516: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10517: p
                   10518: b
                   10519: :more2
                   10520: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10521: p
                   10522: g
                   10523: s/.\{148\}//
                   10524: t delim
                   10525: ' <conf$$subs.awk | sed '
                   10526: /^[^""]/{
                   10527:   N
                   10528:   s/\n//
                   10529: }
                   10530: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10531: rm -f conf$$subs.awk
                   10532: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10533: _ACAWK
1.57      bertrand 10534: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15      bertrand 10535:   for (key in S) S_is_set[key] = 1
                   10536:   FS = ""
1.1       bertrand 10537: 
1.15      bertrand 10538: }
                   10539: {
                   10540:   line = $ 0
                   10541:   nfields = split(line, field, "@")
                   10542:   substed = 0
                   10543:   len = length(field[1])
                   10544:   for (i = 2; i < nfields; i++) {
                   10545:     key = field[i]
                   10546:     keylen = length(key)
                   10547:     if (S_is_set[key]) {
                   10548:       value = S[key]
                   10549:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10550:       len += length(value) + length(field[++i])
                   10551:       substed = 1
                   10552:     } else
                   10553:       len += 1 + keylen
                   10554:   }
1.1       bertrand 10555: 
1.15      bertrand 10556:   print line
                   10557: }
1.1       bertrand 10558: 
1.15      bertrand 10559: _ACAWK
1.14      bertrand 10560: _ACEOF
1.15      bertrand 10561: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10562: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10563:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10564: else
                   10565:   cat
1.57      bertrand 10566: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36      bertrand 10567:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10568: _ACEOF
                   10569: 
1.36      bertrand 10570: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10571: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10572: # trailing colons and then remove the whole line if VPATH becomes empty
                   10573: # (actually we leave an empty line to preserve line numbers).
                   10574: if test "x$srcdir" = x.; then
1.36      bertrand 10575:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10576: h
                   10577: s///
                   10578: s/^/:/
                   10579: s/[     ]*$/:/
                   10580: s/:\$(srcdir):/:/g
                   10581: s/:\${srcdir}:/:/g
                   10582: s/:@srcdir@:/:/g
                   10583: s/^:*//
1.1       bertrand 10584: s/:*$//
1.36      bertrand 10585: x
                   10586: s/\(=[  ]*\).*/\1/
                   10587: G
                   10588: s/\n//
1.1       bertrand 10589: s/^[^=]*=[  ]*$//
                   10590: }'
                   10591: fi
                   10592: 
1.15      bertrand 10593: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10594: fi # test -n "$CONFIG_FILES"
                   10595: 
1.15      bertrand 10596: # Set up the scripts for CONFIG_HEADERS section.
                   10597: # No need to generate them if there are no CONFIG_HEADERS.
                   10598: # This happens for instance with `./config.status Makefile'.
                   10599: if test -n "$CONFIG_HEADERS"; then
1.57      bertrand 10600: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15      bertrand 10601: BEGIN {
                   10602: _ACEOF
                   10603: 
                   10604: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10605: # here-document in config.status, that substitutes the proper values into
                   10606: # config.h.in to produce config.h.
                   10607: 
                   10608: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10609: # handling of long lines.
                   10610: ac_delim='%!_!# '
                   10611: for ac_last_try in false false :; do
1.57      bertrand 10612:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   10613:   if test -z "$ac_tt"; then
1.15      bertrand 10614:     break
                   10615:   elif $ac_last_try; then
1.36      bertrand 10616:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10617:   else
                   10618:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10619:   fi
                   10620: done
                   10621: 
                   10622: # For the awk script, D is an array of macro values keyed by name,
                   10623: # likewise P contains macro parameters if any.  Preserve backslash
                   10624: # newline sequences.
                   10625: 
                   10626: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10627: sed -n '
                   10628: s/.\{148\}/&'"$ac_delim"'/g
                   10629: t rset
                   10630: :rset
                   10631: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10632: t def
                   10633: d
                   10634: :def
                   10635: s/\\$//
                   10636: t bsnl
                   10637: s/["\\]/\\&/g
                   10638: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10639: D["\1"]=" \3"/p
                   10640: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10641: d
                   10642: :bsnl
                   10643: s/["\\]/\\&/g
                   10644: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10645: D["\1"]=" \3\\\\\\n"\\/p
                   10646: t cont
                   10647: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10648: t cont
                   10649: d
                   10650: :cont
                   10651: n
                   10652: s/.\{148\}/&'"$ac_delim"'/g
                   10653: t clear
                   10654: :clear
                   10655: s/\\$//
                   10656: t bsnlc
                   10657: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10658: d
                   10659: :bsnlc
                   10660: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10661: b cont
                   10662: ' <confdefs.h | sed '
                   10663: s/'"$ac_delim"'/"\\\
                   10664: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10665: 
                   10666: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10667:   for (key in D) D_is_set[key] = 1
                   10668:   FS = ""
                   10669: }
                   10670: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10671:   line = \$ 0
                   10672:   split(line, arg, " ")
                   10673:   if (arg[1] == "#") {
                   10674:     defundef = arg[2]
                   10675:     mac1 = arg[3]
                   10676:   } else {
                   10677:     defundef = substr(arg[1], 2)
                   10678:     mac1 = arg[2]
                   10679:   }
                   10680:   split(mac1, mac2, "(") #)
                   10681:   macro = mac2[1]
                   10682:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10683:   if (D_is_set[macro]) {
                   10684:     # Preserve the white space surrounding the "#".
                   10685:     print prefix "define", macro P[macro] D[macro]
                   10686:     next
                   10687:   } else {
                   10688:     # Replace #undef with comments.  This is necessary, for example,
                   10689:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10690:     # on some systems where configure will not decide to define it.
                   10691:     if (defundef == "undef") {
                   10692:       print "/*", prefix defundef, macro, "*/"
                   10693:       next
                   10694:     }
                   10695:   }
                   10696: }
                   10697: { print }
                   10698: _ACAWK
                   10699: _ACEOF
                   10700: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10701:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10702: fi # test -n "$CONFIG_HEADERS"
                   10703: 
1.1       bertrand 10704: 
1.15      bertrand 10705: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10706: shift
                   10707: for ac_tag
1.1       bertrand 10708: do
                   10709:   case $ac_tag in
                   10710:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10711:   esac
                   10712:   case $ac_mode$ac_tag in
                   10713:   :[FHL]*:*);;
1.57      bertrand 10714:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1       bertrand 10715:   :[FH]-) ac_tag=-:-;;
                   10716:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10717:   esac
                   10718:   ac_save_IFS=$IFS
                   10719:   IFS=:
                   10720:   set x $ac_tag
                   10721:   IFS=$ac_save_IFS
                   10722:   shift
                   10723:   ac_file=$1
                   10724:   shift
                   10725: 
                   10726:   case $ac_mode in
                   10727:   :L) ac_source=$1;;
                   10728:   :[FH])
                   10729:     ac_file_inputs=
                   10730:     for ac_f
                   10731:     do
                   10732:       case $ac_f in
1.57      bertrand 10733:       -) ac_f="$ac_tmp/stdin";;
1.1       bertrand 10734:       *) # Look for the file first in the build tree, then in the source tree
                   10735:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10736:     # because $ac_f cannot contain `:'.
                   10737:     test -f "$ac_f" ||
                   10738:       case $ac_f in
                   10739:       [\\/$]*) false;;
                   10740:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10741:       esac ||
1.57      bertrand 10742:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1       bertrand 10743:       esac
1.15      bertrand 10744:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10745:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10746:     done
                   10747: 
                   10748:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10749:     # use $as_me), people would be surprised to read:
                   10750:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10751:     configure_input='Generated from '`
                   10752:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10753:    `' by configure.'
1.1       bertrand 10754:     if test x"$ac_file" != x-; then
                   10755:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10756:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10757: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10758:     fi
1.15      bertrand 10759:     # Neutralize special characters interpreted by sed in replacement strings.
                   10760:     case $configure_input in #(
                   10761:     *\&* | *\|* | *\\* )
                   10762:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10763:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10764:     *) ac_sed_conf_input=$configure_input;;
                   10765:     esac
1.1       bertrand 10766: 
                   10767:     case $ac_tag in
1.57      bertrand 10768:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   10769:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1       bertrand 10770:     esac
                   10771:     ;;
                   10772:   esac
                   10773: 
                   10774:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10775: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10776:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10777:     X"$ac_file" : 'X\(//\)$' \| \
                   10778:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10779: $as_echo X"$ac_file" |
1.1       bertrand 10780:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10781:        s//\1/
                   10782:        q
                   10783:      }
                   10784:      /^X\(\/\/\)[^/].*/{
                   10785:        s//\1/
                   10786:        q
                   10787:      }
                   10788:      /^X\(\/\/\)$/{
                   10789:        s//\1/
                   10790:        q
                   10791:      }
                   10792:      /^X\(\/\).*/{
                   10793:        s//\1/
                   10794:        q
                   10795:      }
                   10796:      s/.*/./; q'`
1.15      bertrand 10797:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10798:   ac_builddir=.
                   10799: 
                   10800: case "$ac_dir" in
                   10801: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10802: *)
1.15      bertrand 10803:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10804:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10805:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10806:   case $ac_top_builddir_sub in
                   10807:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10808:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10809:   esac ;;
                   10810: esac
                   10811: ac_abs_top_builddir=$ac_pwd
                   10812: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10813: # for backward compatibility:
                   10814: ac_top_builddir=$ac_top_build_prefix
                   10815: 
                   10816: case $srcdir in
                   10817:   .)  # We are building in place.
                   10818:     ac_srcdir=.
                   10819:     ac_top_srcdir=$ac_top_builddir_sub
                   10820:     ac_abs_top_srcdir=$ac_pwd ;;
                   10821:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10822:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10823:     ac_top_srcdir=$srcdir
                   10824:     ac_abs_top_srcdir=$srcdir ;;
                   10825:   *) # Relative name.
                   10826:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10827:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10828:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10829: esac
                   10830: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10831: 
                   10832: 
                   10833:   case $ac_mode in
                   10834:   :F)
                   10835:   #
                   10836:   # CONFIG_FILE
                   10837:   #
                   10838: 
                   10839:   case $INSTALL in
                   10840:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10841:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10842:   esac
                   10843:   ac_MKDIR_P=$MKDIR_P
                   10844:   case $MKDIR_P in
                   10845:   [\\/$]* | ?:[\\/]* ) ;;
                   10846:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10847:   esac
                   10848: _ACEOF
                   10849: 
1.15      bertrand 10850: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10851: # If the template does not know about datarootdir, expand it.
                   10852: # FIXME: This hack should be removed a few years after 2.60.
                   10853: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10854: ac_sed_dataroot='
                   10855: /datarootdir/ {
1.1       bertrand 10856:   p
                   10857:   q
                   10858: }
                   10859: /@datadir@/p
                   10860: /@docdir@/p
                   10861: /@infodir@/p
                   10862: /@localedir@/p
1.15      bertrand 10863: /@mandir@/p'
                   10864: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10865: *datarootdir*) ac_datarootdir_seen=yes;;
                   10866: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10867:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10868: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10869: _ACEOF
1.15      bertrand 10870: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10871:   ac_datarootdir_hack='
                   10872:   s&@datadir@&$datadir&g
                   10873:   s&@docdir@&$docdir&g
                   10874:   s&@infodir@&$infodir&g
                   10875:   s&@localedir@&$localedir&g
                   10876:   s&@mandir@&$mandir&g
1.15      bertrand 10877:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 10878: esac
                   10879: _ACEOF
                   10880: 
                   10881: # Neutralize VPATH when `$srcdir' = `.'.
                   10882: # Shell code in configure.ac might set extrasub.
                   10883: # FIXME: do we really want to maintain this feature?
1.15      bertrand 10884: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10885: ac_sed_extra="$ac_vpsub
1.1       bertrand 10886: $extrasub
                   10887: _ACEOF
1.15      bertrand 10888: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10889: :t
                   10890: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 10891: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 10892: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 10893: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 10894: s&@srcdir@&$ac_srcdir&;t t
                   10895: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10896: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10897: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10898: s&@builddir@&$ac_builddir&;t t
                   10899: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10900: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10901: s&@INSTALL@&$ac_INSTALL&;t t
                   10902: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   10903: $ac_datarootdir_hack
1.15      bertrand 10904: "
1.57      bertrand 10905: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   10906:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10907: 
                   10908: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57      bertrand 10909:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   10910:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' \
                   10911:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 10912:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10913: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 10914: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 10915: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 10916: 
1.57      bertrand 10917:   rm -f "$ac_tmp/stdin"
1.1       bertrand 10918:   case $ac_file in
1.57      bertrand 10919:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   10920:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15      bertrand 10921:   esac \
1.36      bertrand 10922:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10923:  ;;
                   10924:   :H)
                   10925:   #
                   10926:   # CONFIG_HEADER
                   10927:   #
                   10928:   if test x"$ac_file" != x-; then
1.15      bertrand 10929:     {
                   10930:       $as_echo "/* $configure_input  */" \
1.57      bertrand 10931:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   10932:     } >"$ac_tmp/config.h" \
1.36      bertrand 10933:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57      bertrand 10934:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15      bertrand 10935:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10936: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 10937:     else
1.15      bertrand 10938:       rm -f "$ac_file"
1.57      bertrand 10939:       mv "$ac_tmp/config.h" "$ac_file" \
1.36      bertrand 10940:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 10941:     fi
                   10942:   else
1.15      bertrand 10943:     $as_echo "/* $configure_input  */" \
1.57      bertrand 10944:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 10945:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 10946:   fi
1.15      bertrand 10947: # Compute "$ac_file"'s index in $config_headers.
                   10948: _am_arg="$ac_file"
1.1       bertrand 10949: _am_stamp_count=1
                   10950: for _am_header in $config_headers :; do
                   10951:   case $_am_header in
                   10952:     $_am_arg | $_am_arg:* )
                   10953:       break ;;
                   10954:     * )
                   10955:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   10956:   esac
                   10957: done
                   10958: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   10959: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10960:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   10961:     X"$_am_arg" : 'X\(//\)$' \| \
                   10962:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10963: $as_echo X"$_am_arg" |
1.1       bertrand 10964:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10965:        s//\1/
                   10966:        q
                   10967:      }
                   10968:      /^X\(\/\/\)[^/].*/{
                   10969:        s//\1/
                   10970:        q
                   10971:      }
                   10972:      /^X\(\/\/\)$/{
                   10973:        s//\1/
                   10974:        q
                   10975:      }
                   10976:      /^X\(\/\).*/{
                   10977:        s//\1/
                   10978:        q
                   10979:      }
                   10980:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   10981:  ;;
                   10982: 
1.15      bertrand 10983:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   10984: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 10985:  ;;
                   10986:   esac
                   10987: 
                   10988: 
                   10989:   case $ac_file$ac_mode in
1.15      bertrand 10990:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   10991:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   10992:   # are listed without --file.  Let's play safe and only enable the eval
                   10993:   # if we detect the quoting.
                   10994:   case $CONFIG_FILES in
                   10995:   *\'*) eval set x "$CONFIG_FILES" ;;
                   10996:   *)   set x $CONFIG_FILES ;;
                   10997:   esac
                   10998:   shift
                   10999:   for mf
                   11000:   do
                   11001:     # Strip MF so we end up with the name of the file.
                   11002:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   11003:     # Check whether this is an Automake generated Makefile or not.
                   11004:     # We used to match only the files named `Makefile.in', but
                   11005:     # some people rename them; so instead we look at the file content.
                   11006:     # Grep'ing the first line is not enough: some people post-process
                   11007:     # each Makefile.in and add a new line on top of each file to say so.
                   11008:     # Grep'ing the whole file is not good either: AIX grep has a line
                   11009:     # limit of 2048, but all sed's we know have understand at least 4000.
                   11010:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   11011:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 11012: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11013:     X"$mf" : 'X\(//\)[^/]' \| \
                   11014:     X"$mf" : 'X\(//\)$' \| \
                   11015:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11016: $as_echo X"$mf" |
1.1       bertrand 11017:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11018:        s//\1/
                   11019:        q
                   11020:      }
                   11021:      /^X\(\/\/\)[^/].*/{
                   11022:        s//\1/
                   11023:        q
                   11024:      }
                   11025:      /^X\(\/\/\)$/{
                   11026:        s//\1/
                   11027:        q
                   11028:      }
                   11029:      /^X\(\/\).*/{
                   11030:        s//\1/
                   11031:        q
                   11032:      }
                   11033:      s/.*/./; q'`
1.15      bertrand 11034:     else
                   11035:       continue
                   11036:     fi
                   11037:     # Extract the definition of DEPDIR, am__include, and am__quote
                   11038:     # from the Makefile without running `make'.
                   11039:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   11040:     test -z "$DEPDIR" && continue
                   11041:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   11042:     test -z "am__include" && continue
                   11043:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   11044:     # When using ansi2knr, U may be empty or an underscore; expand it
                   11045:     U=`sed -n 's/^U = //p' < "$mf"`
                   11046:     # Find all dependency output files, they are included files with
                   11047:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   11048:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   11049:     # expansion.
                   11050:     for file in `sed -n "
                   11051:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   11052:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   11053:       # Make sure the directory exists.
                   11054:       test -f "$dirpart/$file" && continue
                   11055:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 11056: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11057:     X"$file" : 'X\(//\)[^/]' \| \
                   11058:     X"$file" : 'X\(//\)$' \| \
                   11059:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11060: $as_echo X"$file" |
1.1       bertrand 11061:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11062:        s//\1/
                   11063:        q
                   11064:      }
                   11065:      /^X\(\/\/\)[^/].*/{
                   11066:        s//\1/
                   11067:        q
                   11068:      }
                   11069:      /^X\(\/\/\)$/{
                   11070:        s//\1/
                   11071:        q
                   11072:      }
                   11073:      /^X\(\/\).*/{
                   11074:        s//\1/
                   11075:        q
                   11076:      }
                   11077:      s/.*/./; q'`
1.15      bertrand 11078:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   11079:       # echo "creating $dirpart/$file"
                   11080:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 11081:     done
                   11082:   done
1.15      bertrand 11083: }
1.1       bertrand 11084:  ;;
                   11085: 
                   11086:   esac
                   11087: done # for ac_tag
                   11088: 
                   11089: 
1.15      bertrand 11090: as_fn_exit 0
1.1       bertrand 11091: _ACEOF
                   11092: ac_clean_files=$ac_clean_files_save
                   11093: 
1.15      bertrand 11094: test $ac_write_fail = 0 ||
1.36      bertrand 11095:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 11096: 
1.1       bertrand 11097: 
                   11098: # configure is writing to config.log, and then calls config.status.
                   11099: # config.status does its own redirection, appending to config.log.
                   11100: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11101: # by configure, so config.status won't be able to write to it; its
                   11102: # output is simply discarded.  So we exec the FD to /dev/null,
                   11103: # effectively closing config.log, so it can be properly (re)opened and
                   11104: # appended to by config.status.  When coming back to configure, we
                   11105: # need to make the FD available again.
                   11106: if test "$no_create" != yes; then
                   11107:   ac_cs_success=:
                   11108:   ac_config_status_args=
                   11109:   test "$silent" = yes &&
                   11110:     ac_config_status_args="$ac_config_status_args --quiet"
                   11111:   exec 5>/dev/null
                   11112:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   11113:   exec 5>>config.log
                   11114:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11115:   # would make configure fail if this is the last instruction.
1.36      bertrand 11116:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 11117: fi
                   11118: 
                   11119: #
                   11120: # CONFIG_SUBDIRS section.
                   11121: #
                   11122: if test "$no_recursion" != yes; then
                   11123: 
1.15      bertrand 11124:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   11125:   # so they do not pile up.
1.1       bertrand 11126:   ac_sub_configure_args=
                   11127:   ac_prev=
                   11128:   eval "set x $ac_configure_args"
                   11129:   shift
                   11130:   for ac_arg
                   11131:   do
                   11132:     if test -n "$ac_prev"; then
                   11133:       ac_prev=
                   11134:       continue
                   11135:     fi
                   11136:     case $ac_arg in
                   11137:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   11138:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   11139:       ac_prev=cache_file ;;
                   11140:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   11141:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   11142:     | --c=*)
                   11143:       ;;
                   11144:     --config-cache | -C)
                   11145:       ;;
                   11146:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   11147:       ac_prev=srcdir ;;
                   11148:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   11149:       ;;
                   11150:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   11151:       ac_prev=prefix ;;
                   11152:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   11153:       ;;
1.15      bertrand 11154:     --disable-option-checking)
                   11155:       ;;
1.1       bertrand 11156:     *)
                   11157:       case $ac_arg in
1.15      bertrand 11158:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11159:       esac
1.15      bertrand 11160:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 11161:     esac
                   11162:   done
                   11163: 
                   11164:   # Always prepend --prefix to ensure using the same prefix
                   11165:   # in subdir configurations.
                   11166:   ac_arg="--prefix=$prefix"
                   11167:   case $ac_arg in
1.15      bertrand 11168:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11169:   esac
                   11170:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   11171: 
                   11172:   # Pass --silent
                   11173:   if test "$silent" = yes; then
                   11174:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   11175:   fi
                   11176: 
1.15      bertrand 11177:   # Always prepend --disable-option-checking to silence warnings, since
                   11178:   # different subdirs can have different --enable and --with options.
                   11179:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   11180: 
1.1       bertrand 11181:   ac_popdir=`pwd`
                   11182:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   11183: 
                   11184:     # Do not complain, so a configure script can configure whichever
                   11185:     # parts of a large source tree are present.
                   11186:     test -d "$srcdir/$ac_dir" || continue
                   11187: 
                   11188:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 11189:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   11190:     $as_echo "$ac_msg" >&6
                   11191:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 11192:     ac_builddir=.
                   11193: 
                   11194: case "$ac_dir" in
                   11195: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11196: *)
1.15      bertrand 11197:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 11198:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 11199:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 11200:   case $ac_top_builddir_sub in
                   11201:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11202:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   11203:   esac ;;
                   11204: esac
                   11205: ac_abs_top_builddir=$ac_pwd
                   11206: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   11207: # for backward compatibility:
                   11208: ac_top_builddir=$ac_top_build_prefix
                   11209: 
                   11210: case $srcdir in
                   11211:   .)  # We are building in place.
                   11212:     ac_srcdir=.
                   11213:     ac_top_srcdir=$ac_top_builddir_sub
                   11214:     ac_abs_top_srcdir=$ac_pwd ;;
                   11215:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   11216:     ac_srcdir=$srcdir$ac_dir_suffix;
                   11217:     ac_top_srcdir=$srcdir
                   11218:     ac_abs_top_srcdir=$srcdir ;;
                   11219:   *) # Relative name.
                   11220:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   11221:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   11222:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   11223: esac
                   11224: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   11225: 
                   11226: 
                   11227:     cd "$ac_dir"
                   11228: 
                   11229:     # Check for guested configure; otherwise get Cygnus style configure.
                   11230:     if test -f "$ac_srcdir/configure.gnu"; then
                   11231:       ac_sub_configure=$ac_srcdir/configure.gnu
                   11232:     elif test -f "$ac_srcdir/configure"; then
                   11233:       ac_sub_configure=$ac_srcdir/configure
                   11234:     elif test -f "$ac_srcdir/configure.in"; then
                   11235:       # This should be Cygnus configure.
                   11236:       ac_sub_configure=$ac_aux_dir/configure
                   11237:     else
1.15      bertrand 11238:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11239: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11240:       ac_sub_configure=
                   11241:     fi
                   11242: 
                   11243:     # The recursion is here.
                   11244:     if test -n "$ac_sub_configure"; then
                   11245:       # Make the cache file name correct relative to the subdirectory.
                   11246:       case $cache_file in
                   11247:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11248:       *) # Relative name.
                   11249:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11250:       esac
                   11251: 
1.15      bertrand 11252:       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
                   11253: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1       bertrand 11254:       # The eval makes quoting arguments work.
                   11255:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11256:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11257:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11258:     fi
                   11259: 
                   11260:     cd "$ac_popdir"
                   11261:   done
                   11262: fi
1.15      bertrand 11263: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11264:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11265: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11266: fi
1.1       bertrand 11267: 

CVSweb interface <joel.bertrand@systella.fr>