Changeset 3362


Ignore:
Timestamp:
Feb 26, 2013, 4:34:35 PM (7 years ago)
Author:
ldelgass
Message:

Merge nanovis2 branch to trunk

Location:
trunk
Files:
19 deleted
52 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/gui/scripts/flowvisviewer.tcl

    r3330 r3362  
    125125    private method arrows { tag name }
    126126
     127    private variable _arcball ""
     128    private variable _useArcball 1
    127129    private variable _outbuf       ;# buffer for outgoing commands
    128130
     
    220222    $_parser alias legend [itcl::code $this ReceiveLegend]
    221223    $_parser alias data [itcl::code $this ReceiveData]
     224    $_parser alias viserror [itcl::code $this ReceiveError]
    222225
    223226    # Initialize the view to some default parameters.
    224227    array set _view {
     228        qw      0.853553
     229        qx      -0.353553
     230        qy      0.353553
     231        qz      0.146447
    225232        theta   45
    226233        phi     45
     
    230237        pan-y   0
    231238    }
     239    set _arcball [blt::arcball create 100 100]
     240    set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     241    $_arcball quaternion $q
     242
    232243    set _limits(vmin) 0.0
    233244    set _limits(vmax) 1.0
    234245
    235246    array set _settings [subst {
     247        $this-qw                $_view(qw)
     248        $this-qx                $_view(qx)
     249        $this-qy                $_view(qy)
     250        $this-qz                $_view(qz)
     251        $this-theta             $_view(theta)
     252        $this-phi               $_view(phi)
     253        $this-psi               $_view(psi)
     254        $this-zoom              $_view(zoom)   
     255        $this-pan-x             $_view(pan-x)
     256        $this-pan-y             $_view(pan-y)
    236257        $this-arrows            0
    237258        $this-currenttime       0
    238259        $this-duration          1:00
    239260        $this-loop              0
    240         $this-pan-x             $_view(pan-x)
    241         $this-pan-y             $_view(pan-y)
    242         $this-phi               $_view(phi)
    243261        $this-play              0
    244         $this-psi               $_view(psi)
    245262        $this-speed             500
    246263        $this-step              0
    247264        $this-streams           0
    248         $this-theta             $_view(theta)
    249265        $this-volume            1
    250266        $this-xcutplane         0
     
    254270        $this-zcutplane         0
    255271        $this-zcutposition      0
    256         $this-zoom              $_view(zoom)
    257272    }]
    258273
     
    554569    image delete $_image(legend)
    555570    image delete $_image(download)
     571    catch { blt::arcball destroy $_arcball }
    556572    array unset _settings $this-*
    557573}
     
    10071023    }
    10081024
    1009     # Insure that the global opacity and thickness settings (in the slider
     1025    # Ensure that the global opacity and thickness settings (in the slider
    10101026    # settings widgets) are used for the active transfer-function.  Update the
    10111027    # values in the _settings varible.
     
    11811197    set w [winfo width $itk_component(3dview)]
    11821198    set h [winfo height $itk_component(3dview)]
     1199    $_arcball resize $w $h
    11831200    EventuallyResize $w $h
    11841201
     
    12291246            array set _view $location
    12301247        }
    1231     }
     1248
     1249        if 1 {
     1250            # Tell the server the name of the tool, the version, and
     1251            # dataset that we are rendering.  Have to do it here because
     1252            # we don't know what data objects are using the renderer until
     1253            # be get here.
     1254            global env
     1255
     1256            lappend out "hub" [exec hostname]
     1257            lappend out "viewer" "flowvisviewer"
     1258            if { [info exists env(USER)] } {
     1259                lappend out "user" $env(USER)
     1260            }
     1261            if { [info exists env(SESSION)] } {
     1262                lappend out "session" $env(SESSION)
     1263            }
     1264            lappend out "tool_id"      [$_first hints toolId]
     1265            lappend out "tool_name"    [$_first hints toolName]
     1266            lappend out "tool_version" [$_first hints toolRevision]
     1267            lappend out "tool_title"   [$_first hints toolTitle]
     1268            lappend out "tool_dataset" [$_first hints label]
     1269            SendCmd "clientinfo [list $out]"
     1270        }
     1271    }
     1272    set _settings($this-qw)    $_view(qw)
     1273    set _settings($this-qx)    $_view(qx)
     1274    set _settings($this-qy)    $_view(qy)
     1275    set _settings($this-qz)    $_view(qz)
    12321276    set _settings($this-theta) $_view(theta)
    12331277    set _settings($this-phi)   $_view(phi)
     
    12371281    set _settings($this-zoom)  $_view(zoom)
    12381282
    1239     set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    1240     SendCmd "camera angle $xyz"
     1283    if {$_useArcball} {
     1284        set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     1285        $_arcball quaternion $q
     1286        SendCmd "camera orient $q"
     1287    } else {
     1288        set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
     1289        SendCmd "camera angle $xyz"
     1290    }
    12411291    PanCamera
    12421292    SendCmd "camera zoom $_view(zoom)"
     
    13301380        "reset" {
    13311381            array set _view {
     1382                qw      0.853553
     1383                qx      -0.353553
     1384                qy      0.353553
     1385                qz      0.146447
    13321386                theta   45
    13331387                phi     45
     
    13431397                }
    13441398            }
    1345             set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    1346             SendCmd "camera angle $xyz"
     1399            if {$_useArcball} {
     1400                set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     1401                $_arcball quaternion $q
     1402                SendCmd "camera orient $q"
     1403            } else {
     1404                set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
     1405                SendCmd "camera angle $xyz"
     1406            }
    13471407            PanCamera
     1408            set _settings($this-qw)    $_view(qw)
     1409            set _settings($this-qx)    $_view(qx)
     1410            set _settings($this-qy)    $_view(qy)
     1411            set _settings($this-qz)    $_view(qz)
    13481412            set _settings($this-theta) $_view(theta)
    13491413            set _settings($this-phi)   $_view(phi)
     
    14001464                }
    14011465
    1402                 #
    1403                 # Rotate the camera in 3D
    1404                 #
    1405                 if {$_view(psi) > 90 || $_view(psi) < -90} {
    1406                     # when psi is flipped around, theta moves backwards
    1407                     set dy [expr {-$dy}]
     1466                if {$_useArcball} {
     1467                    set q [$_arcball rotate $x $y $_click(x) $_click(y)]
     1468                    foreach { _view(qw) _view(qx) _view(qy) _view(qz) } $q break
     1469                    set _settings($this-qw) $_view(qw)
     1470                    set _settings($this-qx) $_view(qx)
     1471                    set _settings($this-qy) $_view(qy)
     1472                    set _settings($this-qz) $_view(qz)
     1473                    SendCmd "camera orient $q"
     1474                } else {
     1475                    #
     1476                    # Rotate the camera in 3D
     1477                    #
     1478                    if {$_view(psi) > 90 || $_view(psi) < -90} {
     1479                        # when psi is flipped around, theta moves backwards
     1480                        set dy [expr {-$dy}]
     1481                    }
     1482                    set theta [expr {$_view(theta) - $dy*180}]
     1483                    while {$theta < 0} { set theta [expr {$theta+180}] }
     1484                    while {$theta > 180} { set theta [expr {$theta-180}] }
     1485
     1486                    if {abs($theta) >= 30 && abs($theta) <= 160} {
     1487                        set phi [expr {$_view(phi) - $dx*360}]
     1488                        while {$phi < 0} { set phi [expr {$phi+360}] }
     1489                        while {$phi > 360} { set phi [expr {$phi-360}] }
     1490                        set psi $_view(psi)
     1491                    } else {
     1492                        set phi $_view(phi)
     1493                        set psi [expr {$_view(psi) - $dx*360}]
     1494                        while {$psi < -180} { set psi [expr {$psi+360}] }
     1495                        while {$psi > 180} { set psi [expr {$psi-360}] }
     1496                    }
     1497
     1498                    set _view(theta)        $theta
     1499                    set _view(phi)          $phi
     1500                    set _view(psi)          $psi
     1501                    set xyz [Euler2XYZ $theta $phi $psi]
     1502                    set _settings($this-theta) $_view(theta)
     1503                    set _settings($this-phi)   $_view(phi)
     1504                    set _settings($this-psi)   $_view(psi)
     1505                    SendCmd "camera angle $xyz"
    14081506                }
    1409                 set theta [expr {$_view(theta) - $dy*180}]
    1410                 while {$theta < 0} { set theta [expr {$theta+180}] }
    1411                 while {$theta > 180} { set theta [expr {$theta-180}] }
    1412 
    1413                 if {abs($theta) >= 30 && abs($theta) <= 160} {
    1414                     set phi [expr {$_view(phi) - $dx*360}]
    1415                     while {$phi < 0} { set phi [expr {$phi+360}] }
    1416                     while {$phi > 360} { set phi [expr {$phi-360}] }
    1417                     set psi $_view(psi)
    1418                 } else {
    1419                     set phi $_view(phi)
    1420                     set psi [expr {$_view(psi) - $dx*360}]
    1421                     while {$psi < -180} { set psi [expr {$psi+360}] }
    1422                     while {$psi > 180} { set psi [expr {$psi-360}] }
    1423                 }
    1424 
    1425                 set _view(theta)        $theta
    1426                 set _view(phi)          $phi
    1427                 set _view(psi)          $psi
    1428                 set xyz [Euler2XYZ $theta $phi $psi]
    1429                 set _settings($this-theta) $_view(theta)
    1430                 set _settings($this-phi)   $_view(phi)
    1431                 set _settings($this-psi)   $_view(psi)
    1432                 SendCmd "camera angle $xyz"
     1507
    14331508                set _click(x) $x
    14341509                set _click(y) $y
     
    16031678                set tag $_first-$comp
    16041679                set diffuse [expr {0.01*$_settings($this-light)}]
    1605                 set specular [expr {sqrt($_settings($this-light)+1.0)}]
    1606                 SendCmd "$tag configure -diffuse $diffuse -specular $specular"
     1680                set ambient [expr {1.0 - $diffuse}]
     1681                set specularLevel 0.3
     1682                set specularExp 90.0
     1683                SendCmd "$tag configure -ambient $ambient -diffuse $diffuse -specularLevel $specularLevel -specularExp $specularExp"
    16071684            }
    16081685        }
     
    16111688                set comp [lindex [$_first components] 0]
    16121689                set tag $_first-$comp
    1613                 set opacity [expr {0.2*$_settings($this-transp)+1}]
     1690                set opacity [expr { 0.01 * double($_settings($this-transp)) }]
    16141691                SendCmd "$tag configure -opacity $opacity"
    16151692            }
     
    20732150}
    20742151
    2075 
    2076 
    20772152itcl::body Rappture::FlowvisViewer::BuildViewTab {} {
    20782153    foreach { key value } {
     
    21862261    label $inner.shading -text "Shading:" -font $fg
    21872262
    2188     label $inner.dim -text "Dim" -font $fg
     2263    label $inner.dim -text "Glow" -font $fg
    21892264    ::scale $inner.light -from 0 -to 100 -orient horizontal \
    21902265        -variable [itcl::scope _settings($this-light)] \
    21912266        -width 10 \
    21922267        -showvalue off -command [itcl::code $this FixSettings light]
    2193     label $inner.bright -text "Bright" -font $fg
    2194 
    2195     label $inner.fog -text "Fog" -font $fg
     2268    label $inner.bright -text "Surface" -font $fg
     2269
     2270    label $inner.fog -text "Clear" -font $fg
    21962271    ::scale $inner.transp -from 0 -to 100 -orient horizontal \
    21972272        -variable [itcl::scope _settings($this-transp)] \
    21982273        -width 10 \
    21992274        -showvalue off -command [itcl::code $this FixSettings transp]
    2200     label $inner.plastic -text "Plastic" -font $fg
     2275    label $inner.plastic -text "Opaque" -font $fg
    22012276
    22022277    label $inner.clear -text "Clear" -font $fg
     
    22232298        3,1 $inner.transp -columnspan 2 -pady 2 -fill x \
    22242299        3,3 $inner.plastic -anchor w -pady 2 \
    2225         4,0 $inner.clear -anchor e -pady 2 \
    2226         4,1 $inner.opacity -columnspan 2 -pady 2 -fill x\
    2227         4,3 $inner.opaque -anchor w -pady 2 \
    2228         5,0 $inner.thin -anchor e -pady 2 \
    2229         5,1 $inner.thickness -columnspan 2 -pady 2 -fill x\
    2230         5,3 $inner.thick -anchor w -pady 2
     2300        4,0 $inner.thin -anchor e -pady 2 \
     2301        4,1 $inner.thickness -columnspan 2 -pady 2 -fill x\
     2302        4,3 $inner.thick -anchor w -pady 2
    22312303
    22322304    if 0 {
     
    22452317    }
    22462318    blt::table configure $inner c0 c1 c3 r* -resize none
    2247     blt::table configure $inner r6 -resize expand
     2319    blt::table configure $inner r5 -resize expand
    22482320}
    22492321
     
    23552427    $inner configure -borderwidth 4
    23562428
    2357     set labels { phi theta psi pan-x pan-y zoom }
     2429    if {$_useArcball} {
     2430        set labels { qw qx qy qz pan-x pan-y zoom }
     2431    } else {
     2432        set labels { phi theta psi pan-x pan-y zoom }
     2433    }
    23582434    set row 0
    23592435    foreach tag $labels {
     
    25372613    set _width $w
    25382614    set _height $h
     2615    $_arcball resize $w $h
    25392616    if { !$_resizePending } {
    25402617        $_dispatcher event -after 200 !resize
     
    25812658                    set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    25822659                    SendCmd "camera angle $xyz"
     2660                    if {$_useArcball} {
     2661                        $_arcball euler [list [expr {-[lindex $xyz 2]}] [expr {-[lindex $xyz 1]}] [expr {-[lindex $xyz 0]}]]
     2662                        set q [$_arcball quaternion]
     2663                        foreach { _view(qw) _view(qx) _view(qy) _view(qz) } $q break
     2664                        set _settings($this-qw) $_view(qw)
     2665                        set _settings($this-qx) $_view(qx)
     2666                        set _settings($this-qy) $_view(qy)
     2667                        set _settings($this-qz) $_view(qz)
     2668                    }
     2669                }
     2670                "qx" - "qy" - "qz" - "qw" {
     2671                    set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     2672                    $_arcball quaternion $q
     2673                    SendCmd "camera orient $q"
    25832674                }
    25842675                "zoom" {
  • trunk/gui/scripts/isomarker.tcl

    r3330 r3362  
    116116        array set limits [$_nvobj limits $_tf]
    117117        if { $limits(vmax) == $limits(vmin) } {
    118             set limits(min) 0.0
    119             set limits(max) 1.0
     118            set limits(vmin) 0.0
     119            set limits(vmax) 1.0
    120120        }
    121121        if { [catch {expr $limits(vmax) - $limits(vmin)} r] != 0 } {
  • trunk/gui/scripts/nanovisviewer.tcl

    r3339 r3362  
    120120    private method SetOrientation {}
    121121
     122    private variable _arcball ""
     123    private variable _useArcball 1
    122124    private variable _outbuf       ;# buffer for outgoing commands
    123125
     
    130132                                   ;# in the server.
    131133    private variable _recvdDatasets    ;# list of data objs to send to server
    132     private variable _vol2style    ;# maps dataobj-component to transfunc
     134    private variable _dataset2style    ;# maps dataobj-component to transfunc
    133135    private variable _style2datasets   ;# maps tf back to list of
    134136                                    # dataobj-components using the tf.
     
    199201    # Initialize the view to some default parameters.
    200202    array set _view {
     203        qw      0.853553
     204        qx      -0.353553
     205        qy      0.353553
     206        qz      0.146447
    201207        theta   45
    202208        phi     45
     
    206212        pan-y   0
    207213    }
     214    set _arcball [blt::arcball create 100 100]
     215    set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     216    $_arcball quaternion $q
     217
    208218    set _limits(vmin) 0.0
    209219    set _limits(vmax) 1.0
     
    211221
    212222    array set _settings [subst {
     223        $this-qw                $_view(qw)
     224        $this-qx                $_view(qx)
     225        $this-qy                $_view(qy)
     226        $this-qz                $_view(qz)
     227        $this-theta             $_view(theta)
     228        $this-phi               $_view(phi)
     229        $this-psi               $_view(psi)
     230        $this-zoom              $_view(zoom)   
    213231        $this-pan-x             $_view(pan-x)
    214232        $this-pan-y             $_view(pan-y)
    215         $this-phi               $_view(phi)
    216         $this-psi               $_view(psi)
    217         $this-theta             $_view(theta)
    218233        $this-volume            1
    219234        $this-xcutplane         0
     
    223238        $this-zcutplane         0
    224239        $this-zcutposition      0
    225         $this-zoom              $_view(zoom)
    226240    }]
    227241
     
    379393    image delete $_image(legend)
    380394    image delete $_image(download)
     395    catch { blt::arcball destroy $_arcball }
    381396    array unset _settings $this-*
    382397}
     
    491506            array unset _limits $dataobj*
    492507            array unset _obj2ovride $dataobj-*
    493             array unset _vol2style $dataobj-*
     508            array unset _dataset2style $dataobj-*
    494509            set changed 1
    495510        }
     
    676691            # The volume hasn't reached the server yet.  How did we get
    677692            # here?
     693            puts stderr "Don't have $vol in _serverVols"
    678694            continue
    679695        }
    680         if { ![info exists _vol2style($tag)] } {
    681             puts stderr "unknown volume $tag"
     696        if { ![info exists _dataset2style($tag)] } {
     697            puts stderr "Don't have style for volume $tag"
    682698            continue;                        # How does this happen?
    683699        }
    684         set tf $_vol2style($tag)
     700        set tf $_dataset2style($tag)
    685701        set _settings($this-$tf-opacity) $opacity
    686702        set _settings($this-$tf-thickness) $thickness
     
    819835        return
    820836    }
     837
     838    puts stderr "Received volume info: '$args'"
     839
    821840    # Arguments from server are name value pairs. Stuff them in an array.
    822841    array set info $args
     
    872891    set w [winfo width $itk_component(3dview)]
    873892    set h [winfo height $itk_component(3dview)]
     893    $_arcball resize $w $h
    874894    EventuallyResize $w $h
    875895
     
    894914        # Reset the camera and other view parameters
    895915        #
    896        
     916        set _settings($this-qw)    $_view(qw)
     917        set _settings($this-qx)    $_view(qx)
     918        set _settings($this-qy)    $_view(qy)
     919        set _settings($this-qz)    $_view(qz)
    897920        set _settings($this-theta) $_view(theta)
    898921        set _settings($this-phi)   $_view(phi)
     
    901924        set _settings($this-pan-y) $_view(pan-y)
    902925        set _settings($this-zoom)  $_view(zoom)
    903        
    904         set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    905         SendCmd "camera angle $xyz"
     926
     927        if {$_useArcball} {
     928            set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     929            $_arcball quaternion $q
     930            SendCmd "camera orient $q"
     931        } else {
     932            set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
     933            SendCmd "camera angle $xyz"
     934        }
     935
    906936        PanCamera
    907937        SendCmd "camera zoom $_view(zoom)"
     938        FixSettings light2side
    908939        FixSettings light
    909940        FixSettings transp
     
    10211052        "reset" {
    10221053            array set _view {
     1054                qw      0.853553
     1055                qx      -0.353553
     1056                qy      0.353553
     1057                qz      0.146447
    10231058                theta   45
    10241059                phi     45
     
    10341069                }
    10351070            }
    1036             set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    1037             SendCmd "camera angle $xyz"
     1071            if {$_useArcball} {
     1072                set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     1073                $_arcball quaternion $q
     1074                SendCmd "camera orient $q"
     1075            } else {
     1076                set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
     1077                SendCmd "camera angle $xyz"
     1078            }
     1079
    10381080            PanCamera
     1081            set _settings($this-qw)    $_view(qw)
     1082            set _settings($this-qx)    $_view(qx)
     1083            set _settings($this-qy)    $_view(qy)
     1084            set _settings($this-qz)    $_view(qz)
    10391085            set _settings($this-theta) $_view(theta)
    10401086            set _settings($this-phi)   $_view(phi)
     
    10921138                }
    10931139
    1094                 #
    1095                 # Rotate the camera in 3D
    1096                 #
    1097                 if {$_view(psi) > 90 || $_view(psi) < -90} {
    1098                     # when psi is flipped around, theta moves backwards
    1099                     set dy [expr {-$dy}]
     1140                if {$_useArcball} {
     1141                    set q [$_arcball rotate $x $y $_click(x) $_click(y)]
     1142                    foreach { _view(qw) _view(qx) _view(qy) _view(qz) } $q break
     1143                    set _settings($this-qw) $_view(qw)
     1144                    set _settings($this-qx) $_view(qx)
     1145                    set _settings($this-qy) $_view(qy)
     1146                    set _settings($this-qz) $_view(qz)
     1147                    SendCmd "camera orient $q"
     1148                } else {
     1149                    #
     1150                    # Rotate the camera in 3D
     1151                    #
     1152                    if {$_view(psi) > 90 || $_view(psi) < -90} {
     1153                        # when psi is flipped around, theta moves backwards
     1154                        set dy [expr {-$dy}]
     1155                    }
     1156                    set theta [expr {$_view(theta) - $dy*180}]
     1157                    while {$theta < 0} { set theta [expr {$theta+180}] }
     1158                    while {$theta > 180} { set theta [expr {$theta-180}] }
     1159
     1160                    if {abs($theta) >= 30 && abs($theta) <= 160} {
     1161                        set phi [expr {$_view(phi) - $dx*360}]
     1162                        while {$phi < 0} { set phi [expr {$phi+360}] }
     1163                        while {$phi > 360} { set phi [expr {$phi-360}] }
     1164                        set psi $_view(psi)
     1165                    } else {
     1166                        set phi $_view(phi)
     1167                        set psi [expr {$_view(psi) - $dx*360}]
     1168                        while {$psi < -180} { set psi [expr {$psi+360}] }
     1169                        while {$psi > 180} { set psi [expr {$psi-360}] }
     1170                    }
     1171
     1172                    set _view(theta)        $theta
     1173                    set _view(phi)          $phi
     1174                    set _view(psi)          $psi
     1175                    set xyz [Euler2XYZ $theta $phi $psi]
     1176                    set _settings($this-theta) $_view(theta)
     1177                    set _settings($this-phi)   $_view(phi)
     1178                    set _settings($this-psi)   $_view(psi)
     1179                    SendCmd "camera angle $xyz"
    11001180                }
    1101                 set theta [expr {$_view(theta) - $dy*180}]
    1102                 while {$theta < 0} { set theta [expr {$theta+180}] }
    1103                 while {$theta > 180} { set theta [expr {$theta-180}] }
    1104 
    1105                 if {abs($theta) >= 30 && abs($theta) <= 160} {
    1106                     set phi [expr {$_view(phi) - $dx*360}]
    1107                     while {$phi < 0} { set phi [expr {$phi+360}] }
    1108                     while {$phi > 360} { set phi [expr {$phi-360}] }
    1109                     set psi $_view(psi)
    1110                 } else {
    1111                     set phi $_view(phi)
    1112                     set psi [expr {$_view(psi) - $dx*360}]
    1113                     while {$psi < -180} { set psi [expr {$psi+360}] }
    1114                     while {$psi > 180} { set psi [expr {$psi-360}] }
    1115                 }
    1116 
    1117                 set _view(theta)        $theta
    1118                 set _view(phi)          $phi
    1119                 set _view(psi)          $psi
    1120                 set xyz [Euler2XYZ $theta $phi $psi]
    1121                 set _settings($this-theta) $_view(theta)
    1122                 set _settings($this-phi)   $_view(phi)
    1123                 set _settings($this-psi)   $_view(psi)
    1124                 SendCmd "camera angle $xyz"
     1181
    11251182                set _click(x) $x
    11261183                set _click(y) $y
     
    11931250            if {[isconnected]} {
    11941251                set val $_settings($this-light)
    1195                 set sval [expr {0.01*$val}]
    1196                 SendCmd "volume shading diffuse $sval"
    1197                 set sval [expr {sqrt($val+1.0)}]
    1198                 SendCmd "volume shading specular $sval"
     1252                set diffuse [expr {0.01*$val}]
     1253                set ambient [expr {1.0-$diffuse}]
     1254                set specularLevel 0.3
     1255                set specularExp 90.0
     1256                SendCmd "volume shading ambient $ambient"
     1257                SendCmd "volume shading diffuse $diffuse"
     1258                SendCmd "volume shading specularLevel $specularLevel"
     1259                SendCmd "volume shading specularExp $specularExp"
     1260            }
     1261        }
     1262        light2side {
     1263            if {[isconnected]} {
     1264                set val $_settings($this-light2side)
     1265                SendCmd "volume shading light2side $val"
    11991266            }
    12001267        }
     
    12021269            if {[isconnected]} {
    12031270                set val $_settings($this-transp)
    1204                 set sval [expr {0.2*$val+1}]
     1271                set sval [expr { 0.01 * double($val) }]
    12051272                SendCmd "volume shading opacity $sval"
    12061273            }
     
    12171284            }
    12181285        }
    1219 
    12201286        thickness {
    12211287            if {[isconnected] && [array names _activeTfs] > 0 } {
     
    13021368    if {$w > 0 && $h > 0 && [array names _activeTfs] > 0 && $_first != "" } {
    13031369        set tag [lindex [CurrentDatasets] 0]
    1304         if { [info exists _vol2style($tag)] } {
    1305             SendCmd "legend $_vol2style($tag) $w $h"
     1370        if { [info exists _dataset2style($tag)] } {
     1371            SendCmd "legend $_dataset2style($tag) $w $h"
    13061372        }
    13071373    } else {
     
    13331399        -levels 6
    13341400        -opacity 1.0
     1401        -markers ""
    13351402    }
    13361403    set tag $dataobj-$cname
    13371404    array set style [lindex [$dataobj components -style $cname] 0]
    13381405    set tf "$style(-color):$style(-levels):$style(-opacity)"
    1339     set _vol2style($tag) $tf
     1406    set _dataset2style($tag) $tf
    13401407    lappend _style2datasets($tf) $tag
    13411408    return $tf
     
    13561423        -levels 6
    13571424        -opacity 1.0
     1425        -markers ""
    13581426    }
    13591427    foreach {dataobj cname} [split [lindex $_style2datasets($tf) 0] -] break
    13601428    array set style [lindex [$dataobj components -style $cname] 0]
    13611429
     1430    puts stderr "$tf: $style(-color), $style(-levels), $style(-opacity), $style(-markers)"
    13621431
    13631432    # We have to parse the style attributes for a volume using this
     
    13761445    if { ![info exists _isomarkers($tf)] } {
    13771446        # Have to defer creation of isomarkers until we have data limits
    1378         if { [info exists style(-markers)] } {
     1447        if { [info exists style(-markers)] &&
     1448             [llength $style(-markers)] > 0 } {
    13791449            ParseMarkersOption $tf $style(-markers)
     1450            puts stderr "Found markers option"
    13801451        } else {
    13811452            ParseLevelsOption $tf $style(-levels)
     
    13861457    }
    13871458    set clist [split $style(-color) :]
    1388     set cmap "0.0 [Color2RGB white] "
     1459    if {[llength $clist] == 1} {
     1460        lappend clist [lindex $clist 0]
     1461    }
    13891462    for {set i 0} {$i < [llength $clist]} {incr i} {
    1390         set x [expr {double($i+1)/([llength $clist]+1)}]
     1463        set x [expr {double($i)/([llength $clist]-1)}]
    13911464        set color [lindex $clist $i]
    13921465        append cmap "$x [Color2RGB $color] "
    13931466    }
    1394     append cmap "1.0 [Color2RGB $color]"
    13951467
    13961468    set tag $this-$tf
     
    13981470        set _settings($tag-opacity) $style(-opacity)
    13991471    }
    1400     set max $_settings($tag-opacity)
     1472    set max 1.0 ;#$_settings($tag-opacity)
    14011473
    14021474    set isovalues {}
     
    14081480
    14091481    if { ![info exists _settings($tag-thickness)]} {
    1410         set _settings($tag-thickness) 0.05
     1482        set _settings($tag-thickness) 0.005
    14111483    }
    14121484    set delta $_settings($tag-thickness)
     
    15631635    }
    15641636    set tag [lindex [CurrentDatasets] 0]
    1565     set tf $_vol2style($tag)
     1637    set tf $_dataset2style($tag)
    15661638    set c $itk_component(legend)
    15671639    set m [Rappture::IsoMarker \#auto $c $this $tf]
     
    17181790itcl::body Rappture::NanovisViewer::BuildVolumeTab {} {
    17191791    foreach { key value } {
     1792        light2side      0
    17201793        light           40
    17211794        transp          50
     
    17391812    label $inner.shading -text "Shading:" -font $fg
    17401813
    1741     label $inner.dim -text "Dim" -font $fg
     1814    checkbutton $inner.light2side -text "Two-sided lighting" -font $fg \
     1815        -variable [itcl::scope _settings($this-light2side)] \
     1816        -command [itcl::code $this FixSettings light2side]
     1817
     1818    label $inner.dim -text "Glow" -font $fg
    17421819    ::scale $inner.light -from 0 -to 100 -orient horizontal \
    17431820        -variable [itcl::scope _settings($this-light)] \
    17441821        -width 10 \
    17451822        -showvalue off -command [itcl::code $this FixSettings light]
    1746     label $inner.bright -text "Bright" -font $fg
    1747 
    1748     label $inner.fog -text "Fog" -font $fg
     1823    label $inner.bright -text "Surface" -font $fg
     1824
     1825    label $inner.fog -text "Clear" -font $fg
    17491826    ::scale $inner.transp -from 0 -to 100 -orient horizontal \
    17501827        -variable [itcl::scope _settings($this-transp)] \
    17511828        -width 10 \
    17521829        -showvalue off -command [itcl::code $this FixSettings transp]
    1753     label $inner.plastic -text "Plastic" -font $fg
     1830    label $inner.plastic -text "Opaque" -font $fg
    17541831
    17551832    label $inner.clear -text "Clear" -font $fg
     
    17701847        0,0 $inner.vol -columnspan 4 -anchor w -pady 2 \
    17711848        1,0 $inner.shading -columnspan 4 -anchor w -pady {10 2} \
    1772         2,0 $inner.dim -anchor e -pady 2 \
    1773         2,1 $inner.light -columnspan 2 -pady 2 -fill x \
    1774         2,3 $inner.bright -anchor w -pady 2 \
    1775         3,0 $inner.fog -anchor e -pady 2 \
    1776         3,1 $inner.transp -columnspan 2 -pady 2 -fill x \
    1777         3,3 $inner.plastic -anchor w -pady 2 \
    1778         4,0 $inner.clear -anchor e -pady 2 \
    1779         4,1 $inner.opacity -columnspan 2 -pady 2 -fill x\
    1780         4,3 $inner.opaque -anchor w -pady 2 \
     1849        2,0 $inner.light2side -columnspan 4 -anchor w -pady 2 \
     1850        3,0 $inner.dim -anchor e -pady 2 \
     1851        3,1 $inner.light -columnspan 2 -pady 2 -fill x \
     1852        3,3 $inner.bright -anchor w -pady 2 \
     1853        4,0 $inner.fog -anchor e -pady 2 \
     1854        4,1 $inner.transp -columnspan 2 -pady 2 -fill x \
     1855        4,3 $inner.plastic -anchor w -pady 2 \
    17811856        5,0 $inner.thin -anchor e -pady 2 \
    17821857        5,1 $inner.thickness -columnspan 2 -pady 2 -fill x\
    17831858        5,3 $inner.thick -anchor w -pady 2
     1859
     1860#        4,0 $inner.clear -anchor e -pady 2 \
     1861#        4,1 $inner.opacity -columnspan 2 -pady 2 -fill x\
     1862#        4,3 $inner.opaque -anchor w -pady 2 \
     1863
    17841864
    17851865    blt::table configure $inner c0 c1 c3 r* -resize none
     
    18941974    $inner configure -borderwidth 4
    18951975
    1896     set labels { phi theta psi pan-x pan-y zoom }
     1976    if {$_useArcball} {
     1977        set labels { qw qx qy qz pan-x pan-y zoom }
     1978    } else {
     1979        set labels { phi theta psi pan-x pan-y zoom }
     1980    }
    18971981    set row 0
    18981982    foreach tag $labels {
     
    19802064    set _width $w
    19812065    set _height $h
     2066    $_arcball resize $w $h
    19822067    if { !$_resizePending } {
    19832068        $_dispatcher event -idle !resize
     
    20182103                    set xyz [Euler2XYZ $_view(theta) $_view(phi) $_view(psi)]
    20192104                    SendCmd "camera angle $xyz"
     2105                    if {$_useArcball} {
     2106                        $_arcball euler [list [expr {-[lindex $xyz 2]}] [expr {-[lindex $xyz 1]}] [expr {-[lindex $xyz 0]}]]
     2107                        set q [$_arcball quaternion]
     2108                        foreach { _view(qw) _view(qx) _view(qy) _view(qz) } $q break
     2109                        set _settings($this-qw) $_view(qw)
     2110                        set _settings($this-qx) $_view(qx)
     2111                        set _settings($this-qy) $_view(qy)
     2112                        set _settings($this-qz) $_view(qz)
     2113                    }
     2114                }
     2115                "qx" - "qy" - "qz" - "qw" {
     2116                    set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
     2117                    $_arcball quaternion $q
     2118                    SendCmd "camera orient $q"
    20202119                }
    20212120                "zoom" {
  • trunk/packages/vizservers/configure

    r3335 r3362  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for vizservers 0.1.
     3# Generated by GNU Autoconf 2.63 for vizservers 0.1.
    44#
    55# Report bugs to <rappture@nanohub.org>.
    66#
    7 #
    8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    9 #
    10 #
     7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    119# This configure script is free software; the Free Software Foundation
    1210# gives unlimited permission to copy, distribute and modify it.
    13 ## -------------------- ##
    14 ## M4sh Initialization. ##
    15 ## -------------------- ##
     11## --------------------- ##
     12## M4sh Initialization.  ##
     13## --------------------- ##
    1614
    1715# Be more Bourne compatible
    1816DUALCASE=1; export DUALCASE # for MKS sh
    19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    2018  emulate sh
    2119  NULLCMD=:
     
    2523  setopt NO_GLOB_SUBST
    2624else
    27   case `(set -o) 2>/dev/null` in #(
    28   *posix*) :
    29     set -o posix ;; #(
    30   *) :
    31      ;;
    32 esac
    33 fi
    34 
     25  case `(set -o) 2>/dev/null` in
     26  *posix*) set -o posix ;;
     27esac
     28
     29fi
     30
     31
     32
     33
     34# PATH needs CR
     35# Avoid depending upon Character Ranges.
     36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     39as_cr_digits='0123456789'
     40as_cr_alnum=$as_cr_Letters$as_cr_digits
    3541
    3642as_nl='
     
    4147as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    4248as_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
     49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    5050  as_echo='printf %s\n'
    5151  as_echo_n='printf %s'
     
    5858    as_echo_n_body='eval
    5959      arg=$1;
    60       case $arg in #(
     60      case $arg in
    6161      *"$as_nl"*)
    6262        expr "X$arg" : "X\\(.*\\)$as_nl";
     
    8181fi
    8282
     83# Support unset when possible.
     84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     85  as_unset=unset
     86else
     87  as_unset=false
     88fi
     89
    8390
    8491# IFS
     
    9097
    9198# Find who we are.  Look in the path if we contain no directory separator.
    92 as_myself=
    93 case $0 in #((
     99case $0 in
    94100  *[\\/]* ) as_myself=$0 ;;
    95101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    98104  IFS=$as_save_IFS
    99105  test -z "$as_dir" && as_dir=.
    100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    101   done
     106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     107done
    102108IFS=$as_save_IFS
    103109
     
    111117if test ! -f "$as_myself"; then
    112118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    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 || :
     119  { (exit 1); exit 1; }
     120fi
     121
     122# Work around bugs in pre-3.0 UWIN ksh.
     123for as_var in ENV MAIL MAILPATH
     124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    123125done
    124126PS1='$ '
     
    132134export LANGUAGE
    133135
    134 # CDPATH.
    135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    136 
    137 # Use a proper internal environment variable to ensure we don't fall
    138   # into an infinite loop, continuously re-executing ourselves.
    139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    140     _as_can_reexec=no; export _as_can_reexec;
    141     # We cannot yet assume a decent shell, so we have to provide a
    142 # neutralization value for shells without unset; and this also
    143 # works around shells that cannot unset nonexistent variables.
    144 # Preserve -v and -x to the replacement shell.
    145 BASH_ENV=/dev/null
    146 ENV=/dev/null
    147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    148 case $- in # ((((
    149   *v*x* | *x*v* ) as_opts=-vx ;;
    150   *v* ) as_opts=-v ;;
    151   *x* ) as_opts=-x ;;
    152   * ) as_opts= ;;
    153 esac
    154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    155 # Admittedly, this is quite paranoid, since all the known shells bail
    156 # out after a failed `exec'.
    157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    158 as_fn_exit 255
    159   fi
    160   # We don't want this to propagate to other subprocesses.
    161           { _as_can_reexec=; unset _as_can_reexec;}
    162 if test "x$CONFIG_SHELL" = x; then
    163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    164   emulate sh
    165   NULLCMD=:
    166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    167   # is contrary to our usage.  Disable this feature.
    168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    169   setopt NO_GLOB_SUBST
    170 else
    171   case \`(set -o) 2>/dev/null\` in #(
    172   *posix*) :
    173     set -o posix ;; #(
    174   *) :
    175      ;;
    176 esac
    177 fi
    178 "
    179   as_required="as_fn_return () { (exit \$1); }
    180 as_fn_success () { as_fn_return 0; }
    181 as_fn_failure () { as_fn_return 1; }
    182 as_fn_ret_success () { return 0; }
    183 as_fn_ret_failure () { return 1; }
    184 
    185 exitcode=0
    186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    191 
    192 else
    193   exitcode=1; echo positional parameters were not saved.
    194 fi
    195 test x\$exitcode = x0 || exit 1
    196 test -x / || exit 1"
    197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    201 test \$(( 1 + 1 )) = 2 || exit 1"
    202   if (eval "$as_required") 2>/dev/null; then :
    203   as_have_required=yes
    204 else
    205   as_have_required=no
    206 fi
    207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    208 
    209 else
    210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    211 as_found=false
    212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    213 do
    214   IFS=$as_save_IFS
    215   test -z "$as_dir" && as_dir=.
    216   as_found=:
    217   case $as_dir in #(
    218          /*)
    219            for as_base in sh bash ksh sh5; do
    220              # Try only shells that exist, to save several forks.
    221              as_shell=$as_dir/$as_base
    222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   CONFIG_SHELL=$as_shell as_have_required=yes
    225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    226   break 2
    227 fi
    228 fi
    229            done;;
    230        esac
    231   as_found=false
    232 done
    233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    235   CONFIG_SHELL=$SHELL as_have_required=yes
    236 fi; }
    237 IFS=$as_save_IFS
    238 
    239 
    240       if test "x$CONFIG_SHELL" != x; then :
    241   export CONFIG_SHELL
    242              # We cannot yet assume a decent shell, so we have to provide a
    243 # neutralization value for shells without unset; and this also
    244 # works around shells that cannot unset nonexistent variables.
    245 # Preserve -v and -x to the replacement shell.
    246 BASH_ENV=/dev/null
    247 ENV=/dev/null
    248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    249 case $- in # ((((
    250   *v*x* | *x*v* ) as_opts=-vx ;;
    251   *v* ) as_opts=-v ;;
    252   *x* ) as_opts=-x ;;
    253   * ) as_opts= ;;
    254 esac
    255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    256 # Admittedly, this is quite paranoid, since all the known shells bail
    257 # out after a failed `exec'.
    258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    259 exit 255
    260 fi
    261 
    262     if test x$as_have_required = xno; then :
    263   $as_echo "$0: This script requires a shell more modern than all"
    264   $as_echo "$0: the shells that I found on your system."
    265   if test x${ZSH_VERSION+set} = xset ; then
    266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    268   else
    269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
    270 $0: rappture@nanohub.org about your system, including any
    271 $0: error possibly output before this message. Then install
    272 $0: a modern shell, or manually run the script under such a
    273 $0: shell if you do have one."
    274   fi
    275   exit 1
    276 fi
    277 fi
    278 fi
    279 SHELL=${CONFIG_SHELL-/bin/sh}
    280 export SHELL
    281 # Unset more variables known to interfere with behavior of common tools.
    282 CLICOLOR_FORCE= GREP_OPTIONS=
    283 unset CLICOLOR_FORCE GREP_OPTIONS
    284 
    285 ## --------------------- ##
    286 ## M4sh Shell Functions. ##
    287 ## --------------------- ##
    288 # as_fn_unset VAR
    289 # ---------------
    290 # Portably unset VAR.
    291 as_fn_unset ()
    292 {
    293   { eval $1=; unset $1;}
    294 }
    295 as_unset=as_fn_unset
    296 
    297 # as_fn_set_status STATUS
    298 # -----------------------
    299 # Set $? to STATUS, without forking.
    300 as_fn_set_status ()
    301 {
    302   return $1
    303 } # as_fn_set_status
    304 
    305 # as_fn_exit STATUS
    306 # -----------------
    307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    308 as_fn_exit ()
    309 {
    310   set +e
    311   as_fn_set_status $1
    312   exit $1
    313 } # as_fn_exit
    314 
    315 # as_fn_mkdir_p
    316 # -------------
    317 # Create "$as_dir" as a directory, including parents if necessary.
    318 as_fn_mkdir_p ()
    319 {
    320 
    321   case $as_dir in #(
    322   -*) as_dir=./$as_dir;;
    323   esac
    324   test -d "$as_dir" || eval $as_mkdir_p || {
    325     as_dirs=
    326     while :; do
    327       case $as_dir in #(
    328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    329       *) as_qdir=$as_dir;;
    330       esac
    331       as_dirs="'$as_qdir' $as_dirs"
    332       as_dir=`$as_dirname -- "$as_dir" ||
    333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    334          X"$as_dir" : 'X\(//\)[^/]' \| \
    335          X"$as_dir" : 'X\(//\)$' \| \
    336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    337 $as_echo X"$as_dir" |
    338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    339             s//\1/
    340             q
    341           }
    342           /^X\(\/\/\)[^/].*/{
    343             s//\1/
    344             q
    345           }
    346           /^X\(\/\/\)$/{
    347             s//\1/
    348             q
    349           }
    350           /^X\(\/\).*/{
    351             s//\1/
    352             q
    353           }
    354           s/.*/./; q'`
    355       test -d "$as_dir" && break
    356     done
    357     test -z "$as_dirs" || eval "mkdir $as_dirs"
    358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    359 
    360 
    361 } # as_fn_mkdir_p
    362 
    363 # as_fn_executable_p FILE
    364 # -----------------------
    365 # Test if FILE is an executable regular file.
    366 as_fn_executable_p ()
    367 {
    368   test -f "$1" && test -x "$1"
    369 } # as_fn_executable_p
    370 # as_fn_append VAR VALUE
    371 # ----------------------
    372 # Append the text in VALUE to the end of the definition contained in VAR. Take
    373 # advantage of any shell optimizations that allow amortized linear growth over
    374 # repeated appends, instead of the typical quadratic growth present in naive
    375 # implementations.
    376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    377   eval 'as_fn_append ()
    378   {
    379     eval $1+=\$2
    380   }'
    381 else
    382   as_fn_append ()
    383   {
    384     eval $1=\$$1\$2
    385   }
    386 fi # as_fn_append
    387 
    388 # as_fn_arith ARG...
    389 # ------------------
    390 # Perform arithmetic evaluation on the ARGs, and store the result in the
    391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    392 # must be portable across $(()) and expr.
    393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    394   eval 'as_fn_arith ()
    395   {
    396     as_val=$(( $* ))
    397   }'
    398 else
    399   as_fn_arith ()
    400   {
    401     as_val=`expr "$@" || test $? -eq 1`
    402   }
    403 fi # as_fn_arith
    404 
    405 
    406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    407 # ----------------------------------------
    408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    410 # script with STATUS, using 1 if that was 0.
    411 as_fn_error ()
    412 {
    413   as_status=$1; test $as_status -eq 0 && as_status=1
    414   if test "$4"; then
    415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    417   fi
    418   $as_echo "$as_me: error: $2" >&2
    419   as_fn_exit $as_status
    420 } # as_fn_error
    421 
     136# Required to use basename.
    422137if expr a : '\(a\)' >/dev/null 2>&1 &&
    423138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     
    433148fi
    434149
    435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    436   as_dirname=dirname
    437 else
    438   as_dirname=false
    439 fi
    440 
     150
     151# Name of the executable.
    441152as_me=`$as_basename -- "$0" ||
    442153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     
    458169          s/.*/./; q'`
    459170
    460 # Avoid depending upon Character Ranges.
    461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    464 as_cr_digits='0123456789'
    465 as_cr_alnum=$as_cr_Letters$as_cr_digits
    466 
    467 
    468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
     171# CDPATH.
     172$as_unset CDPATH
     173
     174
     175if test "x$CONFIG_SHELL" = x; then
     176  if (eval ":") 2>/dev/null; then
     177  as_have_required=yes
     178else
     179  as_have_required=no
     180fi
     181
     182  if test $as_have_required = yes &&     (eval ":
     183(as_func_return () {
     184  (exit \$1)
     185}
     186as_func_success () {
     187  as_func_return 0
     188}
     189as_func_failure () {
     190  as_func_return 1
     191}
     192as_func_ret_success () {
     193  return 0
     194}
     195as_func_ret_failure () {
     196  return 1
     197}
     198
     199exitcode=0
     200if as_func_success; then
     201  :
     202else
     203  exitcode=1
     204  echo as_func_success failed.
     205fi
     206
     207if as_func_failure; then
     208  exitcode=1
     209  echo as_func_failure succeeded.
     210fi
     211
     212if as_func_ret_success; then
     213  :
     214else
     215  exitcode=1
     216  echo as_func_ret_success failed.
     217fi
     218
     219if as_func_ret_failure; then
     220  exitcode=1
     221  echo as_func_ret_failure succeeded.
     222fi
     223
     224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
     225  :
     226else
     227  exitcode=1
     228  echo positional parameters were not saved.
     229fi
     230
     231test \$exitcode = 0) || { (exit 1); exit 1; }
     232
     233(
     234  as_lineno_1=\$LINENO
     235  as_lineno_2=\$LINENO
     236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
     237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
     238") 2> /dev/null; then
     239  :
     240else
     241  as_candidate_shells=
     242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     244do
     245  IFS=$as_save_IFS
     246  test -z "$as_dir" && as_dir=.
     247  case $as_dir in
     248         /*)
     249           for as_base in sh bash ksh sh5; do
     250             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
     251           done;;
     252       esac
     253done
     254IFS=$as_save_IFS
     255
     256
     257      for as_shell in $as_candidate_shells $SHELL; do
     258         # Try only shells that exist, to save several forks.
     259         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
     260                { ("$as_shell") 2> /dev/null <<\_ASEOF
     261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     262  emulate sh
     263  NULLCMD=:
     264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     265  # is contrary to our usage.  Disable this feature.
     266  alias -g '${1+"$@"}'='"$@"'
     267  setopt NO_GLOB_SUBST
     268else
     269  case `(set -o) 2>/dev/null` in
     270  *posix*) set -o posix ;;
     271esac
     272
     273fi
     274
     275
     276:
     277_ASEOF
     278}; then
     279  CONFIG_SHELL=$as_shell
     280               as_have_required=yes
     281               if { "$as_shell" 2> /dev/null <<\_ASEOF
     282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     283  emulate sh
     284  NULLCMD=:
     285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     286  # is contrary to our usage.  Disable this feature.
     287  alias -g '${1+"$@"}'='"$@"'
     288  setopt NO_GLOB_SUBST
     289else
     290  case `(set -o) 2>/dev/null` in
     291  *posix*) set -o posix ;;
     292esac
     293
     294fi
     295
     296
     297:
     298(as_func_return () {
     299  (exit $1)
     300}
     301as_func_success () {
     302  as_func_return 0
     303}
     304as_func_failure () {
     305  as_func_return 1
     306}
     307as_func_ret_success () {
     308  return 0
     309}
     310as_func_ret_failure () {
     311  return 1
     312}
     313
     314exitcode=0
     315if as_func_success; then
     316  :
     317else
     318  exitcode=1
     319  echo as_func_success failed.
     320fi
     321
     322if as_func_failure; then
     323  exitcode=1
     324  echo as_func_failure succeeded.
     325fi
     326
     327if as_func_ret_success; then
     328  :
     329else
     330  exitcode=1
     331  echo as_func_ret_success failed.
     332fi
     333
     334if as_func_ret_failure; then
     335  exitcode=1
     336  echo as_func_ret_failure succeeded.
     337fi
     338
     339if ( set x; as_func_ret_success y && test x = "$1" ); then
     340  :
     341else
     342  exitcode=1
     343  echo positional parameters were not saved.
     344fi
     345
     346test $exitcode = 0) || { (exit 1); exit 1; }
     347
     348(
     349  as_lineno_1=$LINENO
     350  as_lineno_2=$LINENO
     351  test "x$as_lineno_1" != "x$as_lineno_2" &&
     352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
     353
     354_ASEOF
     355}; then
     356  break
     357fi
     358
     359fi
     360
     361      done
     362
     363      if test "x$CONFIG_SHELL" != x; then
     364  for as_var in BASH_ENV ENV
     365        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     366        done
     367        export CONFIG_SHELL
     368        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
     369fi
     370
     371
     372    if test $as_have_required = no; then
     373  echo This script requires a shell more modern than all the
     374      echo shells that I found on your system.  Please install a
     375      echo modern shell, or manually run the script under such a
     376      echo shell if you do have one.
     377      { (exit 1); exit 1; }
     378fi
     379
     380
     381fi
     382
     383fi
     384
     385
     386
     387(eval "as_func_return () {
     388  (exit \$1)
     389}
     390as_func_success () {
     391  as_func_return 0
     392}
     393as_func_failure () {
     394  as_func_return 1
     395}
     396as_func_ret_success () {
     397  return 0
     398}
     399as_func_ret_failure () {
     400  return 1
     401}
     402
     403exitcode=0
     404if as_func_success; then
     405  :
     406else
     407  exitcode=1
     408  echo as_func_success failed.
     409fi
     410
     411if as_func_failure; then
     412  exitcode=1
     413  echo as_func_failure succeeded.
     414fi
     415
     416if as_func_ret_success; then
     417  :
     418else
     419  exitcode=1
     420  echo as_func_ret_success failed.
     421fi
     422
     423if as_func_ret_failure; then
     424  exitcode=1
     425  echo as_func_ret_failure succeeded.
     426fi
     427
     428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
     429  :
     430else
     431  exitcode=1
     432  echo positional parameters were not saved.
     433fi
     434
     435test \$exitcode = 0") || {
     436  echo No shell found that supports shell functions.
     437  echo Please tell bug-autoconf@gnu.org about your system,
     438  echo including any error possibly output before this message.
     439  echo This can help us improve future autoconf versions.
     440  echo Configuration will now proceed without shell functions.
     441}
     442
     443
     444
     445  as_lineno_1=$LINENO
     446  as_lineno_2=$LINENO
     447  test "x$as_lineno_1" != "x$as_lineno_2" &&
     448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
     449
     450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     451  # uniformly replaced by the line number.  The first 'sed' inserts a
     452  # line-number line after each line using $LINENO; the second 'sed'
     453  # does the real work.  The second script uses 'N' to pair each
     454  # line-number line with the line containing $LINENO, and appends
     455  # trailing '-' during substitution so that $LINENO is not a special
     456  # case at line end.
     457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
     459  # E. McMahon (1931-1989) for sed's syntax.  :-)
    473460  sed -n '
    474461    p
     
    487474    ' >$as_me.lineno &&
    488475  chmod +x "$as_me.lineno" ||
    489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    490 
    491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    492   # already done that, so ensure we don't try to do so again and fall
    493   # in an infinite loop.  This has already happened in practice.
    494   _as_can_reexec=no; export _as_can_reexec
     476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     477   { (exit 1); exit 1; }; }
     478
    495479  # Don't try to exec as it changes $[0], causing all sort of problems
    496480  # (the dirname of $[0] is not the place where we might find the
     
    501485}
    502486
     487
     488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     489  as_dirname=dirname
     490else
     491  as_dirname=false
     492fi
     493
    503494ECHO_C= ECHO_N= ECHO_T=
    504 case `echo -n x` in #(((((
     495case `echo -n x` in
    505496-n*)
    506   case `echo 'xy\c'` in
     497  case `echo 'x\c'` in
    507498  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
    508   xy)  ECHO_C='\c';;
    509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    510        ECHO_T=' ';;
     499  *)   ECHO_C='\c';;
    511500  esac;;
    512501*)
    513502  ECHO_N='-n';;
    514503esac
     504if expr a : '\(a\)' >/dev/null 2>&1 &&
     505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     506  as_expr=expr
     507else
     508  as_expr=false
     509fi
    515510
    516511rm -f conf$$ conf$$.exe conf$$.file
     
    527522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    528523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    529     # In both cases, we have to default to `cp -pR'.
     524    # In both cases, we have to default to `cp -p'.
    530525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    531       as_ln_s='cp -pR'
     526      as_ln_s='cp -p'
    532527  elif ln conf$$.file conf$$ 2>/dev/null; then
    533528    as_ln_s=ln
    534529  else
    535     as_ln_s='cp -pR'
     530    as_ln_s='cp -p'
    536531  fi
    537532else
    538   as_ln_s='cp -pR'
     533  as_ln_s='cp -p'
    539534fi
    540535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     
    542537
    543538if mkdir -p . 2>/dev/null; then
    544   as_mkdir_p='mkdir -p "$as_dir"'
     539  as_mkdir_p=:
    545540else
    546541  test -d ./-p && rmdir ./-p
     
    548543fi
    549544
    550 as_test_x='test -x'
    551 as_executable_p=as_fn_executable_p
     545if test -x / >/dev/null 2>&1; then
     546  as_test_x='test -x'
     547else
     548  if ls -dL / >/dev/null 2>&1; then
     549    as_ls_L_option=L
     550  else
     551    as_ls_L_option=
     552  fi
     553  as_test_x='
     554    eval sh -c '\''
     555      if test -d "$1"; then
     556        test -d "$1/.";
     557      else
     558        case $1 in
     559        -*)set "./$1";;
     560        esac;
     561        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
     562        ???[sx]*):;;*)false;;esac;fi
     563    '\'' sh
     564  '
     565fi
     566as_executable_p=$as_test_x
    552567
    553568# Sed expression to map a string onto a valid CPP name.
     
    558573
    559574
    560 test -n "$DJDIR" || exec 7<&0 </dev/null
    561 exec 6>&1
     575
     576exec 7<&0 </dev/null 6>&1
    562577
    563578# Name of the host.
    564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
     579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    565580# so uname gets run too.
    566581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     
    577592MFLAGS=
    578593MAKEFLAGS=
     594SHELL=${CONFIG_SHELL-/bin/sh}
    579595
    580596# Identity of this package.
     
    584600PACKAGE_STRING='vizservers 0.1'
    585601PACKAGE_BUGREPORT='rappture@nanohub.org'
    586 PACKAGE_URL=''
    587602
    588603# Factoring default headers for most tests.
     
    721736prefix
    722737exec_prefix
    723 PACKAGE_URL
    724738PACKAGE_BUGREPORT
    725739PACKAGE_STRING
     
    820834
    821835  case $ac_option in
    822   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    823   *=)   ac_optarg= ;;
    824   *)    ac_optarg=yes ;;
     836  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     837  *)    ac_optarg=yes ;;
    825838  esac
    826839
     
    867880    # Reject names that are not valid shell variable names.
    868881    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    869       as_fn_error $? "invalid feature name: $ac_useropt"
     882      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
     883   { (exit 1); exit 1; }; }
    870884    ac_useropt_orig=$ac_useropt
    871885    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    893907    # Reject names that are not valid shell variable names.
    894908    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    895       as_fn_error $? "invalid feature name: $ac_useropt"
     909      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
     910   { (exit 1); exit 1; }; }
    896911    ac_useropt_orig=$ac_useropt
    897912    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    10971112    # Reject names that are not valid shell variable names.
    10981113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1099       as_fn_error $? "invalid package name: $ac_useropt"
     1114      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
     1115   { (exit 1); exit 1; }; }
    11001116    ac_useropt_orig=$ac_useropt
    11011117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11131129    # Reject names that are not valid shell variable names.
    11141130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1115       as_fn_error $? "invalid package name: $ac_useropt"
     1131      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
     1132   { (exit 1); exit 1; }; }
    11161133    ac_useropt_orig=$ac_useropt
    11171134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11431160    x_libraries=$ac_optarg ;;
    11441161
    1145   -*) as_fn_error $? "unrecognized option: \`$ac_option'
    1146 Try \`$0 --help' for more information"
     1162  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
     1163Try \`$0 --help' for more information." >&2
     1164   { (exit 1); exit 1; }; }
    11471165    ;;
    11481166
     
    11501168    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    11511169    # Reject names that are not valid shell variable names.
    1152     case $ac_envvar in #(
    1153       '' | [0-9]* | *[!_$as_cr_alnum]* )
    1154       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    1155     esac
     1170    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
     1171      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     1172   { (exit 1); exit 1; }; }
    11561173    eval $ac_envvar=\$ac_optarg
    11571174    export $ac_envvar ;;
     
    11621179    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    11631180      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    1164     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
     1181    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    11651182    ;;
    11661183
     
    11701187if test -n "$ac_prev"; then
    11711188  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    1172   as_fn_error $? "missing argument to $ac_option"
     1189  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
     1190   { (exit 1); exit 1; }; }
    11731191fi
    11741192
     
    11761194  case $enable_option_checking in
    11771195    no) ;;
    1178     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1196    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
     1197   { (exit 1); exit 1; }; } ;;
    11791198    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
    11801199  esac
     
    11991218    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    12001219  esac
    1201   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
     1220  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     1221   { (exit 1); exit 1; }; }
    12021222done
    12031223
     
    12131233  if test "x$build_alias" = x; then
    12141234    cross_compiling=maybe
     1235    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     1236    If a cross compiler is detected then cross compile mode will be used." >&2
    12151237  elif test "x$build_alias" != "x$host_alias"; then
    12161238    cross_compiling=yes
     
    12271249ac_ls_di=`ls -di .` &&
    12281250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1229   as_fn_error $? "working directory cannot be determined"
     1251  { $as_echo "$as_me: error: working directory cannot be determined" >&2
     1252   { (exit 1); exit 1; }; }
    12301253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1231   as_fn_error $? "pwd does not report name of working directory"
     1254  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
     1255   { (exit 1); exit 1; }; }
    12321256
    12331257
     
    12681292if test ! -r "$srcdir/$ac_unique_file"; then
    12691293  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1270   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1294  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     1295   { (exit 1); exit 1; }; }
    12711296fi
    12721297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    12731298ac_abs_confdir=`(
    1274         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1299        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
     1300   { (exit 1); exit 1; }; }
    12751301        pwd)`
    12761302# When building in place, set srcdir=.
     
    13121338      --help=recursive    display the short help of all the included packages
    13131339  -V, --version           display version information and exit
    1314   -q, --quiet, --silent   do not print \`checking ...' messages
     1340  -q, --quiet, --silent   do not print \`checking...' messages
    13151341      --cache-file=FILE   cache test results in FILE [disabled]
    13161342  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    13951421              nonstandard directory <lib dir>
    13961422  LIBS        libraries to pass to the linker, e.g. -l<library>
    1397   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1423  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
    13981424              you have headers in a nonstandard directory <include dir>
    13991425  CPP         C preprocessor
     
    14701496  cat <<\_ACEOF
    14711497vizservers configure 0.1
    1472 generated by GNU Autoconf 2.69
    1473 
    1474 Copyright (C) 2012 Free Software Foundation, Inc.
     1498generated by GNU Autoconf 2.63
     1499
     1500Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
     15012002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    14751502This configure script is free software; the Free Software Foundation
    14761503gives unlimited permission to copy, distribute and modify it.
     
    14781505  exit
    14791506fi
    1480 
    1481 ## ------------------------ ##
    1482 ## Autoconf initialization. ##
    1483 ## ------------------------ ##
    1484 
    1485 # ac_fn_c_try_compile LINENO
    1486 # --------------------------
    1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
    1488 ac_fn_c_try_compile ()
    1489 {
    1490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1491   rm -f conftest.$ac_objext
    1492   if { { ac_try="$ac_compile"
    1493 case "(($ac_try" in
    1494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1495   *) ac_try_echo=$ac_try;;
    1496 esac
    1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1498 $as_echo "$ac_try_echo"; } >&5
    1499   (eval "$ac_compile") 2>conftest.err
    1500   ac_status=$?
    1501   if test -s conftest.err; then
    1502     grep -v '^ *+' conftest.err >conftest.er1
    1503     cat conftest.er1 >&5
    1504     mv -f conftest.er1 conftest.err
    1505   fi
    1506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1507   test $ac_status = 0; } && {
    1508          test -z "$ac_c_werror_flag" ||
    1509          test ! -s conftest.err
    1510        } && test -s conftest.$ac_objext; then :
    1511   ac_retval=0
    1512 else
    1513   $as_echo "$as_me: failed program was:" >&5
    1514 sed 's/^/| /' conftest.$ac_ext >&5
    1515 
    1516         ac_retval=1
    1517 fi
    1518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1519   as_fn_set_status $ac_retval
    1520 
    1521 } # ac_fn_c_try_compile
    1522 
    1523 # ac_fn_c_try_cpp LINENO
    1524 # ----------------------
    1525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    1526 ac_fn_c_try_cpp ()
    1527 {
    1528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1529   if { { ac_try="$ac_cpp conftest.$ac_ext"
    1530 case "(($ac_try" in
    1531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1532   *) ac_try_echo=$ac_try;;
    1533 esac
    1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1535 $as_echo "$ac_try_echo"; } >&5
    1536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
    1537   ac_status=$?
    1538   if test -s conftest.err; then
    1539     grep -v '^ *+' conftest.err >conftest.er1
    1540     cat conftest.er1 >&5
    1541     mv -f conftest.er1 conftest.err
    1542   fi
    1543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1544   test $ac_status = 0; } > conftest.i && {
    1545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    1546          test ! -s conftest.err
    1547        }; then :
    1548   ac_retval=0
    1549 else
    1550   $as_echo "$as_me: failed program was:" >&5
    1551 sed 's/^/| /' conftest.$ac_ext >&5
    1552 
    1553     ac_retval=1
    1554 fi
    1555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1556   as_fn_set_status $ac_retval
    1557 
    1558 } # ac_fn_c_try_cpp
    1559 
    1560 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
    1561 # -------------------------------------------------------
    1562 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
    1563 # the include files in INCLUDES and setting the cache variable VAR
    1564 # accordingly.
    1565 ac_fn_c_check_header_mongrel ()
    1566 {
    1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1568   if eval \${$3+:} false; then :
    1569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1570 $as_echo_n "checking for $2... " >&6; }
    1571 if eval \${$3+:} false; then :
    1572   $as_echo_n "(cached) " >&6
    1573 fi
    1574 eval ac_res=\$$3
    1575                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1576 $as_echo "$ac_res" >&6; }
    1577 else
    1578   # Is the header compilable?
    1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
    1580 $as_echo_n "checking $2 usability... " >&6; }
    1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1582 /* end confdefs.h.  */
    1583 $4
    1584 #include <$2>
    1585 _ACEOF
    1586 if ac_fn_c_try_compile "$LINENO"; then :
    1587   ac_header_compiler=yes
    1588 else
    1589   ac_header_compiler=no
    1590 fi
    1591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
    1593 $as_echo "$ac_header_compiler" >&6; }
    1594 
    1595 # Is the header present?
    1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
    1597 $as_echo_n "checking $2 presence... " >&6; }
    1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1599 /* end confdefs.h.  */
    1600 #include <$2>
    1601 _ACEOF
    1602 if ac_fn_c_try_cpp "$LINENO"; then :
    1603   ac_header_preproc=yes
    1604 else
    1605   ac_header_preproc=no
    1606 fi
    1607 rm -f conftest.err conftest.i conftest.$ac_ext
    1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
    1609 $as_echo "$ac_header_preproc" >&6; }
    1610 
    1611 # So?  What about this header?
    1612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
    1613   yes:no: )
    1614     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
    1615 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    1616     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    1617 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    1618     ;;
    1619   no:yes:* )
    1620     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
    1621 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    1622     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
    1623 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    1624     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
    1625 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    1626     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
    1627 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    1628     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    1630 ( $as_echo "## ----------------------------------- ##
    1631 ## Report this to rappture@nanohub.org ##
    1632 ## ----------------------------------- ##"
    1633      ) | sed "s/^/$as_me: WARNING:     /" >&2
    1634     ;;
    1635 esac
    1636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1637 $as_echo_n "checking for $2... " >&6; }
    1638 if eval \${$3+:} false; then :
    1639   $as_echo_n "(cached) " >&6
    1640 else
    1641   eval "$3=\$ac_header_compiler"
    1642 fi
    1643 eval ac_res=\$$3
    1644                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1645 $as_echo "$ac_res" >&6; }
    1646 fi
    1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1648 
    1649 } # ac_fn_c_check_header_mongrel
    1650 
    1651 # ac_fn_c_try_run LINENO
    1652 # ----------------------
    1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    1654 # that executables *can* be run.
    1655 ac_fn_c_try_run ()
    1656 {
    1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1658   if { { ac_try="$ac_link"
    1659 case "(($ac_try" in
    1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1661   *) ac_try_echo=$ac_try;;
    1662 esac
    1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1664 $as_echo "$ac_try_echo"; } >&5
    1665   (eval "$ac_link") 2>&5
    1666   ac_status=$?
    1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1668   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
    1669   { { case "(($ac_try" in
    1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1671   *) ac_try_echo=$ac_try;;
    1672 esac
    1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1674 $as_echo "$ac_try_echo"; } >&5
    1675   (eval "$ac_try") 2>&5
    1676   ac_status=$?
    1677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1678   test $ac_status = 0; }; }; then :
    1679   ac_retval=0
    1680 else
    1681   $as_echo "$as_me: program exited with status $ac_status" >&5
    1682        $as_echo "$as_me: failed program was:" >&5
    1683 sed 's/^/| /' conftest.$ac_ext >&5
    1684 
    1685        ac_retval=$ac_status
    1686 fi
    1687   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1689   as_fn_set_status $ac_retval
    1690 
    1691 } # ac_fn_c_try_run
    1692 
    1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
    1694 # -------------------------------------------------------
    1695 # Tests whether HEADER exists and can be compiled using the include files in
    1696 # INCLUDES, setting the cache variable VAR accordingly.
    1697 ac_fn_c_check_header_compile ()
    1698 {
    1699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1701 $as_echo_n "checking for $2... " >&6; }
    1702 if eval \${$3+:} false; then :
    1703   $as_echo_n "(cached) " >&6
    1704 else
    1705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1706 /* end confdefs.h.  */
    1707 $4
    1708 #include <$2>
    1709 _ACEOF
    1710 if ac_fn_c_try_compile "$LINENO"; then :
    1711   eval "$3=yes"
    1712 else
    1713   eval "$3=no"
    1714 fi
    1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1716 fi
    1717 eval ac_res=\$$3
    1718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1719 $as_echo "$ac_res" >&6; }
    1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1721 
    1722 } # ac_fn_c_check_header_compile
    1723 
    1724 # ac_fn_c_try_link LINENO
    1725 # -----------------------
    1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
    1727 ac_fn_c_try_link ()
    1728 {
    1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1730   rm -f conftest.$ac_objext conftest$ac_exeext
    1731   if { { ac_try="$ac_link"
    1732 case "(($ac_try" in
    1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1734   *) ac_try_echo=$ac_try;;
    1735 esac
    1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1737 $as_echo "$ac_try_echo"; } >&5
    1738   (eval "$ac_link") 2>conftest.err
    1739   ac_status=$?
    1740   if test -s conftest.err; then
    1741     grep -v '^ *+' conftest.err >conftest.er1
    1742     cat conftest.er1 >&5
    1743     mv -f conftest.er1 conftest.err
    1744   fi
    1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1746   test $ac_status = 0; } && {
    1747          test -z "$ac_c_werror_flag" ||
    1748          test ! -s conftest.err
    1749        } && test -s conftest$ac_exeext && {
    1750          test "$cross_compiling" = yes ||
    1751          test -x conftest$ac_exeext
    1752        }; then :
    1753   ac_retval=0
    1754 else
    1755   $as_echo "$as_me: failed program was:" >&5
    1756 sed 's/^/| /' conftest.$ac_ext >&5
    1757 
    1758         ac_retval=1
    1759 fi
    1760   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
    1761   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
    1762   # interfere with the next link command; also delete a directory that is
    1763   # left behind by Apple's compiler.  We do this before executing the actions.
    1764   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1766   as_fn_set_status $ac_retval
    1767 
    1768 } # ac_fn_c_try_link
    1769 
    1770 # ac_fn_cxx_try_compile LINENO
    1771 # ----------------------------
    1772 # Try to compile conftest.$ac_ext, and return whether this succeeded.
    1773 ac_fn_cxx_try_compile ()
    1774 {
    1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1776   rm -f conftest.$ac_objext
    1777   if { { ac_try="$ac_compile"
    1778 case "(($ac_try" in
    1779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1780   *) ac_try_echo=$ac_try;;
    1781 esac
    1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1783 $as_echo "$ac_try_echo"; } >&5
    1784   (eval "$ac_compile") 2>conftest.err
    1785   ac_status=$?
    1786   if test -s conftest.err; then
    1787     grep -v '^ *+' conftest.err >conftest.er1
    1788     cat conftest.er1 >&5
    1789     mv -f conftest.er1 conftest.err
    1790   fi
    1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1792   test $ac_status = 0; } && {
    1793          test -z "$ac_cxx_werror_flag" ||
    1794          test ! -s conftest.err
    1795        } && test -s conftest.$ac_objext; then :
    1796   ac_retval=0
    1797 else
    1798   $as_echo "$as_me: failed program was:" >&5
    1799 sed 's/^/| /' conftest.$ac_ext >&5
    1800 
    1801         ac_retval=1
    1802 fi
    1803   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1804   as_fn_set_status $ac_retval
    1805 
    1806 } # ac_fn_cxx_try_compile
    1807 
    1808 # ac_fn_cxx_try_cpp LINENO
    1809 # ------------------------
    1810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    1811 ac_fn_cxx_try_cpp ()
    1812 {
    1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1814   if { { ac_try="$ac_cpp conftest.$ac_ext"
    1815 case "(($ac_try" in
    1816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1817   *) ac_try_echo=$ac_try;;
    1818 esac
    1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1820 $as_echo "$ac_try_echo"; } >&5
    1821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
    1822   ac_status=$?
    1823   if test -s conftest.err; then
    1824     grep -v '^ *+' conftest.err >conftest.er1
    1825     cat conftest.er1 >&5
    1826     mv -f conftest.er1 conftest.err
    1827   fi
    1828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1829   test $ac_status = 0; } > conftest.i && {
    1830          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    1831          test ! -s conftest.err
    1832        }; then :
    1833   ac_retval=0
    1834 else
    1835   $as_echo "$as_me: failed program was:" >&5
    1836 sed 's/^/| /' conftest.$ac_ext >&5
    1837 
    1838     ac_retval=1
    1839 fi
    1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1841   as_fn_set_status $ac_retval
    1842 
    1843 } # ac_fn_cxx_try_cpp
    1844 
    1845 # ac_fn_cxx_try_run LINENO
    1846 # ------------------------
    1847 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    1848 # that executables *can* be run.
    1849 ac_fn_cxx_try_run ()
    1850 {
    1851   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1852   if { { ac_try="$ac_link"
    1853 case "(($ac_try" in
    1854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1855   *) ac_try_echo=$ac_try;;
    1856 esac
    1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1858 $as_echo "$ac_try_echo"; } >&5
    1859   (eval "$ac_link") 2>&5
    1860   ac_status=$?
    1861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1862   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
    1863   { { case "(($ac_try" in
    1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1865   *) ac_try_echo=$ac_try;;
    1866 esac
    1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1868 $as_echo "$ac_try_echo"; } >&5
    1869   (eval "$ac_try") 2>&5
    1870   ac_status=$?
    1871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1872   test $ac_status = 0; }; }; then :
    1873   ac_retval=0
    1874 else
    1875   $as_echo "$as_me: program exited with status $ac_status" >&5
    1876        $as_echo "$as_me: failed program was:" >&5
    1877 sed 's/^/| /' conftest.$ac_ext >&5
    1878 
    1879        ac_retval=$ac_status
    1880 fi
    1881   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1882   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1883   as_fn_set_status $ac_retval
    1884 
    1885 } # ac_fn_cxx_try_run
    1886 
    1887 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
    1888 # ----------------------------------------------
    1889 # Tries to find the compile-time value of EXPR in a program that includes
    1890 # INCLUDES, setting VAR accordingly. Returns whether the value could be
    1891 # computed
    1892 ac_fn_cxx_compute_int ()
    1893 {
    1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1895   if test "$cross_compiling" = yes; then
    1896     # Depending upon the size, compute the lo and hi bounds.
    1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1898 /* end confdefs.h.  */
    1899 $4
    1900 int
    1901 main ()
    1902 {
    1903 static int test_array [1 - 2 * !(($2) >= 0)];
    1904 test_array [0] = 0;
    1905 return test_array [0];
    1906 
    1907   ;
    1908   return 0;
    1909 }
    1910 _ACEOF
    1911 if ac_fn_cxx_try_compile "$LINENO"; then :
    1912   ac_lo=0 ac_mid=0
    1913   while :; do
    1914     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1915 /* end confdefs.h.  */
    1916 $4
    1917 int
    1918 main ()
    1919 {
    1920 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    1921 test_array [0] = 0;
    1922 return test_array [0];
    1923 
    1924   ;
    1925   return 0;
    1926 }
    1927 _ACEOF
    1928 if ac_fn_cxx_try_compile "$LINENO"; then :
    1929   ac_hi=$ac_mid; break
    1930 else
    1931   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
    1932                         if test $ac_lo -le $ac_mid; then
    1933                           ac_lo= ac_hi=
    1934                           break
    1935                         fi
    1936                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
    1937 fi
    1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1939   done
    1940 else
    1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1942 /* end confdefs.h.  */
    1943 $4
    1944 int
    1945 main ()
    1946 {
    1947 static int test_array [1 - 2 * !(($2) < 0)];
    1948 test_array [0] = 0;
    1949 return test_array [0];
    1950 
    1951   ;
    1952   return 0;
    1953 }
    1954 _ACEOF
    1955 if ac_fn_cxx_try_compile "$LINENO"; then :
    1956   ac_hi=-1 ac_mid=-1
    1957   while :; do
    1958     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1959 /* end confdefs.h.  */
    1960 $4
    1961 int
    1962 main ()
    1963 {
    1964 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
    1965 test_array [0] = 0;
    1966 return test_array [0];
    1967 
    1968   ;
    1969   return 0;
    1970 }
    1971 _ACEOF
    1972 if ac_fn_cxx_try_compile "$LINENO"; then :
    1973   ac_lo=$ac_mid; break
    1974 else
    1975   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
    1976                         if test $ac_mid -le $ac_hi; then
    1977                           ac_lo= ac_hi=
    1978                           break
    1979                         fi
    1980                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
    1981 fi
    1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1983   done
    1984 else
    1985   ac_lo= ac_hi=
    1986 fi
    1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1988 fi
    1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1990 # Binary search between lo and hi bounds.
    1991 while test "x$ac_lo" != "x$ac_hi"; do
    1992   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
    1993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1994 /* end confdefs.h.  */
    1995 $4
    1996 int
    1997 main ()
    1998 {
    1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2000 test_array [0] = 0;
    2001 return test_array [0];
    2002 
    2003   ;
    2004   return 0;
    2005 }
    2006 _ACEOF
    2007 if ac_fn_cxx_try_compile "$LINENO"; then :
    2008   ac_hi=$ac_mid
    2009 else
    2010   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
    2011 fi
    2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2013 done
    2014 case $ac_lo in #((
    2015 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
    2016 '') ac_retval=1 ;;
    2017 esac
    2018   else
    2019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2020 /* end confdefs.h.  */
    2021 $4
    2022 static long int longval () { return $2; }
    2023 static unsigned long int ulongval () { return $2; }
    2024 #include <stdio.h>
    2025 #include <stdlib.h>
    2026 int
    2027 main ()
    2028 {
    2029 
    2030   FILE *f = fopen ("conftest.val", "w");
    2031   if (! f)
    2032     return 1;
    2033   if (($2) < 0)
    2034     {
    2035       long int i = longval ();
    2036       if (i != ($2))
    2037         return 1;
    2038       fprintf (f, "%ld", i);
    2039     }
    2040   else
    2041     {
    2042       unsigned long int i = ulongval ();
    2043       if (i != ($2))
    2044         return 1;
    2045       fprintf (f, "%lu", i);
    2046     }
    2047   /* Do not output a trailing newline, as this causes \r\n confusion
    2048      on some platforms.  */
    2049   return ferror (f) || fclose (f) != 0;
    2050 
    2051   ;
    2052   return 0;
    2053 }
    2054 _ACEOF
    2055 if ac_fn_cxx_try_run "$LINENO"; then :
    2056   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
    2057 else
    2058   ac_retval=1
    2059 fi
    2060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    2061   conftest.$ac_objext conftest.beam conftest.$ac_ext
    2062 rm -f conftest.val
    2063 
    2064   fi
    2065   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2066   as_fn_set_status $ac_retval
    2067 
    2068 } # ac_fn_cxx_compute_int
    2069 
    2070 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
    2071 # ---------------------------------------------------------
    2072 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
    2073 # the include files in INCLUDES and setting the cache variable VAR
    2074 # accordingly.
    2075 ac_fn_cxx_check_header_mongrel ()
    2076 {
    2077   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2078   if eval \${$3+:} false; then :
    2079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2080 $as_echo_n "checking for $2... " >&6; }
    2081 if eval \${$3+:} false; then :
    2082   $as_echo_n "(cached) " >&6
    2083 fi
    2084 eval ac_res=\$$3
    2085                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2086 $as_echo "$ac_res" >&6; }
    2087 else
    2088   # Is the header compilable?
    2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
    2090 $as_echo_n "checking $2 usability... " >&6; }
    2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2092 /* end confdefs.h.  */
    2093 $4
    2094 #include <$2>
    2095 _ACEOF
    2096 if ac_fn_cxx_try_compile "$LINENO"; then :
    2097   ac_header_compiler=yes
    2098 else
    2099   ac_header_compiler=no
    2100 fi
    2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
    2103 $as_echo "$ac_header_compiler" >&6; }
    2104 
    2105 # Is the header present?
    2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
    2107 $as_echo_n "checking $2 presence... " >&6; }
    2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2109 /* end confdefs.h.  */
    2110 #include <$2>
    2111 _ACEOF
    2112 if ac_fn_cxx_try_cpp "$LINENO"; then :
    2113   ac_header_preproc=yes
    2114 else
    2115   ac_header_preproc=no
    2116 fi
    2117 rm -f conftest.err conftest.i conftest.$ac_ext
    2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
    2119 $as_echo "$ac_header_preproc" >&6; }
    2120 
    2121 # So?  What about this header?
    2122 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
    2123   yes:no: )
    2124     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
    2125 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    2126     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    2127 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    2128     ;;
    2129   no:yes:* )
    2130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
    2131 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    2132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
    2133 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    2134     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
    2135 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    2136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
    2137 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    2138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    2140 ( $as_echo "## ----------------------------------- ##
    2141 ## Report this to rappture@nanohub.org ##
    2142 ## ----------------------------------- ##"
    2143      ) | sed "s/^/$as_me: WARNING:     /" >&2
    2144     ;;
    2145 esac
    2146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2147 $as_echo_n "checking for $2... " >&6; }
    2148 if eval \${$3+:} false; then :
    2149   $as_echo_n "(cached) " >&6
    2150 else
    2151   eval "$3=\$ac_header_compiler"
    2152 fi
    2153 eval ac_res=\$$3
    2154                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2155 $as_echo "$ac_res" >&6; }
    2156 fi
    2157   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2158 
    2159 } # ac_fn_cxx_check_header_mongrel
    2160 
    2161 # ac_fn_cxx_try_link LINENO
    2162 # -------------------------
    2163 # Try to link conftest.$ac_ext, and return whether this succeeded.
    2164 ac_fn_cxx_try_link ()
    2165 {
    2166   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2167   rm -f conftest.$ac_objext conftest$ac_exeext
    2168   if { { ac_try="$ac_link"
    2169 case "(($ac_try" in
    2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2171   *) ac_try_echo=$ac_try;;
    2172 esac
    2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2174 $as_echo "$ac_try_echo"; } >&5
    2175   (eval "$ac_link") 2>conftest.err
    2176   ac_status=$?
    2177   if test -s conftest.err; then
    2178     grep -v '^ *+' conftest.err >conftest.er1
    2179     cat conftest.er1 >&5
    2180     mv -f conftest.er1 conftest.err
    2181   fi
    2182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2183   test $ac_status = 0; } && {
    2184          test -z "$ac_cxx_werror_flag" ||
    2185          test ! -s conftest.err
    2186        } && test -s conftest$ac_exeext && {
    2187          test "$cross_compiling" = yes ||
    2188          test -x conftest$ac_exeext
    2189        }; then :
    2190   ac_retval=0
    2191 else
    2192   $as_echo "$as_me: failed program was:" >&5
    2193 sed 's/^/| /' conftest.$ac_ext >&5
    2194 
    2195         ac_retval=1
    2196 fi
    2197   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
    2198   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
    2199   # interfere with the next link command; also delete a directory that is
    2200   # left behind by Apple's compiler.  We do this before executing the actions.
    2201   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    2202   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2203   as_fn_set_status $ac_retval
    2204 
    2205 } # ac_fn_cxx_try_link
    2206 
    2207 # ac_fn_cxx_check_func LINENO FUNC VAR
    2208 # ------------------------------------
    2209 # Tests whether FUNC exists, setting the cache variable VAR accordingly
    2210 ac_fn_cxx_check_func ()
    2211 {
    2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2214 $as_echo_n "checking for $2... " >&6; }
    2215 if eval \${$3+:} false; then :
    2216   $as_echo_n "(cached) " >&6
    2217 else
    2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2219 /* end confdefs.h.  */
    2220 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
    2221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    2222 #define $2 innocuous_$2
    2223 
    2224 /* System header to define __stub macros and hopefully few prototypes,
    2225     which can conflict with char $2 (); below.
    2226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    2227     <limits.h> exists even on freestanding compilers.  */
    2228 
    2229 #ifdef __STDC__
    2230 # include <limits.h>
    2231 #else
    2232 # include <assert.h>
    2233 #endif
    2234 
    2235 #undef $2
    2236 
    2237 /* Override any GCC internal prototype to avoid an error.
    2238    Use char because int might match the return type of a GCC
    2239    builtin and then its argument prototype would still apply.  */
    2240 #ifdef __cplusplus
    2241 extern "C"
    2242 #endif
    2243 char $2 ();
    2244 /* The GNU C library defines this for functions which it implements
    2245     to always fail with ENOSYS.  Some functions are actually named
    2246     something starting with __ and the normal name is an alias.  */
    2247 #if defined __stub_$2 || defined __stub___$2
    2248 choke me
    2249 #endif
    2250 
    2251 int
    2252 main ()
    2253 {
    2254 return $2 ();
    2255   ;
    2256   return 0;
    2257 }
    2258 _ACEOF
    2259 if ac_fn_cxx_try_link "$LINENO"; then :
    2260   eval "$3=yes"
    2261 else
    2262   eval "$3=no"
    2263 fi
    2264 rm -f core conftest.err conftest.$ac_objext \
    2265     conftest$ac_exeext conftest.$ac_ext
    2266 fi
    2267 eval ac_res=\$$3
    2268                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2269 $as_echo "$ac_res" >&6; }
    2270   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2271 
    2272 } # ac_fn_cxx_check_func
    2273 
    2274 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
    2275 # ---------------------------------------------------------
    2276 # Tests whether HEADER exists and can be compiled using the include files in
    2277 # INCLUDES, setting the cache variable VAR accordingly.
    2278 ac_fn_cxx_check_header_compile ()
    2279 {
    2280   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2282 $as_echo_n "checking for $2... " >&6; }
    2283 if eval \${$3+:} false; then :
    2284   $as_echo_n "(cached) " >&6
    2285 else
    2286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2287 /* end confdefs.h.  */
    2288 $4
    2289 #include <$2>
    2290 _ACEOF
    2291 if ac_fn_cxx_try_compile "$LINENO"; then :
    2292   eval "$3=yes"
    2293 else
    2294   eval "$3=no"
    2295 fi
    2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2297 fi
    2298 eval ac_res=\$$3
    2299                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2300 $as_echo "$ac_res" >&6; }
    2301   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2302 
    2303 } # ac_fn_cxx_check_header_compile
    23041507cat >config.log <<_ACEOF
    23051508This file contains any messages produced by compilers while
     
    23071510
    23081511It was created by vizservers $as_me 0.1, which was
    2309 generated by GNU Autoconf 2.69.  Invocation command line was
     1512generated by GNU Autoconf 2.63.  Invocation command line was
    23101513
    23111514  $ $0 $@
     
    23431546  IFS=$as_save_IFS
    23441547  test -z "$as_dir" && as_dir=.
    2345     $as_echo "PATH: $as_dir"
    2346   done
     1548  $as_echo "PATH: $as_dir"
     1549done
    23471550IFS=$as_save_IFS
    23481551
     
    23811584    esac
    23821585    case $ac_pass in
    2383     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
     1586    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    23841587    2)
    2385       as_fn_append ac_configure_args1 " '$ac_arg'"
     1588      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
    23861589      if test $ac_must_keep_next = true; then
    23871590        ac_must_keep_next=false # Got value, back to normal.
     
    23991602        esac
    24001603      fi
    2401       as_fn_append ac_configure_args " '$ac_arg'"
     1604      ac_configure_args="$ac_configure_args '$ac_arg'"
    24021605      ;;
    24031606    esac
    24041607  done
    24051608done
    2406 { ac_configure_args0=; unset ac_configure_args0;}
    2407 { ac_configure_args1=; unset ac_configure_args1;}
     1609$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1610$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
    24081611
    24091612# When interrupted or exit'd, cleanup temporary files, and complete
     
    24171620    echo
    24181621
    2419     $as_echo "## ---------------- ##
     1622    cat <<\_ASBOX
     1623## ---------------- ##
    24201624## Cache variables. ##
    2421 ## ---------------- ##"
     1625## ---------------- ##
     1626_ASBOX
    24221627    echo
    24231628    # The following way of writing the cache mishandles newlines in values,
     
    24281633    *${as_nl}*)
    24291634      case $ac_var in #(
    2430       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     1635      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
    24311636$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
    24321637      esac
     
    24341639      _ | IFS | as_nl) ;; #(
    24351640      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
    2436       *) { eval $ac_var=; unset $ac_var;} ;;
     1641      *) $as_unset $ac_var ;;
    24371642      esac ;;
    24381643    esac
     
    24531658    echo
    24541659
    2455     $as_echo "## ----------------- ##
     1660    cat <<\_ASBOX
     1661## ----------------- ##
    24561662## Output variables. ##
    2457 ## ----------------- ##"
     1663## ----------------- ##
     1664_ASBOX
    24581665    echo
    24591666    for ac_var in $ac_subst_vars
     
    24681675
    24691676    if test -n "$ac_subst_files"; then
    2470       $as_echo "## ------------------- ##
     1677      cat <<\_ASBOX
     1678## ------------------- ##
    24711679## File substitutions. ##
    2472 ## ------------------- ##"
     1680## ------------------- ##
     1681_ASBOX
    24731682      echo
    24741683      for ac_var in $ac_subst_files
     
    24841693
    24851694    if test -s confdefs.h; then
    2486       $as_echo "## ----------- ##
     1695      cat <<\_ASBOX
     1696## ----------- ##
    24871697## confdefs.h. ##
    2488 ## ----------- ##"
     1698## ----------- ##
     1699_ASBOX
    24891700      echo
    24901701      cat confdefs.h
     
    25001711' 0
    25011712for ac_signal in 1 2 13 15; do
    2502   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
     1713  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    25031714done
    25041715ac_signal=0
     
    25071718rm -f -r conftest* confdefs.h
    25081719
    2509 $as_echo "/* confdefs.h */" > confdefs.h
    2510 
    25111720# Predefined preprocessor variables.
    25121721
     
    25151724_ACEOF
    25161725
     1726
    25171727cat >>confdefs.h <<_ACEOF
    25181728#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    25191729_ACEOF
    25201730
     1731
    25211732cat >>confdefs.h <<_ACEOF
    25221733#define PACKAGE_VERSION "$PACKAGE_VERSION"
    25231734_ACEOF
    25241735
     1736
    25251737cat >>confdefs.h <<_ACEOF
    25261738#define PACKAGE_STRING "$PACKAGE_STRING"
    25271739_ACEOF
    25281740
     1741
    25291742cat >>confdefs.h <<_ACEOF
    25301743#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    2531 _ACEOF
    2532 
    2533 cat >>confdefs.h <<_ACEOF
    2534 #define PACKAGE_URL "$PACKAGE_URL"
    25351744_ACEOF
    25361745
     
    25411750ac_site_file2=NONE
    25421751if test -n "$CONFIG_SITE"; then
    2543   # We do not want a PATH search for config.site.
    2544   case $CONFIG_SITE in #((
    2545     -*)  ac_site_file1=./$CONFIG_SITE;;
    2546     */*) ac_site_file1=$CONFIG_SITE;;
    2547     *)   ac_site_file1=./$CONFIG_SITE;;
    2548   esac
     1752  ac_site_file1=$CONFIG_SITE
    25491753elif test "x$prefix" != xNONE; then
    25501754  ac_site_file1=$prefix/share/config.site
     
    25571761do
    25581762  test "x$ac_site_file" = xNONE && continue
    2559   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    2560     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     1763  if test -r "$ac_site_file"; then
     1764    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    25611765$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    25621766    sed 's/^/| /' "$ac_site_file" >&5
    2563     . "$ac_site_file" \
    2564       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2566 as_fn_error $? "failed to load site script $ac_site_file
    2567 See \`config.log' for more details" "$LINENO" 5; }
     1767    . "$ac_site_file"
    25681768  fi
    25691769done
    25701770
    25711771if test -r "$cache_file"; then
    2572   # Some versions of bash will fail to source /dev/null (special files
    2573   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
    2574   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    2575     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
     1772  # Some versions of bash will fail to source /dev/null (special
     1773  # files actually), so we avoid doing that.
     1774  if test -f "$cache_file"; then
     1775    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
    25761776$as_echo "$as_me: loading cache $cache_file" >&6;}
    25771777    case $cache_file in
     
    25811781  fi
    25821782else
    2583   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
     1783  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
    25841784$as_echo "$as_me: creating cache $cache_file" >&6;}
    25851785  >$cache_file
     
    25961796  case $ac_old_set,$ac_new_set in
    25971797    set,)
    2598       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1798      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    25991799$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    26001800      ac_cache_corrupted=: ;;
    26011801    ,set)
    2602       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
     1802      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    26031803$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    26041804      ac_cache_corrupted=: ;;
     
    26101810        ac_new_val_w=`echo x $ac_new_val`
    26111811        if test "$ac_old_val_w" != "$ac_new_val_w"; then
    2612           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
     1812          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    26131813$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    26141814          ac_cache_corrupted=:
    26151815        else
    2616           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     1816          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
    26171817$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
    26181818          eval $ac_var=\$ac_old_val
    26191819        fi
    2620         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
     1820        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
    26211821$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
    2622         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
     1822        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
    26231823$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    26241824      fi;;
     
    26321832    case " $ac_configure_args " in
    26331833      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    2634       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
     1834      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    26351835    esac
    26361836  fi
    26371837done
    26381838if $ac_cache_corrupted; then
    2639   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     1839  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    26401840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2641   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     1841  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    26421842$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    2643   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
    2644 fi
    2645 ## -------------------- ##
    2646 ## Main body of script. ##
    2647 ## -------------------- ##
     1843  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1844$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1845   { (exit 1); exit 1; }; }
     1846fi
     1847
     1848
     1849
     1850
     1851
     1852
     1853
     1854
     1855
     1856
     1857
     1858
     1859
     1860
     1861
     1862
     1863
     1864
     1865
     1866
     1867
     1868
     1869
     1870
    26481871
    26491872ac_ext=c
     
    26711894done
    26721895if test -z "$ac_aux_dir"; then
    2673   as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
     1896  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cf \"$srcdir\"/cf" >&5
     1897$as_echo "$as_me: error: cannot find install-sh or install.sh in cf \"$srcdir\"/cf" >&2;}
     1898   { (exit 1); exit 1; }; }
    26741899fi
    26751900
     
    26881913
    26891914# Check whether --with-tcllib was given.
    2690 if test "${with_tcllib+set}" = set; then :
     1915if test "${with_tcllib+set}" = set; then
    26911916  withval=$with_tcllib; with_tcllib=$withval
    26921917else
     
    26971922
    26981923# Check whether --with-rappture was given.
    2699 if test "${with_rappture+set}" = set; then :
     1924if test "${with_rappture+set}" = set; then
    27001925  withval=$with_rappture; with_rappture=$withval
    27011926else
     
    27061931
    27071932# Check whether --with-vtk-includes was given.
    2708 if test "${with_vtk_includes+set}" = set; then :
     1933if test "${with_vtk_includes+set}" = set; then
    27091934  withval=$with_vtk_includes; with_vtk_includes=$withval
    27101935else
     
    27151940
    27161941# Check whether --with-vtk-libs was given.
    2717 if test "${with_vtk_libs+set}" = set; then :
     1942if test "${with_vtk_libs+set}" = set; then
    27181943  withval=$with_vtk_libs; with_vtk_libs=$withval
    27191944else
     
    27241949
    27251950# Check whether --with-vtk was given.
    2726 if test "${with_vtk+set}" = set; then :
     1951if test "${with_vtk+set}" = set; then
    27271952  withval=$with_vtk; with_vtk=$withval
    27281953else
     
    27391964  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    27401965set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     1966{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    27421967$as_echo_n "checking for $ac_word... " >&6; }
    2743 if ${ac_cv_prog_CC+:} false; then :
     1968if test "${ac_cv_prog_CC+set}" = set; then
    27441969  $as_echo_n "(cached) " >&6
    27451970else
     
    27521977  IFS=$as_save_IFS
    27531978  test -z "$as_dir" && as_dir=.
    2754     for ac_exec_ext in '' $ac_executable_extensions; do
    2755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1979  for ac_exec_ext in '' $ac_executable_extensions; do
     1980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    27561981    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    2757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     1982    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    27581983    break 2
    27591984  fi
    27601985done
    2761   done
     1986done
    27621987IFS=$as_save_IFS
    27631988
     
    27661991CC=$ac_cv_prog_CC
    27671992if test -n "$CC"; then
    2768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     1993  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    27691994$as_echo "$CC" >&6; }
    27701995else
    2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     1996  { $as_echo "$as_me:$LINENO: result: no" >&5
    27721997$as_echo "no" >&6; }
    27731998fi
     
    27792004  # Extract the first word of "gcc", so it can be a program name with args.
    27802005set dummy gcc; ac_word=$2
    2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2006{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    27822007$as_echo_n "checking for $ac_word... " >&6; }
    2783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
     2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    27842009  $as_echo_n "(cached) " >&6
    27852010else
     
    27922017  IFS=$as_save_IFS
    27932018  test -z "$as_dir" && as_dir=.
    2794     for ac_exec_ext in '' $ac_executable_extensions; do
    2795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2019  for ac_exec_ext in '' $ac_executable_extensions; do
     2020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    27962021    ac_cv_prog_ac_ct_CC="gcc"
    2797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2022    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    27982023    break 2
    27992024  fi
    28002025done
    2801   done
     2026done
    28022027IFS=$as_save_IFS
    28032028
     
    28062031ac_ct_CC=$ac_cv_prog_ac_ct_CC
    28072032if test -n "$ac_ct_CC"; then
    2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2033  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    28092034$as_echo "$ac_ct_CC" >&6; }
    28102035else
    2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2036  { $as_echo "$as_me:$LINENO: result: no" >&5
    28122037$as_echo "no" >&6; }
    28132038fi
     
    28182043    case $cross_compiling:$ac_tool_warned in
    28192044yes:)
    2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2045{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    28212046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    28222047ac_tool_warned=yes ;;
     
    28322057    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    28332058set dummy ${ac_tool_prefix}cc; ac_word=$2
    2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    28352060$as_echo_n "checking for $ac_word... " >&6; }
    2836 if ${ac_cv_prog_CC+:} false; then :
     2061if test "${ac_cv_prog_CC+set}" = set; then
    28372062  $as_echo_n "(cached) " >&6
    28382063else
     
    28452070  IFS=$as_save_IFS
    28462071  test -z "$as_dir" && as_dir=.
    2847     for ac_exec_ext in '' $ac_executable_extensions; do
    2848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2072  for ac_exec_ext in '' $ac_executable_extensions; do
     2073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    28492074    ac_cv_prog_CC="${ac_tool_prefix}cc"
    2850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2075    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    28512076    break 2
    28522077  fi
    28532078done
    2854   done
     2079done
    28552080IFS=$as_save_IFS
    28562081
     
    28592084CC=$ac_cv_prog_CC
    28602085if test -n "$CC"; then
    2861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2086  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    28622087$as_echo "$CC" >&6; }
    28632088else
    2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2089  { $as_echo "$as_me:$LINENO: result: no" >&5
    28652090$as_echo "no" >&6; }
    28662091fi
     
    28722097  # Extract the first word of "cc", so it can be a program name with args.
    28732098set dummy cc; ac_word=$2
    2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    28752100$as_echo_n "checking for $ac_word... " >&6; }
    2876 if ${ac_cv_prog_CC+:} false; then :
     2101if test "${ac_cv_prog_CC+set}" = set; then
    28772102  $as_echo_n "(cached) " >&6
    28782103else
     
    28862111  IFS=$as_save_IFS
    28872112  test -z "$as_dir" && as_dir=.
    2888     for ac_exec_ext in '' $ac_executable_extensions; do
    2889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2113  for ac_exec_ext in '' $ac_executable_extensions; do
     2114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    28902115    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    28912116       ac_prog_rejected=yes
     
    28932118     fi
    28942119    ac_cv_prog_CC="cc"
    2895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2120    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    28962121    break 2
    28972122  fi
    28982123done
    2899   done
     2124done
    29002125IFS=$as_save_IFS
    29012126
     
    29162141CC=$ac_cv_prog_CC
    29172142if test -n "$CC"; then
    2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2143  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    29192144$as_echo "$CC" >&6; }
    29202145else
    2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2146  { $as_echo "$as_me:$LINENO: result: no" >&5
    29222147$as_echo "no" >&6; }
    29232148fi
     
    29312156    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    29322157set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2158{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    29342159$as_echo_n "checking for $ac_word... " >&6; }
    2935 if ${ac_cv_prog_CC+:} false; then :
     2160if test "${ac_cv_prog_CC+set}" = set; then
    29362161  $as_echo_n "(cached) " >&6
    29372162else
     
    29442169  IFS=$as_save_IFS
    29452170  test -z "$as_dir" && as_dir=.
    2946     for ac_exec_ext in '' $ac_executable_extensions; do
    2947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2171  for ac_exec_ext in '' $ac_executable_extensions; do
     2172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    29482173    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2174    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    29502175    break 2
    29512176  fi
    29522177done
    2953   done
     2178done
    29542179IFS=$as_save_IFS
    29552180
     
    29582183CC=$ac_cv_prog_CC
    29592184if test -n "$CC"; then
    2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2185  { $as_echo "$as_me:$LINENO: result: $CC" >&5
    29612186$as_echo "$CC" >&6; }
    29622187else
    2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2188  { $as_echo "$as_me:$LINENO: result: no" >&5
    29642189$as_echo "no" >&6; }
    29652190fi
     
    29752200  # Extract the first word of "$ac_prog", so it can be a program name with args.
    29762201set dummy $ac_prog; ac_word=$2
    2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    29782203$as_echo_n "checking for $ac_word... " >&6; }
    2979 if ${ac_cv_prog_ac_ct_CC+:} false; then :
     2204if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    29802205  $as_echo_n "(cached) " >&6
    29812206else
     
    29882213  IFS=$as_save_IFS
    29892214  test -z "$as_dir" && as_dir=.
    2990     for ac_exec_ext in '' $ac_executable_extensions; do
    2991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2215  for ac_exec_ext in '' $ac_executable_extensions; do
     2216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    29922217    ac_cv_prog_ac_ct_CC="$ac_prog"
    2993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2218    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    29942219    break 2
    29952220  fi
    29962221done
    2997   done
     2222done
    29982223IFS=$as_save_IFS
    29992224
     
    30022227ac_ct_CC=$ac_cv_prog_ac_ct_CC
    30032228if test -n "$ac_ct_CC"; then
    3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2229  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    30052230$as_echo "$ac_ct_CC" >&6; }
    30062231else
    3007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2232  { $as_echo "$as_me:$LINENO: result: no" >&5
    30082233$as_echo "no" >&6; }
    30092234fi
     
    30182243    case $cross_compiling:$ac_tool_warned in
    30192244yes:)
    3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2245{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    30212246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    30222247ac_tool_warned=yes ;;
     
    30292254
    30302255
    3031 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2256test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    30322257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3033 as_fn_error $? "no acceptable C compiler found in \$PATH
    3034 See \`config.log' for more details" "$LINENO" 5; }
     2258{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2259See \`config.log' for more details." >&5
     2260$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
     2261See \`config.log' for more details." >&2;}
     2262   { (exit 1); exit 1; }; }; }
    30352263
    30362264# Provide some information about the compiler.
    3037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     2265$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
    30382266set X $ac_compile
    30392267ac_compiler=$2
    3040 for ac_option in --version -v -V -qversion; do
    3041   { { ac_try="$ac_compiler $ac_option >&5"
     2268{ (ac_try="$ac_compiler --version >&5"
    30422269case "(($ac_try" in
    30432270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    30442271  *) ac_try_echo=$ac_try;;
    30452272esac
    3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3047 $as_echo "$ac_try_echo"; } >&5
    3048   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
     2273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2274$as_echo "$ac_try_echo") >&5
     2275  (eval "$ac_compiler --version >&5") 2>&5
    30492276  ac_status=$?
    3050   if test -s conftest.err; then
    3051     sed '10a\
    3052 ... rest of stderr output deleted ...
    3053          10q' conftest.err >conftest.er1
    3054     cat conftest.er1 >&5
    3055   fi
    3056   rm -f conftest.er1 conftest.err
    3057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3058   test $ac_status = 0; }
    3059 done
    3060 
    3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2278  (exit $ac_status); }
     2279{ (ac_try="$ac_compiler -v >&5"
     2280case "(($ac_try" in
     2281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2282  *) ac_try_echo=$ac_try;;
     2283esac
     2284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2285$as_echo "$ac_try_echo") >&5
     2286  (eval "$ac_compiler -v >&5") 2>&5
     2287  ac_status=$?
     2288  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2289  (exit $ac_status); }
     2290{ (ac_try="$ac_compiler -V >&5"
     2291case "(($ac_try" in
     2292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2293  *) ac_try_echo=$ac_try;;
     2294esac
     2295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2296$as_echo "$ac_try_echo") >&5
     2297  (eval "$ac_compiler -V >&5") 2>&5
     2298  ac_status=$?
     2299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2300  (exit $ac_status); }
     2301
     2302cat >conftest.$ac_ext <<_ACEOF
     2303/* confdefs.h.  */
     2304_ACEOF
     2305cat confdefs.h >>conftest.$ac_ext
     2306cat >>conftest.$ac_ext <<_ACEOF
    30622307/* end confdefs.h.  */
    30632308
     
    30752320# It will help us diagnose broken compilers, and finding out an intuition
    30762321# of exeext.
    3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
    3078 $as_echo_n "checking whether the C compiler works... " >&6; }
     2322{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     2323$as_echo_n "checking for C compiler default output file name... " >&6; }
    30792324ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    30802325
     
    30922337rm -f $ac_rmfiles
    30932338
    3094 if { { ac_try="$ac_link_default"
     2339if { (ac_try="$ac_link_default"
    30952340case "(($ac_try" in
    30962341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    30972342  *) ac_try_echo=$ac_try;;
    30982343esac
    3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3100 $as_echo "$ac_try_echo"; } >&5
     2344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2345$as_echo "$ac_try_echo") >&5
    31012346  (eval "$ac_link_default") 2>&5
    31022347  ac_status=$?
    3103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3104   test $ac_status = 0; }; then :
     2348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2349  (exit $ac_status); }; then
    31052350  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
    31062351# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     
    31192364        break;;
    31202365    *.* )
    3121         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2366        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
    31222367        then :; else
    31232368           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     
    31382383  ac_file=''
    31392384fi
    3140 if test -z "$ac_file"; then :
    3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    3142 $as_echo "no" >&6; }
    3143 $as_echo "$as_me: failed program was:" >&5
     2385
     2386{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
     2387$as_echo "$ac_file" >&6; }
     2388if test -z "$ac_file"; then
     2389  $as_echo "$as_me: failed program was:" >&5
    31442390sed 's/^/| /' conftest.$ac_ext >&5
    31452391
    3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2392{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    31472393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3148 as_fn_error 77 "C compiler cannot create executables
    3149 See \`config.log' for more details" "$LINENO" 5; }
    3150 else
    3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2394{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
     2395See \`config.log' for more details." >&5
     2396$as_echo "$as_me: error: C compiler cannot create executables
     2397See \`config.log' for more details." >&2;}
     2398   { (exit 77); exit 77; }; }; }
     2399fi
     2400
     2401ac_exeext=$ac_cv_exeext
     2402
     2403# Check that the compiler produces executables we can run.  If not, either
     2404# the compiler is broken, or we cross compile.
     2405{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2406$as_echo_n "checking whether the C compiler works... " >&6; }
     2407# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     2408# If not cross compiling, check that we can run a simple program.
     2409if test "$cross_compiling" != yes; then
     2410  if { ac_try='./$ac_file'
     2411  { (case "(($ac_try" in
     2412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2413  *) ac_try_echo=$ac_try;;
     2414esac
     2415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2416$as_echo "$ac_try_echo") >&5
     2417  (eval "$ac_try") 2>&5
     2418  ac_status=$?
     2419  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2420  (exit $ac_status); }; }; then
     2421    cross_compiling=no
     2422  else
     2423    if test "$cross_compiling" = maybe; then
     2424        cross_compiling=yes
     2425    else
     2426        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     2427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2428{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
     2429If you meant to cross compile, use \`--host'.
     2430See \`config.log' for more details." >&5
     2431$as_echo "$as_me: error: cannot run C compiled programs.
     2432If you meant to cross compile, use \`--host'.
     2433See \`config.log' for more details." >&2;}
     2434   { (exit 1); exit 1; }; }; }
     2435    fi
     2436  fi
     2437fi
     2438{ $as_echo "$as_me:$LINENO: result: yes" >&5
    31522439$as_echo "yes" >&6; }
    3153 fi
    3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
    3155 $as_echo_n "checking for C compiler default output file name... " >&6; }
    3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
    3157 $as_echo "$ac_file" >&6; }
    3158 ac_exeext=$ac_cv_exeext
    31592440
    31602441rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
    31612442ac_clean_files=$ac_clean_files_save
    3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     2443# Check that the compiler produces executables we can run.  If not, either
     2444# the compiler is broken, or we cross compile.
     2445{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2446$as_echo_n "checking whether we are cross compiling... " >&6; }
     2447{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2448$as_echo "$cross_compiling" >&6; }
     2449
     2450{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
    31632451$as_echo_n "checking for suffix of executables... " >&6; }
    3164 if { { ac_try="$ac_link"
     2452if { (ac_try="$ac_link"
    31652453case "(($ac_try" in
    31662454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    31672455  *) ac_try_echo=$ac_try;;
    31682456esac
    3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3170 $as_echo "$ac_try_echo"; } >&5
     2457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2458$as_echo "$ac_try_echo") >&5
    31712459  (eval "$ac_link") 2>&5
    31722460  ac_status=$?
    3173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3174   test $ac_status = 0; }; then :
     2461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2462  (exit $ac_status); }; then
    31752463  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    31762464# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    31872475done
    31882476else
    3189   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2477  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    31902478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3191 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
    3192 See \`config.log' for more details" "$LINENO" 5; }
    3193 fi
    3194 rm -f conftest conftest$ac_cv_exeext
    3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     2479{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     2480See \`config.log' for more details." >&5
     2481$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     2482See \`config.log' for more details." >&2;}
     2483   { (exit 1); exit 1; }; }; }
     2484fi
     2485
     2486rm -f conftest$ac_cv_exeext
     2487{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    31962488$as_echo "$ac_cv_exeext" >&6; }
    31972489
     
    31992491EXEEXT=$ac_cv_exeext
    32002492ac_exeext=$EXEEXT
    3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2493{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2494$as_echo_n "checking for suffix of object files... " >&6; }
     2495if test "${ac_cv_objext+set}" = set; then
     2496  $as_echo_n "(cached) " >&6
     2497else
     2498  cat >conftest.$ac_ext <<_ACEOF
     2499/* confdefs.h.  */
     2500_ACEOF
     2501cat confdefs.h >>conftest.$ac_ext
     2502cat >>conftest.$ac_ext <<_ACEOF
    32022503/* end confdefs.h.  */
    3203 #include <stdio.h>
     2504
    32042505int
    32052506main ()
    32062507{
    3207 FILE *f = fopen ("conftest.out", "w");
    3208  return ferror (f) || fclose (f) != 0;
    32092508
    32102509  ;
     
    32122511}
    32132512_ACEOF
    3214 ac_clean_files="$ac_clean_files conftest.out"
    3215 # Check that the compiler produces executables we can run.  If not, either
    3216 # the compiler is broken, or we cross compile.
    3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
    3218 $as_echo_n "checking whether we are cross compiling... " >&6; }
    3219 if test "$cross_compiling" != yes; then
    3220   { { ac_try="$ac_link"
     2513rm -f conftest.o conftest.obj
     2514if { (ac_try="$ac_compile"
    32212515case "(($ac_try" in
    32222516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    32232517  *) ac_try_echo=$ac_try;;
    32242518esac
    3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3226 $as_echo "$ac_try_echo"; } >&5
    3227   (eval "$ac_link") 2>&5
    3228   ac_status=$?
    3229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3230   test $ac_status = 0; }
    3231   if { ac_try='./conftest$ac_cv_exeext'
    3232   { { case "(($ac_try" in
    3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3234   *) ac_try_echo=$ac_try;;
    3235 esac
    3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3237 $as_echo "$ac_try_echo"; } >&5
    3238   (eval "$ac_try") 2>&5
    3239   ac_status=$?
    3240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3241   test $ac_status = 0; }; }; then
    3242     cross_compiling=no
    3243   else
    3244     if test "$cross_compiling" = maybe; then
    3245         cross_compiling=yes
    3246     else
    3247         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3249 as_fn_error $? "cannot run C compiled programs.
    3250 If you meant to cross compile, use \`--host'.
    3251 See \`config.log' for more details" "$LINENO" 5; }
    3252     fi
    3253   fi
    3254 fi
    3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
    3256 $as_echo "$cross_compiling" >&6; }
    3257 
    3258 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
    3259 ac_clean_files=$ac_clean_files_save
    3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
    3261 $as_echo_n "checking for suffix of object files... " >&6; }
    3262 if ${ac_cv_objext+:} false; then :
    3263   $as_echo_n "(cached) " >&6
    3264 else
    3265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3266 /* end confdefs.h.  */
    3267 
    3268 int
    3269 main ()
    3270 {
    3271 
    3272   ;
    3273   return 0;
    3274 }
    3275 _ACEOF
    3276 rm -f conftest.o conftest.obj
    3277 if { { ac_try="$ac_compile"
    3278 case "(($ac_try" in
    3279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3280   *) ac_try_echo=$ac_try;;
    3281 esac
    3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    3283 $as_echo "$ac_try_echo"; } >&5
     2519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2520$as_echo "$ac_try_echo") >&5
    32842521  (eval "$ac_compile") 2>&5
    32852522  ac_status=$?
    3286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    3287   test $ac_status = 0; }; then :
     2523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2524  (exit $ac_status); }; then
    32882525  for ac_file in conftest.o conftest.obj conftest.*; do
    32892526  test -f "$ac_file" || continue;
     
    32982535sed 's/^/| /' conftest.$ac_ext >&5
    32992536
    3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2537{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    33012538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3302 as_fn_error $? "cannot compute suffix of object files: cannot compile
    3303 See \`config.log' for more details" "$LINENO" 5; }
    3304 fi
     2539{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     2540See \`config.log' for more details." >&5
     2541$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
     2542See \`config.log' for more details." >&2;}
     2543   { (exit 1); exit 1; }; }; }
     2544fi
     2545
    33052546rm -f conftest.$ac_cv_objext conftest.$ac_ext
    33062547fi
    3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     2548{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    33082549$as_echo "$ac_cv_objext" >&6; }
    33092550OBJEXT=$ac_cv_objext
    33102551ac_objext=$OBJEXT
    3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     2552{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    33122553$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    3313 if ${ac_cv_c_compiler_gnu+:} false; then :
     2554if test "${ac_cv_c_compiler_gnu+set}" = set; then
    33142555  $as_echo_n "(cached) " >&6
    33152556else
    3316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2557  cat >conftest.$ac_ext <<_ACEOF
     2558/* confdefs.h.  */
     2559_ACEOF
     2560cat confdefs.h >>conftest.$ac_ext
     2561cat >>conftest.$ac_ext <<_ACEOF
    33172562/* end confdefs.h.  */
    33182563
     
    33282573}
    33292574_ACEOF
    3330 if ac_fn_c_try_compile "$LINENO"; then :
     2575rm -f conftest.$ac_objext
     2576if { (ac_try="$ac_compile"
     2577case "(($ac_try" in
     2578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2579  *) ac_try_echo=$ac_try;;
     2580esac
     2581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2582$as_echo "$ac_try_echo") >&5
     2583  (eval "$ac_compile") 2>conftest.er1
     2584  ac_status=$?
     2585  grep -v '^ *+' conftest.er1 >conftest.err
     2586  rm -f conftest.er1
     2587  cat conftest.err >&5
     2588  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2589  (exit $ac_status); } && {
     2590         test -z "$ac_c_werror_flag" ||
     2591         test ! -s conftest.err
     2592       } && test -s conftest.$ac_objext; then
    33312593  ac_compiler_gnu=yes
    33322594else
    3333   ac_compiler_gnu=no
    3334 fi
     2595  $as_echo "$as_me: failed program was:" >&5
     2596sed 's/^/| /' conftest.$ac_ext >&5
     2597
     2598        ac_compiler_gnu=no
     2599fi
     2600
    33352601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    33362602ac_cv_c_compiler_gnu=$ac_compiler_gnu
    33372603
    33382604fi
    3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     2605{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    33402606$as_echo "$ac_cv_c_compiler_gnu" >&6; }
    33412607if test $ac_compiler_gnu = yes; then
     
    33462612ac_test_CFLAGS=${CFLAGS+set}
    33472613ac_save_CFLAGS=$CFLAGS
    3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     2614{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    33492615$as_echo_n "checking whether $CC accepts -g... " >&6; }
    3350 if ${ac_cv_prog_cc_g+:} false; then :
     2616if test "${ac_cv_prog_cc_g+set}" = set; then
    33512617  $as_echo_n "(cached) " >&6
    33522618else
     
    33552621   ac_cv_prog_cc_g=no
    33562622   CFLAGS="-g"
    3357    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2623   cat >conftest.$ac_ext <<_ACEOF
     2624/* confdefs.h.  */
     2625_ACEOF
     2626cat confdefs.h >>conftest.$ac_ext
     2627cat >>conftest.$ac_ext <<_ACEOF
    33582628/* end confdefs.h.  */
    33592629
     
    33662636}
    33672637_ACEOF
    3368 if ac_fn_c_try_compile "$LINENO"; then :
     2638rm -f conftest.$ac_objext
     2639if { (ac_try="$ac_compile"
     2640case "(($ac_try" in
     2641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2642  *) ac_try_echo=$ac_try;;
     2643esac
     2644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2645$as_echo "$ac_try_echo") >&5
     2646  (eval "$ac_compile") 2>conftest.er1
     2647  ac_status=$?
     2648  grep -v '^ *+' conftest.er1 >conftest.err
     2649  rm -f conftest.er1
     2650  cat conftest.err >&5
     2651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2652  (exit $ac_status); } && {
     2653         test -z "$ac_c_werror_flag" ||
     2654         test ! -s conftest.err
     2655       } && test -s conftest.$ac_objext; then
    33692656  ac_cv_prog_cc_g=yes
    33702657else
    3371   CFLAGS=""
    3372       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2658  $as_echo "$as_me: failed program was:" >&5
     2659sed 's/^/| /' conftest.$ac_ext >&5
     2660
     2661        CFLAGS=""
     2662      cat >conftest.$ac_ext <<_ACEOF
     2663/* confdefs.h.  */
     2664_ACEOF
     2665cat confdefs.h >>conftest.$ac_ext
     2666cat >>conftest.$ac_ext <<_ACEOF
    33732667/* end confdefs.h.  */
    33742668
     
    33812675}
    33822676_ACEOF
    3383 if ac_fn_c_try_compile "$LINENO"; then :
    3384 
    3385 else
    3386   ac_c_werror_flag=$ac_save_c_werror_flag
     2677rm -f conftest.$ac_objext
     2678if { (ac_try="$ac_compile"
     2679case "(($ac_try" in
     2680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2681  *) ac_try_echo=$ac_try;;
     2682esac
     2683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2684$as_echo "$ac_try_echo") >&5
     2685  (eval "$ac_compile") 2>conftest.er1
     2686  ac_status=$?
     2687  grep -v '^ *+' conftest.er1 >conftest.err
     2688  rm -f conftest.er1
     2689  cat conftest.err >&5
     2690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2691  (exit $ac_status); } && {
     2692         test -z "$ac_c_werror_flag" ||
     2693         test ! -s conftest.err
     2694       } && test -s conftest.$ac_objext; then
     2695  :
     2696else
     2697  $as_echo "$as_me: failed program was:" >&5
     2698sed 's/^/| /' conftest.$ac_ext >&5
     2699
     2700        ac_c_werror_flag=$ac_save_c_werror_flag
    33872701         CFLAGS="-g"
    3388          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2702         cat >conftest.$ac_ext <<_ACEOF
     2703/* confdefs.h.  */
     2704_ACEOF
     2705cat confdefs.h >>conftest.$ac_ext
     2706cat >>conftest.$ac_ext <<_ACEOF
    33892707/* end confdefs.h.  */
    33902708
     
    33972715}
    33982716_ACEOF
    3399 if ac_fn_c_try_compile "$LINENO"; then :
     2717rm -f conftest.$ac_objext
     2718if { (ac_try="$ac_compile"
     2719case "(($ac_try" in
     2720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2721  *) ac_try_echo=$ac_try;;
     2722esac
     2723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2724$as_echo "$ac_try_echo") >&5
     2725  (eval "$ac_compile") 2>conftest.er1
     2726  ac_status=$?
     2727  grep -v '^ *+' conftest.er1 >conftest.err
     2728  rm -f conftest.er1
     2729  cat conftest.err >&5
     2730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2731  (exit $ac_status); } && {
     2732         test -z "$ac_c_werror_flag" ||
     2733         test ! -s conftest.err
     2734       } && test -s conftest.$ac_objext; then
    34002735  ac_cv_prog_cc_g=yes
    3401 fi
     2736else
     2737  $as_echo "$as_me: failed program was:" >&5
     2738sed 's/^/| /' conftest.$ac_ext >&5
     2739
     2740
     2741fi
     2742
    34022743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    34032744fi
     2745
    34042746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    34052747fi
     2748
    34062749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    34072750   ac_c_werror_flag=$ac_save_c_werror_flag
    34082751fi
    3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     2752{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    34102753$as_echo "$ac_cv_prog_cc_g" >&6; }
    34112754if test "$ac_test_CFLAGS" = set; then
     
    34242767  fi
    34252768fi
    3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     2769{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
    34272770$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    3428 if ${ac_cv_prog_cc_c89+:} false; then :
     2771if test "${ac_cv_prog_cc_c89+set}" = set; then
    34292772  $as_echo_n "(cached) " >&6
    34302773else
    34312774  ac_cv_prog_cc_c89=no
    34322775ac_save_CC=$CC
    3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2776cat >conftest.$ac_ext <<_ACEOF
     2777/* confdefs.h.  */
     2778_ACEOF
     2779cat confdefs.h >>conftest.$ac_ext
     2780cat >>conftest.$ac_ext <<_ACEOF
    34342781/* end confdefs.h.  */
    34352782#include <stdarg.h>
    34362783#include <stdio.h>
    3437 struct stat;
     2784#include <sys/types.h>
     2785#include <sys/stat.h>
    34382786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    34392787struct buf { int x; };
     
    34872835do
    34882836  CC="$ac_save_CC $ac_arg"
    3489   if ac_fn_c_try_compile "$LINENO"; then :
     2837  rm -f conftest.$ac_objext
     2838if { (ac_try="$ac_compile"
     2839case "(($ac_try" in
     2840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2841  *) ac_try_echo=$ac_try;;
     2842esac
     2843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2844$as_echo "$ac_try_echo") >&5
     2845  (eval "$ac_compile") 2>conftest.er1
     2846  ac_status=$?
     2847  grep -v '^ *+' conftest.er1 >conftest.err
     2848  rm -f conftest.er1
     2849  cat conftest.err >&5
     2850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2851  (exit $ac_status); } && {
     2852         test -z "$ac_c_werror_flag" ||
     2853         test ! -s conftest.err
     2854       } && test -s conftest.$ac_objext; then
    34902855  ac_cv_prog_cc_c89=$ac_arg
    3491 fi
     2856else
     2857  $as_echo "$as_me: failed program was:" >&5
     2858sed 's/^/| /' conftest.$ac_ext >&5
     2859
     2860
     2861fi
     2862
    34922863rm -f core conftest.err conftest.$ac_objext
    34932864  test "x$ac_cv_prog_cc_c89" != "xno" && break
     
    35002871case "x$ac_cv_prog_cc_c89" in
    35012872  x)
    3502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     2873    { $as_echo "$as_me:$LINENO: result: none needed" >&5
    35032874$as_echo "none needed" >&6; } ;;
    35042875  xno)
    3505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     2876    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
    35062877$as_echo "unsupported" >&6; } ;;
    35072878  *)
    35082879    CC="$CC $ac_cv_prog_cc_c89"
    3509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     2880    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
    35102881$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    35112882esac
    3512 if test "x$ac_cv_prog_cc_c89" != xno; then :
    3513 
    3514 fi
     2883
    35152884
    35162885ac_ext=c
     
    35262895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    35272896ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     2897{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    35292898$as_echo_n "checking how to run the C preprocessor... " >&6; }
    35302899# On Suns, sometimes $CPP names a directory.
     
    35332902fi
    35342903if test -z "$CPP"; then
    3535   if ${ac_cv_prog_CPP+:} false; then :
     2904  if test "${ac_cv_prog_CPP+set}" = set; then
    35362905  $as_echo_n "(cached) " >&6
    35372906else
     
    35482917  # On the NeXT, cc -E runs the code through the compiler's parser,
    35492918  # not just through cpp. "Syntax error" is here to catch this case.
    3550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2919  cat >conftest.$ac_ext <<_ACEOF
     2920/* confdefs.h.  */
     2921_ACEOF
     2922cat confdefs.h >>conftest.$ac_ext
     2923cat >>conftest.$ac_ext <<_ACEOF
    35512924/* end confdefs.h.  */
    35522925#ifdef __STDC__
     
    35572930                     Syntax error
    35582931_ACEOF
    3559 if ac_fn_c_try_cpp "$LINENO"; then :
    3560 
    3561 else
     2932if { (ac_try="$ac_cpp conftest.$ac_ext"
     2933case "(($ac_try" in
     2934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2935  *) ac_try_echo=$ac_try;;
     2936esac
     2937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2938$as_echo "$ac_try_echo") >&5
     2939  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     2940  ac_status=$?
     2941  grep -v '^ *+' conftest.er1 >conftest.err
     2942  rm -f conftest.er1
     2943  cat conftest.err >&5
     2944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2945  (exit $ac_status); } >/dev/null && {
     2946         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     2947         test ! -s conftest.err
     2948       }; then
     2949  :
     2950else
     2951  $as_echo "$as_me: failed program was:" >&5
     2952sed 's/^/| /' conftest.$ac_ext >&5
     2953
    35622954  # Broken: fails on valid input.
    35632955continue
    35642956fi
    3565 rm -f conftest.err conftest.i conftest.$ac_ext
     2957
     2958rm -f conftest.err conftest.$ac_ext
    35662959
    35672960  # OK, works on sane cases.  Now check whether nonexistent headers
    35682961  # can be detected and how.
    3569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2962  cat >conftest.$ac_ext <<_ACEOF
     2963/* confdefs.h.  */
     2964_ACEOF
     2965cat confdefs.h >>conftest.$ac_ext
     2966cat >>conftest.$ac_ext <<_ACEOF
    35702967/* end confdefs.h.  */
    35712968#include <ac_nonexistent.h>
    35722969_ACEOF
    3573 if ac_fn_c_try_cpp "$LINENO"; then :
     2970if { (ac_try="$ac_cpp conftest.$ac_ext"
     2971case "(($ac_try" in
     2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2973  *) ac_try_echo=$ac_try;;
     2974esac
     2975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2976$as_echo "$ac_try_echo") >&5
     2977  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     2978  ac_status=$?
     2979  grep -v '^ *+' conftest.er1 >conftest.err
     2980  rm -f conftest.er1
     2981  cat conftest.err >&5
     2982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2983  (exit $ac_status); } >/dev/null && {
     2984         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     2985         test ! -s conftest.err
     2986       }; then
    35742987  # Broken: success on invalid input.
    35752988continue
    35762989else
     2990  $as_echo "$as_me: failed program was:" >&5
     2991sed 's/^/| /' conftest.$ac_ext >&5
     2992
    35772993  # Passes both tests.
    35782994ac_preproc_ok=:
    35792995break
    35802996fi
    3581 rm -f conftest.err conftest.i conftest.$ac_ext
     2997
     2998rm -f conftest.err conftest.$ac_ext
    35822999
    35833000done
    35843001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3585 rm -f conftest.i conftest.err conftest.$ac_ext
    3586 if $ac_preproc_ok; then :
     3002rm -f conftest.err conftest.$ac_ext
     3003if $ac_preproc_ok; then
    35873004  break
    35883005fi
     
    35963013  ac_cv_prog_CPP=$CPP
    35973014fi
    3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     3015{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
    35993016$as_echo "$CPP" >&6; }
    36003017ac_preproc_ok=false
     
    36073024  # On the NeXT, cc -E runs the code through the compiler's parser,
    36083025  # not just through cpp. "Syntax error" is here to catch this case.
    3609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3026  cat >conftest.$ac_ext <<_ACEOF
     3027/* confdefs.h.  */
     3028_ACEOF
     3029cat confdefs.h >>conftest.$ac_ext
     3030cat >>conftest.$ac_ext <<_ACEOF
    36103031/* end confdefs.h.  */
    36113032#ifdef __STDC__
     
    36163037                     Syntax error
    36173038_ACEOF
    3618 if ac_fn_c_try_cpp "$LINENO"; then :
    3619 
    3620 else
     3039if { (ac_try="$ac_cpp conftest.$ac_ext"
     3040case "(($ac_try" in
     3041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3042  *) ac_try_echo=$ac_try;;
     3043esac
     3044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3045$as_echo "$ac_try_echo") >&5
     3046  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     3047  ac_status=$?
     3048  grep -v '^ *+' conftest.er1 >conftest.err
     3049  rm -f conftest.er1
     3050  cat conftest.err >&5
     3051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3052  (exit $ac_status); } >/dev/null && {
     3053         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3054         test ! -s conftest.err
     3055       }; then
     3056  :
     3057else
     3058  $as_echo "$as_me: failed program was:" >&5
     3059sed 's/^/| /' conftest.$ac_ext >&5
     3060
    36213061  # Broken: fails on valid input.
    36223062continue
    36233063fi
    3624 rm -f conftest.err conftest.i conftest.$ac_ext
     3064
     3065rm -f conftest.err conftest.$ac_ext
    36253066
    36263067  # OK, works on sane cases.  Now check whether nonexistent headers
    36273068  # can be detected and how.
    3628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3069  cat >conftest.$ac_ext <<_ACEOF
     3070/* confdefs.h.  */
     3071_ACEOF
     3072cat confdefs.h >>conftest.$ac_ext
     3073cat >>conftest.$ac_ext <<_ACEOF
    36293074/* end confdefs.h.  */
    36303075#include <ac_nonexistent.h>
    36313076_ACEOF
    3632 if ac_fn_c_try_cpp "$LINENO"; then :
     3077if { (ac_try="$ac_cpp conftest.$ac_ext"
     3078case "(($ac_try" in
     3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3080  *) ac_try_echo=$ac_try;;
     3081esac
     3082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3083$as_echo "$ac_try_echo") >&5
     3084  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     3085  ac_status=$?
     3086  grep -v '^ *+' conftest.er1 >conftest.err
     3087  rm -f conftest.er1
     3088  cat conftest.err >&5
     3089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3090  (exit $ac_status); } >/dev/null && {
     3091         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3092         test ! -s conftest.err
     3093       }; then
    36333094  # Broken: success on invalid input.
    36343095continue
    36353096else
     3097  $as_echo "$as_me: failed program was:" >&5
     3098sed 's/^/| /' conftest.$ac_ext >&5
     3099
    36363100  # Passes both tests.
    36373101ac_preproc_ok=:
    36383102break
    36393103fi
    3640 rm -f conftest.err conftest.i conftest.$ac_ext
     3104
     3105rm -f conftest.err conftest.$ac_ext
    36413106
    36423107done
    36433108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3644 rm -f conftest.i conftest.err conftest.$ac_ext
    3645 if $ac_preproc_ok; then :
    3646 
    3647 else
    3648   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3109rm -f conftest.err conftest.$ac_ext
     3110if $ac_preproc_ok; then
     3111  :
     3112else
     3113  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    36493114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3650 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    3651 See \`config.log' for more details" "$LINENO" 5; }
     3115{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3116See \`config.log' for more details." >&5
     3117$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3118See \`config.log' for more details." >&2;}
     3119   { (exit 1); exit 1; }; }; }
    36523120fi
    36533121
     
    36593127
    36603128
    3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     3129{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
    36623130$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    3663 if ${ac_cv_path_GREP+:} false; then :
     3131if test "${ac_cv_path_GREP+set}" = set; then
    36643132  $as_echo_n "(cached) " >&6
    36653133else
     
    36723140  IFS=$as_save_IFS
    36733141  test -z "$as_dir" && as_dir=.
    3674     for ac_prog in grep ggrep; do
     3142  for ac_prog in grep ggrep; do
    36753143    for ac_exec_ext in '' $ac_executable_extensions; do
    36763144      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    3677       as_fn_executable_p "$ac_path_GREP" || continue
     3145      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
    36783146# Check for GNU ac_path_GREP and select it if it is found.
    36793147  # Check for GNU $ac_path_GREP
     
    36923160    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    36933161    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    3694     as_fn_arith $ac_count + 1 && ac_count=$as_val
     3162    ac_count=`expr $ac_count + 1`
    36953163    if test $ac_count -gt ${ac_path_GREP_max-0}; then
    36963164      # Best one so far, save it but keep looking for a better one
     
    37073175    done
    37083176  done
    3709   done
     3177done
    37103178IFS=$as_save_IFS
    37113179  if test -z "$ac_cv_path_GREP"; then
    3712     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     3180    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     3181$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     3182   { (exit 1); exit 1; }; }
    37133183  fi
    37143184else
     
    37173187
    37183188fi
    3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     3189{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
    37203190$as_echo "$ac_cv_path_GREP" >&6; }
    37213191 GREP="$ac_cv_path_GREP"
    37223192
    37233193
    3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     3194{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
    37253195$as_echo_n "checking for egrep... " >&6; }
    3726 if ${ac_cv_path_EGREP+:} false; then :
     3196if test "${ac_cv_path_EGREP+set}" = set; then
    37273197  $as_echo_n "(cached) " >&6
    37283198else
     
    37383208  IFS=$as_save_IFS
    37393209  test -z "$as_dir" && as_dir=.
    3740     for ac_prog in egrep; do
     3210  for ac_prog in egrep; do
    37413211    for ac_exec_ext in '' $ac_executable_extensions; do
    37423212      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    3743       as_fn_executable_p "$ac_path_EGREP" || continue
     3213      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
    37443214# Check for GNU ac_path_EGREP and select it if it is found.
    37453215  # Check for GNU $ac_path_EGREP
     
    37583228    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    37593229    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    3760     as_fn_arith $ac_count + 1 && ac_count=$as_val
     3230    ac_count=`expr $ac_count + 1`
    37613231    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
    37623232      # Best one so far, save it but keep looking for a better one
     
    37733243    done
    37743244  done
    3775   done
     3245done
    37763246IFS=$as_save_IFS
    37773247  if test -z "$ac_cv_path_EGREP"; then
    3778     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     3248    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     3249$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     3250   { (exit 1); exit 1; }; }
    37793251  fi
    37803252else
     
    37843256   fi
    37853257fi
    3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     3258{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
    37873259$as_echo "$ac_cv_path_EGREP" >&6; }
    37883260 EGREP="$ac_cv_path_EGREP"
    37893261
    37903262
    3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     3263{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    37923264$as_echo_n "checking for ANSI C header files... " >&6; }
    3793 if ${ac_cv_header_stdc+:} false; then :
     3265if test "${ac_cv_header_stdc+set}" = set; then
    37943266  $as_echo_n "(cached) " >&6
    37953267else
    3796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3268  cat >conftest.$ac_ext <<_ACEOF
     3269/* confdefs.h.  */
     3270_ACEOF
     3271cat confdefs.h >>conftest.$ac_ext
     3272cat >>conftest.$ac_ext <<_ACEOF
    37973273/* end confdefs.h.  */
    37983274#include <stdlib.h>
     
    38093285}
    38103286_ACEOF
    3811 if ac_fn_c_try_compile "$LINENO"; then :
     3287rm -f conftest.$ac_objext
     3288if { (ac_try="$ac_compile"
     3289case "(($ac_try" in
     3290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3291  *) ac_try_echo=$ac_try;;
     3292esac
     3293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3294$as_echo "$ac_try_echo") >&5
     3295  (eval "$ac_compile") 2>conftest.er1
     3296  ac_status=$?
     3297  grep -v '^ *+' conftest.er1 >conftest.err
     3298  rm -f conftest.er1
     3299  cat conftest.err >&5
     3300  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3301  (exit $ac_status); } && {
     3302         test -z "$ac_c_werror_flag" ||
     3303         test ! -s conftest.err
     3304       } && test -s conftest.$ac_objext; then
    38123305  ac_cv_header_stdc=yes
    38133306else
    3814   ac_cv_header_stdc=no
    3815 fi
     3307  $as_echo "$as_me: failed program was:" >&5
     3308sed 's/^/| /' conftest.$ac_ext >&5
     3309
     3310        ac_cv_header_stdc=no
     3311fi
     3312
    38163313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    38173314
    38183315if test $ac_cv_header_stdc = yes; then
    38193316  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3317  cat >conftest.$ac_ext <<_ACEOF
     3318/* confdefs.h.  */
     3319_ACEOF
     3320cat confdefs.h >>conftest.$ac_ext
     3321cat >>conftest.$ac_ext <<_ACEOF
    38213322/* end confdefs.h.  */
    38223323#include <string.h>
     
    38243325_ACEOF
    38253326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3826   $EGREP "memchr" >/dev/null 2>&1; then :
    3827 
     3327  $EGREP "memchr" >/dev/null 2>&1; then
     3328  :
    38283329else
    38293330  ac_cv_header_stdc=no
     
    38353336if test $ac_cv_header_stdc = yes; then
    38363337  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3338  cat >conftest.$ac_ext <<_ACEOF
     3339/* confdefs.h.  */
     3340_ACEOF
     3341cat confdefs.h >>conftest.$ac_ext
     3342cat >>conftest.$ac_ext <<_ACEOF
    38383343/* end confdefs.h.  */
    38393344#include <stdlib.h>
     
    38413346_ACEOF
    38423347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3843   $EGREP "free" >/dev/null 2>&1; then :
    3844 
     3348  $EGREP "free" >/dev/null 2>&1; then
     3349  :
    38453350else
    38463351  ac_cv_header_stdc=no
     
    38523357if test $ac_cv_header_stdc = yes; then
    38533358  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3854   if test "$cross_compiling" = yes; then :
     3359  if test "$cross_compiling" = yes; then
    38553360  :
    38563361else
    3857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3362  cat >conftest.$ac_ext <<_ACEOF
     3363/* confdefs.h.  */
     3364_ACEOF
     3365cat confdefs.h >>conftest.$ac_ext
     3366cat >>conftest.$ac_ext <<_ACEOF
    38583367/* end confdefs.h.  */
    38593368#include <ctype.h>
     
    38823391}
    38833392_ACEOF
    3884 if ac_fn_c_try_run "$LINENO"; then :
    3885 
    3886 else
    3887   ac_cv_header_stdc=no
    3888 fi
    3889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    3890   conftest.$ac_objext conftest.beam conftest.$ac_ext
    3891 fi
    3892 
    3893 fi
    3894 fi
    3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     3393rm -f conftest$ac_exeext
     3394if { (ac_try="$ac_link"
     3395case "(($ac_try" in
     3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3397  *) ac_try_echo=$ac_try;;
     3398esac
     3399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3400$as_echo "$ac_try_echo") >&5
     3401  (eval "$ac_link") 2>&5
     3402  ac_status=$?
     3403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3404  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3405  { (case "(($ac_try" in
     3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3407  *) ac_try_echo=$ac_try;;
     3408esac
     3409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3410$as_echo "$ac_try_echo") >&5
     3411  (eval "$ac_try") 2>&5
     3412  ac_status=$?
     3413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3414  (exit $ac_status); }; }; then
     3415  :
     3416else
     3417  $as_echo "$as_me: program exited with status $ac_status" >&5
     3418$as_echo "$as_me: failed program was:" >&5
     3419sed 's/^/| /' conftest.$ac_ext >&5
     3420
     3421( exit $ac_status )
     3422ac_cv_header_stdc=no
     3423fi
     3424rm -rf conftest.dSYM
     3425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3426fi
     3427
     3428
     3429fi
     3430fi
     3431{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    38963432$as_echo "$ac_cv_header_stdc" >&6; }
    38973433if test $ac_cv_header_stdc = yes; then
    38983434
    3899 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
     3435cat >>confdefs.h <<\_ACEOF
     3436#define STDC_HEADERS 1
     3437_ACEOF
    39003438
    39013439fi
    39023440
    39033441# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3442
     3443
     3444
     3445
     3446
     3447
     3448
     3449
     3450
    39043451for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    39053452                  inttypes.h stdint.h unistd.h
    3906 do :
    3907   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3908 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
    3909 "
    3910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     3453do
     3454as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3455{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     3456$as_echo_n "checking for $ac_header... " >&6; }
     3457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     3458  $as_echo_n "(cached) " >&6
     3459else
     3460  cat >conftest.$ac_ext <<_ACEOF
     3461/* confdefs.h.  */
     3462_ACEOF
     3463cat confdefs.h >>conftest.$ac_ext
     3464cat >>conftest.$ac_ext <<_ACEOF
     3465/* end confdefs.h.  */
     3466$ac_includes_default
     3467
     3468#include <$ac_header>
     3469_ACEOF
     3470rm -f conftest.$ac_objext
     3471if { (ac_try="$ac_compile"
     3472case "(($ac_try" in
     3473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3474  *) ac_try_echo=$ac_try;;
     3475esac
     3476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3477$as_echo "$ac_try_echo") >&5
     3478  (eval "$ac_compile") 2>conftest.er1
     3479  ac_status=$?
     3480  grep -v '^ *+' conftest.er1 >conftest.err
     3481  rm -f conftest.er1
     3482  cat conftest.err >&5
     3483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3484  (exit $ac_status); } && {
     3485         test -z "$ac_c_werror_flag" ||
     3486         test ! -s conftest.err
     3487       } && test -s conftest.$ac_objext; then
     3488  eval "$as_ac_Header=yes"
     3489else
     3490  $as_echo "$as_me: failed program was:" >&5
     3491sed 's/^/| /' conftest.$ac_ext >&5
     3492
     3493        eval "$as_ac_Header=no"
     3494fi
     3495
     3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3497fi
     3498ac_res=`eval 'as_val=${'$as_ac_Header'}
     3499                 $as_echo "$as_val"'`
     3500               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     3501$as_echo "$ac_res" >&6; }
     3502as_val=`eval 'as_val=${'$as_ac_Header'}
     3503                 $as_echo "$as_val"'`
     3504   if test "x$as_val" = x""yes; then
    39113505  cat >>confdefs.h <<_ACEOF
    39123506#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    39333527
    39343528# Check whether --with-python was given.
    3935 if test "${with_python+set}" = set; then :
     3529if test "${with_python+set}" = set; then
    39363530  withval=$with_python;
    39373531else
     
    39443538    # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
    39453539set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
    3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3540{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    39473541$as_echo_n "checking for $ac_word... " >&6; }
    3948 if ${ac_cv_path_PYTHON+:} false; then :
     3542if test "${ac_cv_path_PYTHON+set}" = set; then
    39493543  $as_echo_n "(cached) " >&6
    39503544else
     
    39593553  IFS=$as_save_IFS
    39603554  test -z "$as_dir" && as_dir=.
    3961     for ac_exec_ext in '' $ac_executable_extensions; do
    3962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3555  for ac_exec_ext in '' $ac_executable_extensions; do
     3556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    39633557    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    3964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3558    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    39653559    break 2
    39663560  fi
    39673561done
    3968   done
     3562done
    39693563IFS=$as_save_IFS
    39703564
     
    39743568PYTHON=$ac_cv_path_PYTHON
    39753569if test -n "$PYTHON"; then
    3976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
     3570  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
    39773571$as_echo "$PYTHON" >&6; }
    39783572else
    3979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3573  { $as_echo "$as_me:$LINENO: result: no" >&5
    39803574$as_echo "no" >&6; }
    39813575fi
     
    39853579    # Extract the first word of "python", so it can be a program name with args.
    39863580set dummy python; ac_word=$2
    3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3581{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    39883582$as_echo_n "checking for $ac_word... " >&6; }
    3989 if ${ac_cv_path_PYTHON+:} false; then :
     3583if test "${ac_cv_path_PYTHON+set}" = set; then
    39903584  $as_echo_n "(cached) " >&6
    39913585else
     
    40013595  IFS=$as_save_IFS
    40023596  test -z "$as_dir" && as_dir=.
    4003     for ac_exec_ext in '' $ac_executable_extensions; do
    4004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3597  for ac_exec_ext in '' $ac_executable_extensions; do
     3598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    40053599    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    4006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3600    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    40073601    break 2
    40083602  fi
    40093603done
    4010   done
     3604done
    40113605IFS=$as_save_IFS
    40123606
     
    40163610PYTHON=$ac_cv_path_PYTHON
    40173611if test -n "$PYTHON"; then
    4018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
     3612  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
    40193613$as_echo "$PYTHON" >&6; }
    40203614else
    4021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3615  { $as_echo "$as_me:$LINENO: result: no" >&5
    40223616$as_echo "no" >&6; }
    40233617fi
     
    40253619
    40263620  fi
    4027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
     3621  { $as_echo "$as_me:$LINENO: checking for Python version" >&5
    40283622$as_echo_n "checking for Python version... " >&6; }
    40293623  if test "x${PYTHON}" != "x"; then
    40303624    PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`
    40313625  fi
    4032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
     3626  { $as_echo "$as_me:$LINENO: result: $PYTHON_VERSION" >&5
    40333627$as_echo "$PYTHON_VERSION" >&6; }
    40343628fi
     
    40363630if test "x${PYTHON_VERSION}" != "x"; then
    40373631  PYTHON_INCLUDES=$incdir
    4038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5
     3632  { $as_echo "$as_me:$LINENO: checking for Python distutils" >&5
    40393633$as_echo_n "checking for Python distutils... " >&6; }
    40403634  PYTHON_DISTUTILS=""
     
    40443638    PYTHON_DISTUTILS="yes"
    40453639  fi
    4046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5
     3640  { $as_echo "$as_me:$LINENO: result: $PYTHON_DISTUTILS" >&5
    40473641$as_echo "$PYTHON_DISTUTILS" >&6; }
    40483642  if test "${PYTHON_DISTUTILS}" = "yes" ; then
     
    40513645    # Check for Python include path
    40523646    #
    4053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5
     3647    { $as_echo "$as_me:$LINENO: checking path to Python headers" >&5
    40543648$as_echo_n "checking path to Python headers... " >&6; }
    40553649    PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \
    40563650     print distutils.sysconfig.get_python_inc();"`
    4057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5
     3651    { $as_echo "$as_me:$LINENO: result: $PYTHON_INCDIR" >&5
    40583652$as_echo "$PYTHON_INCDIR" >&6; }
    40593653    #
     
    40683662    save_CPPFLAGS=$CPPFLAGS
    40693663    CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"
    4070     for ac_header in Python.h
    4071 do :
    4072   ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
    4073 if test "x$ac_cv_header_Python_h" = xyes; then :
     3664
     3665for ac_header in Python.h
     3666do
     3667as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     3669  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     3670$as_echo_n "checking for $ac_header... " >&6; }
     3671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     3672  $as_echo_n "(cached) " >&6
     3673fi
     3674ac_res=`eval 'as_val=${'$as_ac_Header'}
     3675                 $as_echo "$as_val"'`
     3676               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     3677$as_echo "$ac_res" >&6; }
     3678else
     3679  # Is the header compilable?
     3680{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
     3681$as_echo_n "checking $ac_header usability... " >&6; }
     3682cat >conftest.$ac_ext <<_ACEOF
     3683/* confdefs.h.  */
     3684_ACEOF
     3685cat confdefs.h >>conftest.$ac_ext
     3686cat >>conftest.$ac_ext <<_ACEOF
     3687/* end confdefs.h.  */
     3688$ac_includes_default
     3689#include <$ac_header>
     3690_ACEOF
     3691rm -f conftest.$ac_objext
     3692if { (ac_try="$ac_compile"
     3693case "(($ac_try" in
     3694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3695  *) ac_try_echo=$ac_try;;
     3696esac
     3697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3698$as_echo "$ac_try_echo") >&5
     3699  (eval "$ac_compile") 2>conftest.er1
     3700  ac_status=$?
     3701  grep -v '^ *+' conftest.er1 >conftest.err
     3702  rm -f conftest.er1
     3703  cat conftest.err >&5
     3704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3705  (exit $ac_status); } && {
     3706         test -z "$ac_c_werror_flag" ||
     3707         test ! -s conftest.err
     3708       } && test -s conftest.$ac_objext; then
     3709  ac_header_compiler=yes
     3710else
     3711  $as_echo "$as_me: failed program was:" >&5
     3712sed 's/^/| /' conftest.$ac_ext >&5
     3713
     3714        ac_header_compiler=no
     3715fi
     3716
     3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3718{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3719$as_echo "$ac_header_compiler" >&6; }
     3720
     3721# Is the header present?
     3722{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
     3723$as_echo_n "checking $ac_header presence... " >&6; }
     3724cat >conftest.$ac_ext <<_ACEOF
     3725/* confdefs.h.  */
     3726_ACEOF
     3727cat confdefs.h >>conftest.$ac_ext
     3728cat >>conftest.$ac_ext <<_ACEOF
     3729/* end confdefs.h.  */
     3730#include <$ac_header>
     3731_ACEOF
     3732if { (ac_try="$ac_cpp conftest.$ac_ext"
     3733case "(($ac_try" in
     3734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3735  *) ac_try_echo=$ac_try;;
     3736esac
     3737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3738$as_echo "$ac_try_echo") >&5
     3739  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     3740  ac_status=$?
     3741  grep -v '^ *+' conftest.er1 >conftest.err
     3742  rm -f conftest.er1
     3743  cat conftest.err >&5
     3744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3745  (exit $ac_status); } >/dev/null && {
     3746         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3747         test ! -s conftest.err
     3748       }; then
     3749  ac_header_preproc=yes
     3750else
     3751  $as_echo "$as_me: failed program was:" >&5
     3752sed 's/^/| /' conftest.$ac_ext >&5
     3753
     3754  ac_header_preproc=no
     3755fi
     3756
     3757rm -f conftest.err conftest.$ac_ext
     3758{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     3759$as_echo "$ac_header_preproc" >&6; }
     3760
     3761# So?  What about this header?
     3762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     3763  yes:no: )
     3764    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     3765$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     3766    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     3767$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     3768    ac_header_preproc=yes
     3769    ;;
     3770  no:yes:* )
     3771    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     3772$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     3773    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     3774$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     3775    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     3776$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     3777    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     3778$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     3779    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     3780$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     3781    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     3782$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     3783    ( cat <<\_ASBOX
     3784## ----------------------------------- ##
     3785## Report this to rappture@nanohub.org ##
     3786## ----------------------------------- ##
     3787_ASBOX
     3788     ) | sed "s/^/$as_me: WARNING:     /" >&2
     3789    ;;
     3790esac
     3791{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     3792$as_echo_n "checking for $ac_header... " >&6; }
     3793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     3794  $as_echo_n "(cached) " >&6
     3795else
     3796  eval "$as_ac_Header=\$ac_header_preproc"
     3797fi
     3798ac_res=`eval 'as_val=${'$as_ac_Header'}
     3799                 $as_echo "$as_val"'`
     3800               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     3801$as_echo "$ac_res" >&6; }
     3802
     3803fi
     3804as_val=`eval 'as_val=${'$as_ac_Header'}
     3805                 $as_echo "$as_val"'`
     3806   if test "x$as_val" = x""yes; then
    40743807  cat >>confdefs.h <<_ACEOF
    4075 #define HAVE_PYTHON_H 1
     3808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    40763809_ACEOF
    40773810 found=yes
     
    41173850  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    41183851set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    41203853$as_echo_n "checking for $ac_word... " >&6; }
    4121 if ${ac_cv_prog_RANLIB+:} false; then :
     3854if test "${ac_cv_prog_RANLIB+set}" = set; then
    41223855  $as_echo_n "(cached) " >&6
    41233856else
     
    41303863  IFS=$as_save_IFS
    41313864  test -z "$as_dir" && as_dir=.
    4132     for ac_exec_ext in '' $ac_executable_extensions; do
    4133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3865  for ac_exec_ext in '' $ac_executable_extensions; do
     3866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    41343867    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    4135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3868    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    41363869    break 2
    41373870  fi
    41383871done
    4139   done
     3872done
    41403873IFS=$as_save_IFS
    41413874
     
    41443877RANLIB=$ac_cv_prog_RANLIB
    41453878if test -n "$RANLIB"; then
    4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     3879  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
    41473880$as_echo "$RANLIB" >&6; }
    41483881else
    4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3882  { $as_echo "$as_me:$LINENO: result: no" >&5
    41503883$as_echo "no" >&6; }
    41513884fi
     
    41573890  # Extract the first word of "ranlib", so it can be a program name with args.
    41583891set dummy ranlib; ac_word=$2
    4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3892{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    41603893$as_echo_n "checking for $ac_word... " >&6; }
    4161 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
     3894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    41623895  $as_echo_n "(cached) " >&6
    41633896else
     
    41703903  IFS=$as_save_IFS
    41713904  test -z "$as_dir" && as_dir=.
    4172     for ac_exec_ext in '' $ac_executable_extensions; do
    4173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3905  for ac_exec_ext in '' $ac_executable_extensions; do
     3906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    41743907    ac_cv_prog_ac_ct_RANLIB="ranlib"
    4175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3908    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    41763909    break 2
    41773910  fi
    41783911done
    4179   done
     3912done
    41803913IFS=$as_save_IFS
    41813914
     
    41843917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    41853918if test -n "$ac_ct_RANLIB"; then
    4186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     3919  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    41873920$as_echo "$ac_ct_RANLIB" >&6; }
    41883921else
    4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3922  { $as_echo "$as_me:$LINENO: result: no" >&5
    41903923$as_echo "no" >&6; }
    41913924fi
     
    41963929    case $cross_compiling:$ac_tool_warned in
    41973930yes:)
    4198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3931{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
    41993932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    42003933ac_tool_warned=yes ;;
     
    42103943    # Step 0.a: Enable 64 bit support?
    42113944
    4212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
     3945    { $as_echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
    42133946$as_echo_n "checking if 64bit support is requested... " >&6; }
    42143947    # Check whether --enable-64bit was given.
    4215 if test "${enable_64bit+set}" = set; then :
     3948if test "${enable_64bit+set}" = set; then
    42163949  enableval=$enable_64bit; do64bit=$enableval
    42173950else
     
    42193952fi
    42203953
    4221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
     3954    { $as_echo "$as_me:$LINENO: result: $do64bit" >&5
    42223955$as_echo "$do64bit" >&6; }
    42233956
    42243957    # Step 0.b: Enable Solaris 64 bit VIS support?
    42253958
    4226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
     3959    { $as_echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
    42273960$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
    42283961    # Check whether --enable-64bit-vis was given.
    4229 if test "${enable_64bit_vis+set}" = set; then :
     3962if test "${enable_64bit_vis+set}" = set; then
    42303963  enableval=$enable_64bit_vis; do64bitVIS=$enableval
    42313964else
     
    42333966fi
    42343967
    4235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
     3968    { $as_echo "$as_me:$LINENO: result: $do64bitVIS" >&5
    42363969$as_echo "$do64bitVIS" >&6; }
    42373970
     
    42453978
    42463979
    4247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
     3980    { $as_echo "$as_me:$LINENO: checking system version" >&5
    42483981$as_echo_n "checking system version... " >&6; }
    4249 if ${tcl_cv_sys_version+:} false; then :
     3982if test "${tcl_cv_sys_version+set}" = set; then
    42503983  $as_echo_n "(cached) " >&6
    42513984else
     
    42563989            tcl_cv_sys_version=`uname -s`-`uname -r`
    42573990            if test "$?" -ne 0 ; then
    4258                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
     3991                { $as_echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
    42593992$as_echo "$as_me: WARNING: can't find uname command" >&2;}
    42603993                tcl_cv_sys_version=unknown
     
    42734006
    42744007fi
    4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
     4008{ $as_echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
    42764009$as_echo "$tcl_cv_sys_version" >&6; }
    42774010    system=$tcl_cv_sys_version
     
    42814014    # Linux can use either -ldl or -ldld for dynamic loading.
    42824015
    4283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
     4016    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    42844017$as_echo_n "checking for dlopen in -ldl... " >&6; }
    4285 if ${ac_cv_lib_dl_dlopen+:} false; then :
     4018if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    42864019  $as_echo_n "(cached) " >&6
    42874020else
    42884021  ac_check_lib_save_LIBS=$LIBS
    42894022LIBS="-ldl  $LIBS"
    4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4023cat >conftest.$ac_ext <<_ACEOF
     4024/* confdefs.h.  */
     4025_ACEOF
     4026cat confdefs.h >>conftest.$ac_ext
     4027cat >>conftest.$ac_ext <<_ACEOF
    42914028/* end confdefs.h.  */
    42924029
     
    43064043}
    43074044_ACEOF
    4308 if ac_fn_c_try_link "$LINENO"; then :
     4045rm -f conftest.$ac_objext conftest$ac_exeext
     4046if { (ac_try="$ac_link"
     4047case "(($ac_try" in
     4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4049  *) ac_try_echo=$ac_try;;
     4050esac
     4051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4052$as_echo "$ac_try_echo") >&5
     4053  (eval "$ac_link") 2>conftest.er1
     4054  ac_status=$?
     4055  grep -v '^ *+' conftest.er1 >conftest.err
     4056  rm -f conftest.er1
     4057  cat conftest.err >&5
     4058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4059  (exit $ac_status); } && {
     4060         test -z "$ac_c_werror_flag" ||
     4061         test ! -s conftest.err
     4062       } && test -s conftest$ac_exeext && {
     4063         test "$cross_compiling" = yes ||
     4064         $as_test_x conftest$ac_exeext
     4065       }; then
    43094066  ac_cv_lib_dl_dlopen=yes
    43104067else
    4311   ac_cv_lib_dl_dlopen=no
    4312 fi
    4313 rm -f core conftest.err conftest.$ac_objext \
    4314     conftest$ac_exeext conftest.$ac_ext
     4068  $as_echo "$as_me: failed program was:" >&5
     4069sed 's/^/| /' conftest.$ac_ext >&5
     4070
     4071        ac_cv_lib_dl_dlopen=no
     4072fi
     4073
     4074rm -rf conftest.dSYM
     4075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4076      conftest$ac_exeext conftest.$ac_ext
    43154077LIBS=$ac_check_lib_save_LIBS
    43164078fi
    4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
     4079{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    43184080$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
    4319 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
     4081if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
    43204082  have_dl=yes
    43214083else
     
    43494111    # Extract the first word of "ar", so it can be a program name with args.
    43504112set dummy ar; ac_word=$2
    4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
    43524114$as_echo_n "checking for $ac_word... " >&6; }
    4353 if ${ac_cv_prog_AR+:} false; then :
     4115if test "${ac_cv_prog_AR+set}" = set; then
    43544116  $as_echo_n "(cached) " >&6
    43554117else
     
    43624124  IFS=$as_save_IFS
    43634125  test -z "$as_dir" && as_dir=.
    4364     for ac_exec_ext in '' $ac_executable_extensions; do
    4365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4126  for ac_exec_ext in '' $ac_executable_extensions; do
     4127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    43664128    ac_cv_prog_AR="ar"
    4367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     4129    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    43684130    break 2
    43694131  fi
    43704132done
    4371   done
     4133done
    43724134IFS=$as_save_IFS
    43734135
     
    43764138AR=$ac_cv_prog_AR
    43774139if test -n "$AR"; then
    4378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
     4140  { $as_echo "$as_me:$LINENO: result: $AR" >&5
    43794141$as_echo "$AR" >&6; }
    43804142else
    4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4143  { $as_echo "$as_me:$LINENO: result: no" >&5
    43824144$as_echo "no" >&6; }
    43834145fi
     
    43854147
    43864148    if test "${AR}" = "" ; then
    4387         as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
     4149        { { $as_echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5
     4150$as_echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;}
     4151   { (exit 1); exit 1; }; }
    43884152    fi
    43894153    STLIB_LD='${AR} cr'
     
    44034167                        ;;
    44044168                esac
    4405                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
     4169                { $as_echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
    44064170$as_echo "Using $CC for compiling with threads" >&6; }
    44074171            fi
     
    44194183            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
    44204184                if test "$GCC" = "yes" ; then
    4421                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     4185                    { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
    44224186$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    44234187                else
     
    44744238            # known GMT value.
    44754239
    4476             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
     4240            { $as_echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5
    44774241$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
    4478 if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
     4242if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
    44794243  $as_echo_n "(cached) " >&6
    44804244else
    44814245  ac_check_lib_save_LIBS=$LIBS
    44824246LIBS="-lbsd  $LIBS"
    4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4247cat >conftest.$ac_ext <<_ACEOF
     4248/* confdefs.h.  */
     4249_ACEOF
     4250cat confdefs.h >>conftest.$ac_ext
     4251cat >>conftest.$ac_ext <<_ACEOF
    44844252/* end confdefs.h.  */
    44854253
     
    44994267}
    45004268_ACEOF
    4501 if ac_fn_c_try_link "$LINENO"; then :
     4269rm -f conftest.$ac_objext conftest$ac_exeext
     4270if { (ac_try="$ac_link"
     4271case "(($ac_try" in
     4272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4273  *) ac_try_echo=$ac_try;;
     4274esac
     4275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4276$as_echo "$ac_try_echo") >&5
     4277  (eval "$ac_link") 2>conftest.er1
     4278  ac_status=$?
     4279  grep -v '^ *+' conftest.er1 >conftest.err
     4280  rm -f conftest.er1
     4281  cat conftest.err >&5
     4282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4283  (exit $ac_status); } && {
     4284         test -z "$ac_c_werror_flag" ||
     4285         test ! -s conftest.err
     4286       } && test -s conftest$ac_exeext && {
     4287         test "$cross_compiling" = yes ||
     4288         $as_test_x conftest$ac_exeext
     4289       }; then
    45024290  ac_cv_lib_bsd_gettimeofday=yes
    45034291else
    4504   ac_cv_lib_bsd_gettimeofday=no
    4505 fi
    4506 rm -f core conftest.err conftest.$ac_objext \
    4507     conftest$ac_exeext conftest.$ac_ext
     4292  $as_echo "$as_me: failed program was:" >&5
     4293sed 's/^/| /' conftest.$ac_ext >&5
     4294
     4295        ac_cv_lib_bsd_gettimeofday=no
     4296fi
     4297
     4298rm -rf conftest.dSYM
     4299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4300      conftest$ac_exeext conftest.$ac_ext
    45084301LIBS=$ac_check_lib_save_LIBS
    45094302fi
    4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
     4303{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5
    45114304$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
    4512 if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
     4305if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then
    45134306  libbsd=yes
    45144307else
     
    45184311            if test $libbsd = yes; then
    45194312                MATH_LIBS="$MATH_LIBS -lbsd"
    4520                 $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
     4313                cat >>confdefs.h <<\_ACEOF
     4314#define USE_DELTA_FOR_TZ 1
     4315_ACEOF
    45214316
    45224317            fi
     
    45354330            # is always linked to, for compatibility.
    45364331            #-----------------------------------------------------------
    4537             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
     4332            { $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
    45384333$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
    4539 if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
     4334if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
    45404335  $as_echo_n "(cached) " >&6
    45414336else
    45424337  ac_check_lib_save_LIBS=$LIBS
    45434338LIBS="-lbind  $LIBS"
    4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4339cat >conftest.$ac_ext <<_ACEOF
     4340/* confdefs.h.  */
     4341_ACEOF
     4342cat confdefs.h >>conftest.$ac_ext
     4343cat >>conftest.$ac_ext <<_ACEOF
    45454344/* end confdefs.h.  */
    45464345
     
    45604359}
    45614360_ACEOF
    4562 if ac_fn_c_try_link "$LINENO"; then :
     4361rm -f conftest.$ac_objext conftest$ac_exeext
     4362if { (ac_try="$ac_link"
     4363case "(($ac_try" in
     4364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4365  *) ac_try_echo=$ac_try;;
     4366esac
     4367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4368$as_echo "$ac_try_echo") >&5
     4369  (eval "$ac_link") 2>conftest.er1
     4370  ac_status=$?
     4371  grep -v '^ *+' conftest.er1 >conftest.err
     4372  rm -f conftest.er1
     4373  cat conftest.err >&5
     4374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4375  (exit $ac_status); } && {
     4376         test -z "$ac_c_werror_flag" ||
     4377         test ! -s conftest.err
     4378       } && test -s conftest$ac_exeext && {
     4379         test "$cross_compiling" = yes ||
     4380         $as_test_x conftest$ac_exeext
     4381       }; then
    45634382  ac_cv_lib_bind_inet_ntoa=yes
    45644383else
    4565   ac_cv_lib_bind_inet_ntoa=no
    4566 fi
    4567 rm -f core conftest.err conftest.$ac_objext \
    4568     conftest$ac_exeext conftest.$ac_ext
     4384  $as_echo "$as_me: failed program was:" >&5
     4385sed 's/^/| /' conftest.$ac_ext >&5
     4386
     4387        ac_cv_lib_bind_inet_ntoa=no
     4388fi
     4389
     4390rm -rf conftest.dSYM
     4391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4392      conftest$ac_exeext conftest.$ac_ext
    45694393LIBS=$ac_check_lib_save_LIBS
    45704394fi
    4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
     4395{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
    45724396$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
    4573 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
     4397if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then
    45744398  LIBS="$LIBS -lbind -lsocket"
    45754399fi
     
    46094433        HP-UX-*.11.*)
    46104434            # Use updated header definitions where possible
    4611             $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
     4435            cat >>confdefs.h <<\_ACEOF
     4436#define _XOPEN_SOURCE 1
     4437_ACEOF
    46124438          # Use the XOPEN network library
    4613             $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
     4439            cat >>confdefs.h <<\_ACEOF
     4440#define _XOPEN_SOURCE_EXTENDED 1
     4441_ACEOF
    46144442 # Use the XOPEN network library
    46154443            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
     
    46204448                SHLIB_SUFFIX=".sl"
    46214449            fi
    4622             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
     4450            { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    46234451$as_echo_n "checking for shl_load in -ldld... " >&6; }
    4624 if ${ac_cv_lib_dld_shl_load+:} false; then :
     4452if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    46254453  $as_echo_n "(cached) " >&6
    46264454else
    46274455  ac_check_lib_save_LIBS=$LIBS
    46284456LIBS="-ldld  $LIBS"
    4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4457cat >conftest.$ac_ext <<_ACEOF
     4458/* confdefs.h.  */
     4459_ACEOF
     4460cat confdefs.h >>conftest.$ac_ext
     4461cat >>conftest.$ac_ext <<_ACEOF
    46304462/* end confdefs.h.  */
    46314463
     
    46454477}
    46464478_ACEOF
    4647 if ac_fn_c_try_link "$LINENO"; then :
     4479rm -f conftest.$ac_objext conftest$ac_exeext
     4480if { (ac_try="$ac_link"
     4481case "(($ac_try" in
     4482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4483  *) ac_try_echo=$ac_try;;
     4484esac
     4485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4486$as_echo "$ac_try_echo") >&5
     4487  (eval "$ac_link") 2>conftest.er1
     4488  ac_status=$?
     4489  grep -v '^ *+' conftest.er1 >conftest.err
     4490  rm -f conftest.er1
     4491  cat conftest.err >&5
     4492  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4493  (exit $ac_status); } && {
     4494         test -z "$ac_c_werror_flag" ||
     4495         test ! -s conftest.err
     4496       } && test -s conftest$ac_exeext && {
     4497         test "$cross_compiling" = yes ||
     4498         $as_test_x conftest$ac_exeext
     4499       }; then
    46484500  ac_cv_lib_dld_shl_load=yes
    46494501else
    4650   ac_cv_lib_dld_shl_load=no
    4651 fi
    4652 rm -f core conftest.err conftest.$ac_objext \
    4653     conftest$ac_exeext conftest.$ac_ext
     4502  $as_echo "$as_me: failed program was:" >&5
     4503sed 's/^/| /' conftest.$ac_ext >&5
     4504
     4505        ac_cv_lib_dld_shl_load=no
     4506fi
     4507
     4508rm -rf conftest.dSYM
     4509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4510      conftest$ac_exeext conftest.$ac_ext
    46544511LIBS=$ac_check_lib_save_LIBS
    46554512fi
    4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
     4513{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    46574514$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    4658 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
     4515if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
    46594516  tcl_ok=yes
    46604517else
     
    46964553                            ;;
    46974554                        *)
    4698                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     4555                            { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
    46994556$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    47004557                            ;;
     
    47094566        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
    47104567            SHLIB_SUFFIX=".sl"
    4711             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
     4568            { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    47124569$as_echo_n "checking for shl_load in -ldld... " >&6; }
    4713 if ${ac_cv_lib_dld_shl_load+:} false; then :
     4570if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    47144571  $as_echo_n "(cached) " >&6
    47154572else
    47164573  ac_check_lib_save_LIBS=$LIBS
    47174574LIBS="-ldld  $LIBS"
    4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4575cat >conftest.$ac_ext <<_ACEOF
     4576/* confdefs.h.  */
     4577_ACEOF
     4578cat confdefs.h >>conftest.$ac_ext
     4579cat >>conftest.$ac_ext <<_ACEOF
    47194580/* end confdefs.h.  */
    47204581
     
    47344595}
    47354596_ACEOF
    4736 if ac_fn_c_try_link "$LINENO"; then :
     4597rm -f conftest.$ac_objext conftest$ac_exeext
     4598if { (ac_try="$ac_link"
     4599case "(($ac_try" in
     4600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4601  *) ac_try_echo=$ac_try;;
     4602esac
     4603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4604$as_echo "$ac_try_echo") >&5
     4605  (eval "$ac_link") 2>conftest.er1
     4606  ac_status=$?
     4607  grep -v '^ *+' conftest.er1 >conftest.err
     4608  rm -f conftest.er1
     4609  cat conftest.err >&5
     4610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4611  (exit $ac_status); } && {
     4612         test -z "$ac_c_werror_flag" ||
     4613         test ! -s conftest.err
     4614       } && test -s conftest$ac_exeext && {
     4615         test "$cross_compiling" = yes ||
     4616         $as_test_x conftest$ac_exeext
     4617       }; then
    47374618  ac_cv_lib_dld_shl_load=yes
    47384619else
    4739   ac_cv_lib_dld_shl_load=no
    4740 fi
    4741 rm -f core conftest.err conftest.$ac_objext \
    4742     conftest$ac_exeext conftest.$ac_ext
     4620  $as_echo "$as_me: failed program was:" >&5
     4621sed 's/^/| /' conftest.$ac_ext >&5
     4622
     4623        ac_cv_lib_dld_shl_load=no
     4624fi
     4625
     4626rm -rf conftest.dSYM
     4627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4628      conftest$ac_exeext conftest.$ac_ext
    47434629LIBS=$ac_check_lib_save_LIBS
    47444630fi
    4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
     4631{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    47464632$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    4747 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
     4633if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
    47484634  tcl_ok=yes
    47494635else
     
    48244710            if test "$do64bit" = "yes" ; then
    48254711                if test "$GCC" = "yes" ; then
    4826                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
     4712                    { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
    48274713$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
    48284714                else
     
    48534739                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    48544740            else
    4855                 ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
    4856 if test "x$ac_cv_header_dld_h" = xyes; then :
     4741                if test "${ac_cv_header_dld_h+set}" = set; then
     4742  { $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     4743$as_echo_n "checking for dld.h... " >&6; }
     4744if test "${ac_cv_header_dld_h+set}" = set; then
     4745  $as_echo_n "(cached) " >&6
     4746fi
     4747{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     4748$as_echo "$ac_cv_header_dld_h" >&6; }
     4749else
     4750  # Is the header compilable?
     4751{ $as_echo "$as_me:$LINENO: checking dld.h usability" >&5
     4752$as_echo_n "checking dld.h usability... " >&6; }
     4753cat >conftest.$ac_ext <<_ACEOF
     4754/* confdefs.h.  */
     4755_ACEOF
     4756cat confdefs.h >>conftest.$ac_ext
     4757cat >>conftest.$ac_ext <<_ACEOF
     4758/* end confdefs.h.  */
     4759$ac_includes_default
     4760#include <dld.h>
     4761_ACEOF
     4762rm -f conftest.$ac_objext
     4763if { (ac_try="$ac_compile"
     4764case "(($ac_try" in
     4765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4766  *) ac_try_echo=$ac_try;;
     4767esac
     4768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4769$as_echo "$ac_try_echo") >&5
     4770  (eval "$ac_compile") 2>conftest.er1
     4771  ac_status=$?
     4772  grep -v '^ *+' conftest.er1 >conftest.err
     4773  rm -f conftest.er1
     4774  cat conftest.err >&5
     4775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4776  (exit $ac_status); } && {
     4777         test -z "$ac_c_werror_flag" ||
     4778         test ! -s conftest.err
     4779       } && test -s conftest.$ac_objext; then
     4780  ac_header_compiler=yes
     4781else
     4782  $as_echo "$as_me: failed program was:" >&5
     4783sed 's/^/| /' conftest.$ac_ext >&5
     4784
     4785        ac_header_compiler=no
     4786fi
     4787
     4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4789{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4790$as_echo "$ac_header_compiler" >&6; }
     4791
     4792# Is the header present?
     4793{ $as_echo "$as_me:$LINENO: checking dld.h presence" >&5
     4794$as_echo_n "checking dld.h presence... " >&6; }
     4795cat >conftest.$ac_ext <<_ACEOF
     4796/* confdefs.h.  */
     4797_ACEOF
     4798cat confdefs.h >>conftest.$ac_ext
     4799cat >>conftest.$ac_ext <<_ACEOF
     4800/* end confdefs.h.  */
     4801#include <dld.h>
     4802_ACEOF
     4803if { (ac_try="$ac_cpp conftest.$ac_ext"
     4804case "(($ac_try" in
     4805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4806  *) ac_try_echo=$ac_try;;
     4807esac
     4808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4809$as_echo "$ac_try_echo") >&5
     4810  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     4811  ac_status=$?
     4812  grep -v '^ *+' conftest.er1 >conftest.err
     4813  rm -f conftest.er1
     4814  cat conftest.err >&5
     4815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4816  (exit $ac_status); } >/dev/null && {
     4817         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4818         test ! -s conftest.err
     4819       }; then
     4820  ac_header_preproc=yes
     4821else
     4822  $as_echo "$as_me: failed program was:" >&5
     4823sed 's/^/| /' conftest.$ac_ext >&5
     4824
     4825  ac_header_preproc=no
     4826fi
     4827
     4828rm -f conftest.err conftest.$ac_ext
     4829{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4830$as_echo "$ac_header_preproc" >&6; }
     4831
     4832# So?  What about this header?
     4833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4834  yes:no: )
     4835    { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4836$as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4837    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
     4838$as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
     4839    ac_header_preproc=yes
     4840    ;;
     4841  no:yes:* )
     4842    { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
     4843$as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
     4844    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
     4845$as_echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
     4846    { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
     4847$as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
     4848    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
     4849$as_echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4850    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
     4851$as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
     4852    { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
     4853$as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
     4854    ( cat <<\_ASBOX
     4855## ----------------------------------- ##
     4856## Report this to rappture@nanohub.org ##
     4857## ----------------------------------- ##
     4858_ASBOX
     4859     ) | sed "s/^/$as_me: WARNING:     /" >&2
     4860    ;;
     4861esac
     4862{ $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     4863$as_echo_n "checking for dld.h... " >&6; }
     4864if test "${ac_cv_header_dld_h+set}" = set; then
     4865  $as_echo_n "(cached) " >&6
     4866else
     4867  ac_cv_header_dld_h=$ac_header_preproc
     4868fi
     4869{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     4870$as_echo "$ac_cv_header_dld_h" >&6; }
     4871
     4872fi
     4873if test "x$ac_cv_header_dld_h" = x""yes; then
    48574874
    48584875                    SHLIB_LD="ld -shared"
     
    48694886            fi
    48704887            if test $do64bit = yes; then
    4871                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
     4888                { $as_echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
    48724889$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
    4873 if ${tcl_cv_cc_m64+:} false; then :
     4890if test "${tcl_cv_cc_m64+set}" = set; then
    48744891  $as_echo_n "(cached) " >&6
    48754892else
     
    48774894                    hold_cflags=$CFLAGS
    48784895                    CFLAGS="$CFLAGS -m64"
    4879                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4896                    cat >conftest.$ac_ext <<_ACEOF
     4897/* confdefs.h.  */
     4898_ACEOF
     4899cat confdefs.h >>conftest.$ac_ext
     4900cat >>conftest.$ac_ext <<_ACEOF
    48804901/* end confdefs.h.  */
    48814902
     
    48884909}
    48894910_ACEOF
    4890 if ac_fn_c_try_link "$LINENO"; then :
     4911rm -f conftest.$ac_objext conftest$ac_exeext
     4912if { (ac_try="$ac_link"
     4913case "(($ac_try" in
     4914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4915  *) ac_try_echo=$ac_try;;
     4916esac
     4917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4918$as_echo "$ac_try_echo") >&5
     4919  (eval "$ac_link") 2>conftest.er1
     4920  ac_status=$?
     4921  grep -v '^ *+' conftest.er1 >conftest.err
     4922  rm -f conftest.er1
     4923  cat conftest.err >&5
     4924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4925  (exit $ac_status); } && {
     4926         test -z "$ac_c_werror_flag" ||
     4927         test ! -s conftest.err
     4928       } && test -s conftest$ac_exeext && {
     4929         test "$cross_compiling" = yes ||
     4930         $as_test_x conftest$ac_exeext
     4931       }; then
    48914932  tcl_cv_cc_m64=yes
    48924933else
    4893   tcl_cv_cc_m64=no
    4894 fi
    4895 rm -f core conftest.err conftest.$ac_objext \
    4896     conftest$ac_exeext conftest.$ac_ext
     4934  $as_echo "$as_me: failed program was:" >&5
     4935sed 's/^/| /' conftest.$ac_ext >&5
     4936
     4937        tcl_cv_cc_m64=no
     4938fi
     4939
     4940rm -rf conftest.dSYM
     4941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4942      conftest$ac_exeext conftest.$ac_ext
    48974943                    CFLAGS=$hold_cflags
    48984944fi
    4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64"